Skip to content
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

jnius问题 #11

Open
huasheng-yue opened this issue Jun 26, 2020 · 3 comments
Open

jnius问题 #11

huasheng-yue opened this issue Jun 26, 2020 · 3 comments

Comments

@huasheng-yue
Copy link

启动后,测试jniushello目录下的main.py
在该目录下进入命令行,运行: python3 main.py 失败, 提示如下:
kivydev@kivydev-VirtualBox:/test/jniushello$ python3 main.py
[INFO ] [Logger ] Record log in /home/kivydev/.kivy/logs/kivy_20-06-26_13.txt
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "/usr/local/python37/lib/python3.7/site-packages/kivy/init.py"
[INFO ] [Python ] v3.7.1 (default, Apr 28 2020, 20:55:30)
[GCC 5.4.0 20160609]
[INFO ] [Python ] Interpreter at "/usr/local/python37/bin/python3"
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
Traceback (most recent call last):
File "main.py", line 3, in
from jnius import *
ModuleNotFoundError: No module named 'jnius'
kivydev@kivydev-VirtualBox:
/test/jniushello$

@huasheng-yue
Copy link
Author

No module named 'jnius'

@huasheng-yue
Copy link
Author

尝试安装jnius-1.1.0.tar.gz失败:
(kivyenv) PS C:\Users\hsytr> pip install D:\Anaconda\pkgs\jnius-1.1.0.tar.gz
Looking in indexes: http:https://mirrors.aliyun.com/pypi/simple/
Processing d:\anaconda\pkgs\jnius-1.1.0.tar.gz
ERROR: Command errored out with exit status 1:
command: 'D:\Anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\hsytr\AppData\Local\Temp\pip-req-build-qje4uhaf\setup.py'"'"'; file='"'"'C:\Users\hsytr\AppData\Local\Temp\pip-req-build-qje4uhaf\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\hsytr\AppData\Local\Temp\pip-pip-egg-info-d308rgy5'
cwd: C:\Users\hsytr\AppData\Local\Temp\pip-req-build-qje4uhaf
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\hsytr\AppData\Local\Temp\pip-req-build-qje4uhaf\setup.py", line 111, in
raise Exception('Unable to determine JDK_HOME')
Exception: Unable to determine JDK_HOME
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(kivyenv) PS C:\Users\hsytr>

@nkiiiiid
Copy link
Owner

all the example are used for package test,don't run it on computer,especially the libs used for Android system such as jnius

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

2 participants