GithubHelp home page GithubHelp logo

Comments (3)

rafaela-amorim avatar rafaela-amorim commented on August 23, 2024 1

I could install javabridge using this in Colab, hope it helps you!

!python -m pip install --use-pep517 git+https://github.com/SchmollerLab/python-javabridge-windows

from colabtools.

rafaela-amorim avatar rafaela-amorim commented on August 23, 2024

I had the same, I tried downgrading to python 3.9 and the error keeps happening to me:

Python 3.9 error message:

Collecting javabridge
  Using cached javabridge-1.0.19.tar.gz (1.3 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (from javabridge) (2.0.0)
Building wheels for collected packages: javabridge
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for javabridge (setup.py) ... error
  ERROR: Failed building wheel for javabridge
  Running setup.py clean for javabridge
Failed to build javabridge
Installing collected packages: javabridge
  error: subprocess-exited-with-error
  
  × Running setup.py install for javabridge did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Running setup.py install for javabridge ... error
error: legacy-install-failure

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

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Additional content:

!apt-get install openjdk-8-jdk-headless -qq > /dev/null

import os
os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk-amd64"

!set MSSdk=1
!set DISTUTILS_USE_SDK=1
!update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
!java -version

from colabtools.

cperry-goog avatar cperry-goog commented on August 23, 2024

Thanks @rafaela-amorim !

from colabtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.