Giter Club home page Giter Club logo

Comments (4)

apalala avatar apalala commented on August 28, 2024

#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.

 avatar commented on August 28, 2024

@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.

imd avatar imd commented on August 28, 2024

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.

KeyWeeUsr avatar KeyWeeUsr commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.