jnius issue on Android 8.0. library "libsdl.so" not found

78 views
Skip to first unread message

ShrLnm

unread,
Jul 21, 2018, 10:54:41 AM7/21/18
to QPython
I could not import jnius module. The error message is as follows.
What I do wrong? How to install libsdl.so?

Thank you in advance   

/data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh && exit
files/bin/qpython-android5.sh && exit <
Python 2.7.12 (default, Nov 21 2017, 21:49:35)
[GCC 4.9.x 20150123 (prerelease)] on linux4Type "help", "copyright", "credits" or "license" for more information.
>>> import jnius
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/pyjnius_u4_qpython-1.1.2-py2.7.egg/jnius/__init__.py", line 12, in <module>
    from .jnius import * # noqa
ImportError: dlopen failed: library "libsdl.so" not found
>>>

ShrLnm

unread,
Jul 30, 2018, 4:09:11 AM7/30/18
to QPython
I solved the problem by inserting magic comments into main.py

#qpy:2
#qpy:kivy

but now I have another one issue. My application is just a console app which is using print and raw_input and I do not see anything on the screen when I use #qpy:kivy   (((((
Message has been deleted

ShrLnm

unread,
Jul 30, 2018, 4:17:24 AM7/30/18
to QPython

May I use jnius with console application? I need only ability to work with bluetooth devices
Reply all
Reply to author
Forward
0 new messages