Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not build wheels for javabridge #214

Open
Erich112 opened this issue Jan 7, 2024 · 0 comments
Open

Could not build wheels for javabridge #214

Erich112 opened this issue Jan 7, 2024 · 0 comments

Comments

@Erich112
Copy link

Erich112 commented Jan 7, 2024

C:\Users(my user)>pip install javabridge
Defaulting to user installation because normal site-packages is not writeable
Collecting javabridge
Using cached javabridge-1.0.19.tar.gz (1.3 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users(my user)\appdata\roaming\python\python311\site-packages (from javabridge) (1.26.3)
Building wheels for collected packages: javabridge
Building wheel for javabridge (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [46 lines of output]
C:\Users(my user)\AppData\Roaming\Python\Python311\site-packages\setuptools_init_.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-311
  creating build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\jutil.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\locate.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\noseplugin.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\wrappers.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\_version.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\__init__.py -> build\lib.win-amd64-cpython-311\javabridge
  creating build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_cpython.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_javabridge.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_jutil.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_wrappers.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\__init__.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  creating build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\cpython.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\rhino-1.7R4.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\runnablequeue.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\test.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  running build_ext
  "C:\Program Files\Java\jdk-19\bin\javac.exe" C:\Users\(my user)\AppData\Local\Temp\pip-install-kuni0uwg\javabridge_7dc202fb6ccb4dedae745f2043800ec8\java\org\cellprofiler\runnablequeue\RunnableQueue.java
  "C:\Program Files\Java\jdk-19\bin\javac.exe" C:\Users\(my user)\AppData\Local\Temp\pip-install-kuni0uwg\javabridge_7dc202fb6ccb4dedae745f2043800ec8\java\org\cellprofiler\javabridge\test\RealRect.java
  "C:\Program Files\Java\jdk-19\bin\javac.exe" C:\Users\(my user)\AppData\Local\Temp\pip-install-kuni0uwg\javabridge_7dc202fb6ccb4dedae745f2043800ec8\java\org\cellprofiler\javabridge\CPython.java C:\Users\(my user)\AppData\Local\Temp\pip-install-kuni0uwg\javabridge_7dc202fb6ccb4dedae745f2043800ec8\java\org\cellprofiler\javabridge\CPythonInvocationHandler.java
  Note: C:\Users\(my user)\AppData\Local\Temp\pip-install-kuni0uwg\javabridge_7dc202fb6ccb4dedae745f2043800ec8\java\org\cellprofiler\javabridge\CPythonInvocationHandler.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  building 'javabridge._javabridge' extension
  creating build\temp.win-amd64-cpython-311
  creating build\temp.win-amd64-cpython-311\Release
  "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Java\jdk-19\include" "-IC:\Program Files\Java\jdk-19\include\win32" -IC:\Users\(my user)\AppData\Roaming\Python\Python311\site-packages\numpy\core\include "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tc_javabridge.c /Fobuild\temp.win-amd64-cpython-311\Release\_javabridge.obj
  _javabridge.c
  _javabridge.c(196): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for javabridge
Running setup.py clean for javabridge
Failed to build javabridge
ERROR: Could not build wheels for javabridge, which is required to install pyproject.toml-based projects

C:\Users(my user)>
C:\Users(my user)>pip install javabridge==1.0.18
Defaulting to user installation because normal site-packages is not writeable
Collecting javabridge==1.0.18
Downloading javabridge-1.0.18.tar.gz (1.3 MB)
---------------------------------------- 1.3/1.3 MB 3.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users(my user)\appdata\roaming\python\python311\site-packages (from javabridge==1.0.18) (1.26.3)
Building wheels for collected packages: javabridge
Building wheel for javabridge (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
C:\Users(my user)\AppData\Roaming\Python\Python311\site-packages\setuptools_init_.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-311
  creating build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\jutil.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\locate.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\noseplugin.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\wrappers.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\_version.py -> build\lib.win-amd64-cpython-311\javabridge
  copying javabridge\__init__.py -> build\lib.win-amd64-cpython-311\javabridge
  creating build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_cpython.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_javabridge.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_jutil.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\test_wrappers.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  copying javabridge\tests\__init__.py -> build\lib.win-amd64-cpython-311\javabridge\tests
  creating build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\cpython.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\rhino-1.7R4.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\runnablequeue.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  copying javabridge\jars\test.jar -> build\lib.win-amd64-cpython-311\javabridge\jars
  running build_ext
  "C:\Program Files\Java\jdk-19\bin\javac.exe" -source 6 -target 6 C:\Users\(my user)\AppData\Local\Temp\pip-install-dctmegxu\javabridge_88e28d6aab33464bb0f3b1a7b2abc53e\java\org\cellprofiler\runnablequeue\RunnableQueue.java
  warning: [options] bootstrap class path not set in conjunction with -source 6
  error: Source option 6 is no longer supported. Use 7 or later.
  error: Target option 6 is no longer supported. Use 7 or later.
  error: command 'C:\\Program Files\\Java\\jdk-19\\bin\\javac.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for javabridge
Running setup.py clean for javabridge
Failed to build javabridge
ERROR: Could not build wheels for javabridge, which is required to install pyproject.toml-based projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant