qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

import jnius don't work #129

Closed FTeinz closed 7 years ago

FTeinz commented 8 years ago

Hello. I try to import jnius autoclass from my script. but getting following error.

`/data/data/com.hipipal.qpyplus/files/bin/qpython-android5.sh && exit files/bin/qpython-android5.sh && exit < Python 2.7.2 (default, Nov 2 2015, 01:07:37) [GCC 4.9 20140827 (prerelease)] on linux4 Type "help", "copyright", "credits" or "license" for more information.

from jnius import autoclass Traceback (most recent call last): File "", line 1, in File "/QPython/QPython2-core/build/python-install/lib/python2.7/site-packages/jnius/init.py", line 13, in File "/QPython/QPython2-core/build/python-install/lib/python2.7/site-packages/jnius/reflect.py", line 9, in File "jnius_export_class.pxi", line 44, in jnius.jnius.MetaJavaClass.new (jnius/jnius.c:13255) SystemError: NULL result without error in PyObject_Call `

Do I have to use the Kivy included junius?

Thanks a lot

ctmalan commented 7 years ago

Posted the same issue on stackoverflow just now. Is this a four-month old bug?

onekoech commented 7 years ago

I face similar problem

riverfor commented 7 years ago

pls insert "#qpy:kivy" to let it run with kivy mode.