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

pip install brunel error #298

Open
opokualbert opened this issue Apr 16, 2018 · 5 comments
Open

pip install brunel error #298

opokualbert opened this issue Apr 16, 2018 · 5 comments
Assignees
Labels
Milestone

Comments

@opokualbert
Copy link

Hello -
I tried to pip install brunel but I get this error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-oxnvqc7e/brunel/

Please take a look into this issue and help out.
Thanks!
Albert.

@danfike
Copy link

danfike commented Apr 16, 2018

I'm having trouble installing brunel with pip too. It just started today, after upgrading to pip 10.0.0.

$ pip install brunel
Collecting brunel
  Downloading https://files.pythonhosted.org/packages/5d/94/20ad0cb14c6ee0c873aa377b4edffc72b93c98221771e898eafb128433f3/brunel-2.3.tar.gz (2.1MB)
    .....
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/7l/psm5gvkj4c3bl4h83_kzz88r0000gn/T/pip-install-sybwjd/brunel/setup.py", line 30, in <module>
        pip.main(['install', 'jupyter-pip']); cmdclass = importlib.import_module('jupyterpip').cmdclass
    AttributeError: 'module' object has no attribute 'main'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/7l/psm5gvkj4c3bl4h83_kzz88r0000gn/T/pip-install-sybwjd/brunel/

pip.main(['install', 'jupyter-pip']); cmdclass = importlib.import_module('jupyterpip').cmdclass

It looks like the 10.0.0 version of pip has removed the pip.main() function and buried it at pip._internal.main

(observed with Python 2.7 and Python 3.6)

@danfike
Copy link

danfike commented Apr 16, 2018

@opalbert If your problem is the same as mine, you can temporarily work around the issue by explicitly installing jupyterpip manually before installing brunel

pip install jupyter-pip

@opokualbert
Copy link
Author

@danfike Thank you for your suggestion, the installation almost worked except that I get this new error which seems to me I need to install Java/JDK:
"RuntimeError: No Java/JDK could be found. I looked in the following directories:

/usr/lib/jvm/jre-1.7.0
/usr/lib/jvm/jre-1.6.0
/usr/lib/jvm/jre-openjdk
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64
/usr/lib/jvm/jre
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64
/usr/lib/jvm/jre-1.7.0-openjdk.x86_64
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.171.x86_64
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.161.x86_64

Please check that you have it installed.

If you have and the destination is not in the above list, please find out where your java's home is, set your JAVA_HOME environment variable to that path and retry the installation.
If this still fails please open a ticket or create a pull request with a fix on github:
https://github.com/tcalmant/jpype/

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-tydkch7j/JPype1-py3/"

@danfike
Copy link

danfike commented Apr 16, 2018

Yes, you'll need Java, and you'll need to ensure JAVA_HOME is set accordingly.

@grahamwills grahamwills added this to the 2.6 milestone Apr 18, 2018
@grahamwills grahamwills self-assigned this Apr 18, 2018
@opokualbert
Copy link
Author

After installing pip install jupyter-pip on a new machine, pip install brunel works.
Thanks all.
This may be closed.

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

No branches or pull requests

3 participants