Comments (4)
#1 Jnius is not parsing the classes of objects returned from Java, and #2 it is not handling inheritance in parameter passing. Any help with those features would be appreciated.
from pyjnius.
@imd could test this with the master version of jnius because there have been updates regarding this issue, you can install the lastest version of jnius using the following pip command if you have all the required pip libraries:
pip install git+git://github.com/kivy/pyjnius.git
Thanks.
from pyjnius.
I can't install that. I get the following output from pip install:
Downloading/unpacking git+git://github.com/kivy/pyjnius.git
Cloning git://github.com/kivy/pyjnius.git to /tmp/pip-LCFF6F-build
Running setup.py egg_info for package from git+git://github.com/kivy/pyjnius.git
Requirement already satisfied (use --upgrade to upgrade): cython in /usr/lib/pymodules/python2.7 (from jnius==1.1-dev)
Installing collected packages: jnius
Running setup.py install for jnius
building 'jnius' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/linux -I/usr/include/python2.7 -c jnius/jnius.c -o build/temp.linux-x86_64-2.7/jnius/jnius.o
gcc: error: jnius/jnius.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
Complete output from command /home/ian/my_new_env/bin/python -c "import setuptools;__file__='/tmp/pip-LCFF6F-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TOMvhq-record/install-record.txt --single-version-externally-managed --install-headers /home/ian/my_new_env/include/site/python2.7:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/jnius
copying jnius/reflect.py -> build/lib.linux-x86_64-2.7/jnius
copying jnius/__init__.py -> build/lib.linux-x86_64-2.7/jnius
running build_ext
building 'jnius' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/jnius
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/linux -I/usr/include/python2.7 -c jnius/jnius.c -o build/temp.linux-x86_64-2.7/jnius/jnius.o
gcc: error: jnius/jnius.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
error: command 'gcc' failed with exit status 4
----------------------------------------
Command /home/ian/my_new_env/bin/python -c "import setuptools;__file__='/tmp/pip-LCFF6F-build/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TOMvhq-record/install-record.txt --single-version-externally-managed --install-headers /home/ian/my_new_env/include/site/python2.7 failed with error code 1 in /tmp/pip-LCFF6F-build
Storing complete log in /home/ian/.pip/pip.log
from pyjnius.
Can't reproduce and it is a foreign package. In the future assemble a minimal example for both Python and Java side, so that the error can be reproduced. You don't need to use Android at all, you just need to have Java installed on your PC and Python+PyJNIus too. Also, there were some critical issues fixed recently, so you might want to try with master
branch or wait for the next release.
from pyjnius.
Related Issues (20)
- pyjnius 1.4.2 and Cython 3.0.0 HOT 4
- pyjnius build error on s390x HOT 10
- ClassNotFoundException for android.media.midi.MidiManager.OnDeviceOpenedListener HOT 3
- unexpected error for jdk17 HOT 4
- Crashes on Apple M1 HOT 27
- How to add everything under M2 repository to pyjnius classpath? HOT 2
- DeprecationWarning: pkg_resources is deprecated as an API
- pyjnius build error, still coming HOT 10
- Including a JAR on Android HOT 2
- Support mail address is broken HOT 2
- OverflowError: value too large to convert to jshort HOT 4
- How to create Webview with FileChooser HOT 1
- Moderinze `java` code? HOT 2
- installation documentation could be refreshed HOT 3
- Usage without JDK HOT 6
- AttributeError: 'Class' object has no attribute '_JavaClass__cls_storage' HOT 4
- Running python script on Android but in Docker container HOT 1
- Getting a pointer to JavaVM
- Dependency Dashboard
- No jvm.dll found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyjnius.