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

Package does not install with pip #2

Closed
veleritas opened this issue Sep 28, 2016 · 7 comments
Closed

Package does not install with pip #2

veleritas opened this issue Sep 28, 2016 · 7 comments

Comments

@veleritas
Copy link
Contributor

The hetio package fails to properly install when using the command pip install git+https://github.com/dhimmel/hetio.git#egg=hetio as specified in the README.

From a virtual environment with pip 8.1.2 and setuptools 28.0.0 only, running pip install git+https://github.com/dhimmel/hetio.git#egg=hetio gives the following error:

Collecting hetio from git+https://github.com/dhimmel/hetio.git#egg=hetio
  Cloning https://github.com/dhimmel/hetio.git to /tmp/pip-build-7e3bcckm/hetio
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-7e3bcckm/hetio/setup.py", line 2, in <module>
        import pypandoc
    ImportError: No module named 'pypandoc'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7e3bcckm/hetio/

This seems to go away if you run pip install pypandoc first prior to installing, since it gets stuck at a different step (lack of the pandoc package).

@dhimmel
Copy link
Member

dhimmel commented Sep 29, 2016

I posted the hetio package to PyPI recently (https://pypi.python.org/pypi/hetio). However, I'm actually getting the following error on my Mac when I run pip install hetio:

Collecting hetio
  Could not find a version that satisfies the requirement hetio (from versions: )
No matching distribution found for hetio

Also good catch that the README is confusing. I should point users to PyPI install rather than GitHub install. See if pip install hetio works for you.

I'll keep looking into this.

@veleritas
Copy link
Contributor Author

Installing from PyPI didn't work for me either. It was the first thing that I tried, but I also got the same error as you. That was why I tried to install from github. The real issue is that this seems to be blocking for setting up the Anaconda environment for the integrate repo, which I'm not sure how to overcome at the moment.

@dhimmel
Copy link
Member

dhimmel commented Sep 29, 2016

BTW the error ImportError: No module named 'pypandoc' is because you don't have pypandoc installed, which is used by setup.py. But yeah that's an annoying dependency that I'll consider removing.

The real issue is that this seems to be blocking for setting up the Anaconda environment for the integrate repo, which I'm not sure how to overcome at the moment.

The solution path will be me fixing the hetio install issue and then changing the integrate environment.yml to use the pip hetio. Will aim to fix by midday tomorrow.

@dhimmel
Copy link
Member

dhimmel commented Sep 29, 2016

Okay I've fixed the "No matching distribution" issue. I had forgotten to run the last upload step for putting a package on PyPI. However, there's still the pypandoc dependency issue.

@dhimmel
Copy link
Member

dhimmel commented Sep 29, 2016

321fc74 removed the pypandoc installation issue. Both methods of pip installation should now work. Close if you agree 😸 .

@veleritas
Copy link
Contributor Author

Thanks, that solved the issues.

@nateshmbhat
Copy link

Try pip install --upgrade setuptools

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

3 participants