mardi 30 juin 2015

Installaton error when doing 'make tests' pyjnius in osx 10.9 : Class not found etc

I have these elements installed :
cython v0.20
python v2.7.5
osx 10.9.2
jre 8u45
jdk 8u45
nosetest 1.3.7

i’m trying to install pyjnius on my mac osx 10.9.2 I have python+kivy+cython+jdk+jre installed. Kivy is running properly, now i want to add pyjnius. It's compiled without error, but when doing 'make tests' i got a lot of error. Btw, inside kivy, i can import jnius only if i'm in the pyjnius installation folder. If i'm in other folder, i will got error msg "ImportError: No module named jnius". Below are the steps taken from the setup until make tests.

so my questions are :
1. how to fix the make tests error ?
2. In Kivy, How can i import the jnius /pyjnius without having to be in the pyjnius folder? Anyone got the solution ?

Here's the output of the error. The setup and make give no error, but make tests produce a lot of error.

$ sudo python setup.py install

14 warnings generated.
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/jnius/jnius.o -o build/lib.macosx-10.9-intel-2.7/jnius/jnius.so -framework JavaVM
running install_lib
copying build/lib.macosx-10.9-intel-2.7/jnius/jnius.so -> /Library/Python/2.7/site-packages/jnius
running install_egg_info
Removing /Library/Python/2.7/site-packages/jnius-1.1_dev-py2.7.egg-info
Writing /Library/Python/2.7/site-packages/jnius-1.1_dev-py2.7.egg-info

$ sudo make

14 warnings generated.
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g build/temp.macosx-10.9-intel-2.7/jnius/jnius.o -o /Users/andi/Documents/temp/pyjnius/jnius/jnius.so -framework JavaVM

$ sudo make tests
i got a lot of error :


JavaException: Class not found 'org/jnius/BasicsTest'

JavaException: JVM exception occurred: org/jnius/BasicsTest : Unsupported major.minor version 52.0

JavaException: Class not found 'org/jnius/BasicsTest'

JavaException: Class not found 'org/jnius/BasicsTest'

JavaException: Class not found 'org/jnius/BasicsTest'

JavaException: JVM exception occurred: org/jnius/NativeInvocationHandler

JavaException: Unable to find the class org/jnius/HelloWorld


Ran 47 tests in 0.349s

FAILED (errors=37) make: *** [tests] Error 1

Aucun commentaire:

Enregistrer un commentaire