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

install error using pip

Open jason-liu22 opened this issue 4 years ago • 4 comments

javabridge here is my java version java-version

jason-liu22 avatar Oct 29 '21 21:10 jason-liu22

Could anyone help me, please?

jason-liu22 avatar Oct 29 '21 21:10 jason-liu22

Hi, @bethac07 Can you help me, please?

jason-liu22 avatar Nov 02 '21 20:11 jason-liu22

I'm having the same problem. Did you maybe figure it out?

CotarP avatar Jan 20 '22 17:01 CotarP

Having same problem installing javabridge with pip.

(cellpose) C:\Users\rjh0218>pip install python-javabridge Collecting python-javabridge Using cached python-javabridge-4.0.3.tar.gz (1.3 MB) ERROR: Command errored out with exit status 1: command: 'C:\Users\rjh0218\.conda\envs\cellpose\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_0a9bd52817514c5b9f1f0d9a4e97db6d\\setup.py'"'"'; __file__='"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_0a9bd52817514c5b9f1f0d9a4e97db6d\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\rjh0218\AppData\Local\Temp\pip-pip-egg-info-3h3hqkvg' cwd: C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_0a9bd52817514c5b9f1f0d9a4e97db6d\ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_0a9bd52817514c5b9f1f0d9a4e97db6d\setup.py", line 412, in <module> ext_modules=ext_modules(), File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_0a9bd52817514c5b9f1f0d9a4e97db6d\setup.py", line 99, in ext_modules jdk_home = find_jdk() File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_0a9bd52817514c5b9f1f0d9a4e97db6d\javabridge\locate.py", line 222, in find_jdk raise RuntimeError( RuntimeError: Failed to find the Java Development Kit. Please download and install the Oracle JDK 1.6 or later ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/5e/d5/78f75ee0a6beb51a606c50cc17d8f99782653f04dce6d5e12feaef089692/python-javabridge-4.0.3.tar.gz#sha256=3fee0c235efcfe866f95695fdc0b6289eab2371043b32ff4ca6feff098de59c5 (from https://pypi.org/simple/python-javabridge/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached python-javabridge-4.0.2.tar.gz (1.3 MB) ERROR: Command errored out with exit status 1: command: 'C:\Users\rjh0218\.conda\envs\cellpose\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_35fa36164a184644b14b5a31bbeacca1\\setup.py'"'"'; __file__='"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_35fa36164a184644b14b5a31bbeacca1\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\rjh0218\AppData\Local\Temp\pip-pip-egg-info-6v5834k3' cwd: C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_35fa36164a184644b14b5a31bbeacca1\ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_35fa36164a184644b14b5a31bbeacca1\setup.py", line 412, in <module> ext_modules=ext_modules(), File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_35fa36164a184644b14b5a31bbeacca1\setup.py", line 99, in ext_modules jdk_home = find_jdk() File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_35fa36164a184644b14b5a31bbeacca1\javabridge\locate.py", line 222, in find_jdk raise RuntimeError( RuntimeError: Failed to find the Java Development Kit. Please download and install the Oracle JDK 1.6 or later ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/8c/c1/e553ceb6e71e0112d125d5a451390dc7df42962c1f67147a4c1d5b1938f9/python-javabridge-4.0.2.tar.gz#sha256=9a802a56e36e5a53cf01ca1fb9bb367b5a332cabe203b23980aa3aa32110a404 (from https://pypi.org/simple/python-javabridge/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached python-javabridge-4.0.1.tar.gz (1.3 MB) ERROR: Command errored out with exit status 1: command: 'C:\Users\rjh0218\.conda\envs\cellpose\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_ae2598891d4f478988c0aab18284549f\\setup.py'"'"'; __file__='"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_ae2598891d4f478988c0aab18284549f\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\rjh0218\AppData\Local\Temp\pip-pip-egg-info-b9to9ie4' cwd: C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_ae2598891d4f478988c0aab18284549f\ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_ae2598891d4f478988c0aab18284549f\setup.py", line 412, in <module> ext_modules=ext_modules(), File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_ae2598891d4f478988c0aab18284549f\setup.py", line 99, in ext_modules jdk_home = find_jdk() File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_ae2598891d4f478988c0aab18284549f\javabridge\locate.py", line 222, in find_jdk raise RuntimeError( RuntimeError: Failed to find the Java Development Kit. Please download and install the Oracle JDK 1.6 or later ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/0e/52/b444f826f4148cc741755a6b6adbd1707c01864e45359b8fdf3f67c71ebc/python-javabridge-4.0.1.tar.gz#sha256=27ab04b2ae0e5f44d07854e9103dd125374d1cd9f797a2073284670de1027124 (from https://pypi.org/simple/python-javabridge/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Using cached python-javabridge-4.0.0.tar.gz (1.3 MB) ERROR: Command errored out with exit status 1: command: 'C:\Users\rjh0218\.conda\envs\cellpose\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_83d17d29898b458eae0e28b2c68a0076\\setup.py'"'"'; __file__='"'"'C:\\Users\\rjh0218\\AppData\\Local\\Temp\\pip-install-ws_mtnf8\\python-javabridge_83d17d29898b458eae0e28b2c68a0076\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\rjh0218\AppData\Local\Temp\pip-pip-egg-info-r6y7yb37' cwd: C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_83d17d29898b458eae0e28b2c68a0076\ Complete output (9 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_83d17d29898b458eae0e28b2c68a0076\setup.py", line 412, in <module> ext_modules=ext_modules(), File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_83d17d29898b458eae0e28b2c68a0076\setup.py", line 99, in ext_modules jdk_home = find_jdk() File "C:\Users\rjh0218\AppData\Local\Temp\pip-install-ws_mtnf8\python-javabridge_83d17d29898b458eae0e28b2c68a0076\javabridge\locate.py", line 223, in find_jdk raise RuntimeError( RuntimeError: Failed to find the Java Development Kit. Please download and install the Oracle JDK 1.6 or later ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/58/5c/bfcc52002c9dfe5fe3bd067783243ab0130f59f757b0517f62f1ba7e88ea/python-javabridge-4.0.0.tar.gz#sha256=9fd9c85e6a32f4edd9fff659d387cbf4c1c91fde9fe3670e4f6d37d79eb6200f (from https://pypi.org/simple/python-javabridge/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement python-javabridge (from versions: 4.0.0, 4.0.1, 4.0.2, 4.0.3) ERROR: No matching distribution found for python-javabridge

rayhendricks avatar May 17 '22 17:05 rayhendricks