python-javabridge icon indicating copy to clipboard operation
python-javabridge copied to clipboard

failed! pip install javabridge or python setup.py install (python version 3.11)

Open vishvas-chauhan opened this issue 2 years ago • 5 comments

OSError: [Errno 66] Directory not empty: '/private/var/folders/n3/mp3zkg9x3gggwvp4gwd22fvm0000gn/T/pip-install-g3vz28yz/javabridge_b31f256aa97646a0b790c436b8b07c69/.eggs/Cython-3.0.2-py3.11-macosx-10.9-universal2.egg/Cython-3.0.2.dist-info' -> '/private/var/folders/n3/mp3zkg9x3gggwvp4gwd22fvm0000gn/T/pip-install-g3vz28yz/javabridge_b31f256aa97646a0b790c436b8b07c69/.eggs/Cython-3.0.2-py3.11-macosx-10.9-universal2.egg/EGG-INFO' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> javabridge

vishvas-chauhan avatar Sep 06 '23 13:09 vishvas-chauhan

You may want to try downgrading Cython first. We've had a few issues after they changed major version to 3.

Run pip install "Cython<3.0.0" first, and then try again.

gnodar01 avatar Sep 06 '23 14:09 gnodar01

I tried already ! then it started showing other files compatiablity issue. like below _javabridge.c:196:12: fatal error: 'longintrepr.h' file not found #include "longintrepr.h" ^~~~~~~~~~~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

vishvas-chauhan avatar Sep 06 '23 15:09 vishvas-chauhan

Ah, okay. That's specific to python 3.11. We are currently supporting python 3.8 and 3.9.

gnodar01 avatar Sep 06 '23 15:09 gnodar01

OSError: [Errno 66] Directory not empty: '/private/var/folders/n3/mp3zkg9x3gggwvp4gwd22fvm0000gn/T/pip-install-g3vz28yz/javabridge_b31f256aa97646a0b790c436b8b07c69/.eggs/Cython-3.0.2-py3.11-macosx-10.9-universal2.egg/Cython-3.0.2.dist-info' -> '/private/var/folders/n3/mp3zkg9x3gggwvp4gwd22fvm0000gn/T/pip-install-g3vz28yz/javabridge_b31f256aa97646a0b790c436b8b07c69/.eggs/Cython-3.0.2-py3.11-macosx-10.9-universal2.egg/EGG-INFO' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> javabridge

have you solved this problem?

Simonleedata avatar Mar 26 '24 13:03 Simonleedata

have you solved this problem?

Ah, okay. That's specific to python 3.11. We are currently supporting python 3.8 and 3.9.

have you solved this problem?

Simonleedata avatar Mar 26 '24 13:03 Simonleedata