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-compile is failing #324

Open
captbaritone opened this issue Apr 10, 2017 · 4 comments
Open

pip-compile is failing #324

captbaritone opened this issue Apr 10, 2017 · 4 comments
Labels
question Needs support or help

Comments

@captbaritone
Copy link
Member

When I run pip-compile -v requirements.in I'm getting an error:

pkg_resources.RequirementParseError: Expected ',' or end-of-list in Flask>=0.8; extra == "flask" at ; extra == "flask"

Looking at the verbose output, it looks like it's choking on the dependency of ravan[flask]? Perhaps that package has defined it's packages in a way that is incorrect?

I'm really not sure. Here's the verbose output:

https://gist.github.com/captbaritone/952e1f3d1b9a4a9f4b5b6def0f10a99d

@jonafato ?

@jonafato
Copy link
Contributor

@captbaritone I'm not able to reproduce this issue locally with the most recent versions of setuptools (the library that provides pkg_resources) and pip-tools (the library that provides pip-compile) under Python 2.7.12 or 3.5.2.

Does upgrading those two packages fix the issue? (i.e. pip install -U setuptools pip-tools.) If not, can you provide me with the Python version you're using so I can dig into the issue deeper?

@captbaritone
Copy link
Member Author

I'm on MacOS:

  • Python 2.7.13
  • setuptools 34.4.1
  • pip-tools 1.8.2
➜  vim-awesome git:(rotate-backups) ✗ pip show setuptools pip-tools
Name: setuptools
Version: 34.4.1
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License: UNKNOWN
Location: /usr/local/lib/python2.7/site-packages
Requires: six, packaging, appdirs
---
Name: pip-tools
Version: 1.8.2
Summary:
Home-page: None
Author: None
Author-email: None
License: None
Location: /usr/local/lib/python2.7/site-packages
Requires: first, six, click
➜  vim-awesome git:(rotate-backups) ✗ python --version
Python 2.7.13

@jonafato
Copy link
Contributor

Per the error message in your gist, it seems like the version of pkg_resources installed doesn't match what's reported (here's the line in the setuptools repo that should be raising that error, but the code in the traceback doesn't match the code for the 34.4.1 tag on GitHub: https://github.com/pypa/setuptools/blob/v34.4.1/pkg_resources/__init__.py#L2921). This issue looks possibly related.

My guess is that your pip and your pip-compile scripts are not pointing to the same Python installation. Can you paste the outputs of which pip and which pip-compile? This will give us insight into whether or not the info reported above is accurate or not (i.e. whether there are Python path issues causing problems in the environment).

@captbaritone
Copy link
Member Author

➜  ~ which pip
/usr/local/bin/pip
➜  ~ which pip-compile
/usr/local/bin/pip-compile
➜  ~ which python
/usr/local/bin/python

@cbartlett cbartlett added the question Needs support or help label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Needs support or help
Projects
None yet
Development

No branches or pull requests

3 participants