CellProfiler / python-javabridge

Python wrapper for the Java Native Interface
Other
21 stars 11 forks source link

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

Open vishvas-chauhan opened 10 months ago

vishvas-chauhan commented 10 months ago

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

gnodar01 commented 10 months ago

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.

vishvas-chauhan commented 10 months ago

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

gnodar01 commented 10 months ago

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

Simonleedata commented 3 months ago

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 commented 3 months ago

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?