Skip to content

Path commands on readme and official-website-toolchain don't seem to work #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DeRobyJ opened this issue Oct 10, 2014 · 6 comments
Closed

Comments

@DeRobyJ
Copy link

DeRobyJ commented Oct 10, 2014

Hello,
I'd like to use python to program android apps, and I'm trying to install all the programs needed to do that in Ubuntu... since yesterday.
I've spent two hours yesterday and all today afternoon in trying to apply these two guides:

I'll list all my problems
Official website introduction guide:

  • #prerequisites VirtualBox suggestion links to the general kivy page: I actually downloaded kivy for ubuntu, but the Note wanted me to download a file that was at the bottom of the page.

But let's not use a virtual machine, also because I didn't have it working and I don't want to deal with virtual machines (I've installed VirtualBox, imported the image downloaded, got the boot screen, started Ubuntu and then the vm crashes)

  • SDK/NDK: I didn't know that API8 was to download inside the SDK, so I've spent a lot of time searching for a download of the "API8"
    I know that someone who is going to write for android should know how it works, but the thing is: I actually tried to install Android Studio and the Eclispe plugin for Android before, and yet I didn't remember what an API is.

And these were the readthedocs site problems only.

Now let's see what I couldn't do: PATH.

After some researches, I got to know how PATH works in Ubuntu (I knew what was on Windows, but I couldn't find it on Ubuntu at first)
And I've learned that writing
echo $PATH
on the terminal will tell me my current path variables.
Now let's try adding the path needed for the guides.
Apart from the fact that the two guides ask me to write different things (r7 vs r8b and "Also, you must configure you’re PATH to add the android binary:" is missing in the README).

These commands were uneffective: the terminal didn't say anything after I wrote the commands (and having checked all was wrote correctly. I did it 10 times today).
So I tried to double check with echo $PATH and nothing is added.
I've done other searches about how to add path, and the commads seem to be right for http://unixhelp.ed.ac.uk/environment/env3ab.html
wrong for other sites, like http://www.cyberciti.biz/faq/set-environment-variable-linux/ (but even the "set" command is not what they say, so maybe they're referring to something different)

Before understanding that my PATH was unchanged by all the commands I did, I actually tried to go for the #usage section.
".distribute.sh" is to download through "git clone git://github.com/kivy/python-for-android", but the official website introduction guide actually never said to download python-for-android. This made me lose an hour or two, because I didn't find the github page of kivy before.

Then of course I had to stop: here is where I found out about missing PATHs.

Could you please help me with my PATH and then write all the information needed in both guides?
Thank you very much in advance.

[note: in case it is not clear yet, I'm not a pro Linux user, nor I'm a programmer, nor I have good experience with terminals]

@inclement
Copy link
Member

Your post is a little confusing, could you state clearly exactly what you did to try and install and use python-for-android?

From the point of view of just building a kivy app, havy you seen kivy's documentation at http://kivy.org/docs/guide/packaging-android.html#packaging-android ? I recommend using buildozer, as explained on that page.

@inclement
Copy link
Member

You'll also find kivy's support channels at http://kivy.org/docs/contact.html more convenient for troubleshooting issues like this - we use github issues mostly only for technical issues, and have fewer eyes looking to directly help users here.

@DeRobyJ
Copy link
Author

DeRobyJ commented Oct 13, 2014

I've done some reasearches myself, and it seems that I actually added the Path variables. I'll back to you after checking what's wrong in the rest of the guide.
Just let me understand it correctly: is kivy a program to create the graphical interface of your apps?
(referring to this line: "Since Python is a language, not a toolkit, you cannot draw any user interface with it: you need to use a toolkit for it. Kivy can be one of them.")

Anyway I still don't get why are the two guides different. Is running this:
export PATH=$ANDROIDNDK:$ANDROIDSDK/platform-tools:$ANDROIDSDK/tools:$PATH
important or not?

@inclement
Copy link
Member

I'm closing this as probably outdated with the new toolchain, please raise it again if you still have the problem, though for problems like this you might be better off on the mailing lists.

@btatlisu
Copy link

btatlisu commented Dec 6, 2015

Please blok meSent from EX Mail for iOS19:18, 6 декабря 2015 пользователь Alexander Taylor notifications@github.com написал:Closed #281.

—Reply to this email directly or view it on GitHub.

@dessant
Copy link
Contributor

dessant commented Dec 6, 2015

@btatlisu, click on 'Not watching' in the watch menu at the top of the page, we can't do anything about this, you were the one who subscribed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants