-
Notifications
You must be signed in to change notification settings - Fork 256
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
How do I install it? #57
Comments
http://pyjnius.readthedocs.org/en/latest/installation.html On Wed, Apr 10, 2013 at 11:15 PM, pkor notifications@github.com wrote:
|
Pyjnius is shipped in kivy/python-for-android already, no need to do
|
Thanks! I wasn't aware that it came with python for android. If I want to do testing before running on the android device I'll need to run it under windows? To do that are there some more detailed instructions than the above link? |
Download windows package for mysysgit http://code.google.com/p/msysgit/, Now you should be able to import pyjnius in your.py file. Best Regards On Thu, Apr 11, 2013 at 1:41 AM, pkor notifications@github.com wrote:
|
Thank you! The git for windows is great especially the git gui! However in editing the batch file, I see a section 'set PATH' and one 'set PYTHONPATH' . I'm not sure which one to put it under (or if both) or at all how it should look. Should it be like: 'set PYTHONPATH=%kivy_portable_root%kivy;%PYTHONPATH%kivy_portable_root%pyjnius;'? |
I tried several variants with the kivy.bat file and finally came up with one that allows me to import 'jnius' but then the debugger says this: "Traceback (most recent call last): At first glance it looks like the problem is with the initial import but the error is actually in the init.py file of the jnius directory. So it knows where it is but something is wrong from there on. My batch file looks like this now: "@echo off set kivy_portable_root=%~dp0 IF DEFINED kivy_paths_initialized (GOTO :runkivy) ECHO Setting Environment Variables: set GST_REGISTRY=%kivy_portable_root%gstreamer\registry.bin set GST_PLUGIN_PATH=%kivy_portable_root%gstreamer\lib\gstreamer-0.10 set PATH=%kivy_portable_root%;%kivy_portable_root%Python;%kivy_portable_root%Python\Scripts;%kivy_portable_root%gstreamer\bin;%kivy_portable_root%MinGW\bin;kivy_portable_root%pyjnius;%PATH% set PYTHONPATH=%kivy_portable_root%kivy;%kivy_portable_root%pyjnius;%PYTHONPATH% SET kivy_paths_initialized=1 :runkivy ECHO done bootstraping kivy...have fun!\n |
"from jnius import autoclass" On Thu, Apr 11, 2013 at 11:53 PM, pkor notifications@github.com wrote:
|
Yes, this one: "done bootstraping kivy...have fun!\n P.S. I inserted the "~" character in place of the root directory in this comment. |
I fear I might have missed a step. Apologies for that. Double click kivy.bat, this should open a terminal.
This should compile pyjnius and hopefully you'd be able to use it from here Best Regards On Fri, Apr 12, 2013 at 1:32 AM, pkor notifications@github.com wrote:
|
Thank you for all your help on this. When I run make I get this error: 'C:~\Kivy-1.5.1-w32\pyjnius>make Does this mean I don't have java in the path? I have the JAVA_HOME, JRE_HOME and JDK_HOME environment variables set up. Do I need more than this? |
It seems that you are using the tools provided with kivy1.5.1, please Can you run javac from the console? Does it run/throw any error? On Fri, Apr 12, 2013 at 8:33 PM, pkor notifications@github.com wrote:
|
I get this: 'C:~\Kivy-1.5.1-w32>javac I'm guessing that means java is not in the path? I'll try the new version and see where that get's me. Also if pyjnius is needed for so many things, why can't we just have it included in the package? This is alot to go through just to get the access that py4a already has. |
"Thanks! I wasn't aware that it came with python for android. If I want to I assumed you understood that it is included in python-for-android. as If you just want to test how pyjnius can be used on android then just use This will give you a shell in your desktop that is connected to Best Regards On Fri, Apr 12, 2013 at 11:16 PM, pkor notifications@github.com wrote:
|
I actually want both. Our application will be running on desktop and android both using tts, so I'm looking to install it so I can run this abstraction: https://github.com/brousch/saythis-kivy-intro-app/tree/master/saythis/components |
Not to push, but I'm still at a loss with installing this. |
On Tue, Apr 16, 2013 at 8:40 PM, pkor notifications@github.com wrote:
|
I added the environment variable as mentioned above- directing it to the exact path of the javac file and it will not recognize it at all. It recognizes when I type 'java' on the command prompt but there is no environment variable for 'java'. The path I set for the 'javac' variable is: ' C:\Program Files\Java\jdk1.7.0_17\bin'. If I cd to this path and type 'javac' of course it recognizes it. That could only mean that the environment variable is not set, but I know I have it set in system and user variables. What am I doing wrong with this? |
Sry to be late in replying on this but I really can't help you much here, I I'd make sure you had javac available inside the path you mentioned. Are Best Regards On Tue, Apr 16, 2013 at 10:34 PM, pkor notifications@github.com wrote:
|
After wasting hours on how to set this up properly, this is what worked for me. I have tried to be as verbose as possible.
|
@harishankarv, nice work 👍 . This could actually land in the pyjnius installation docs if you want to make a pr for it. |
I just installed newer version of kivy 1.9.1, buildozer .32, and Cython 0.21, yet I also get the jnius error: File "bluetooth_kivy.py", line 15, in (I'm using the example from https://gist.github.com/tito/7432757 ) |
what do you mean by editing kivy.bat? |
solución: |
I have no idea where to begin installing this. I want to use it with kivy on android for the tts module. I can't find any documentation except for how to use it after it's installed. I tried using 'make' but my system doesn't recognize the 'make' command even after installing make. Need more detail on this. Maybe step by step (including installing make).
The text was updated successfully, but these errors were encountered: