question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

extra-index-url URL in generated requirements.txt syntax error

See original GitHub issue

This bug seems to be introduced between pipenv 9.0.3 and 11.8.3. I have a Pipfile with two sources:

[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[[source]]

url = "https://pypi.fury.io/TOKEN/jzoo/"
verify_ssl = true
name = "jzoo"


[packages]

"e1839a8" = {path = ".", editable = true}

When installing from this using a basic pipenv install --dev I get the following:

…
Installing 'jsonschema==2.6.0 --hash=sha256:000e68abd33c972a5248544925a0cae7d1125f9bf6c58280d37546b946769a08  --hash=sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02   --extra-index-url https://pypi.fury.io/TOKEN/jzoo/'
$ "/Users/wichert/.local/share/virtualenvs/whitelabel.api-aXG16dXx/bin/pip" install   --verbose  --no-deps  -r /var/folders/mq/cq4zpf2n6qz_8x4jqsmmv6b80000gn/T/pipenv-t2i8sda7-requirements/pipenv-zygz4qgt-requirement.txt --require-hashes -i https://pypi.python.org/simple --exists-action w
Installing 'jzoo.utils==1.17.0  --extra-index-url https://pypi.fury.io/TOKEN/jzoo/'
WARNING: Invalid requirement, parse error at "'--extra-'"
ABORTING INSTALL... You will have to reinstall any packages that failed to install.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wichertcommented, Apr 5, 2018

Regenerating the lockfile indeed fixes this. I have no idea why that helps - are there any backwards compatibility guarantees for lockfiles? I couldn’t find any things in the documentation.

1reaction
wichertcommented, Mar 19, 2018

Trying to narrow this down:

  • 9.0.3: works
  • 9.1.0: works
  • 10.0.0: works
  • 11.0.0: works
  • 11.5.*: failed to start
  • 11.6.0: works
  • 11.6.1: works
  • 11.6.2: fails
  • 11.6.4: fails
  • 11.6.9: fails
  • 11.7.0: fails
  • 11.8.3: fails

So something in the 11.6.2 release introduced this particular error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ubuntu - --extra-index-url not work in python requirements.txt
In the requirements.txt file format specification, the --extra-index-url option is considered a "global option" and has to be isolated on ...
Read more >
Requirements File Format - pip documentation v22.3.1
Requirements files serve as a list of items to be installed by pip, when using pip install. Files that use this format are...
Read more >
Specifying dependencies in Python | Cloud Functions ...
There are two ways to specify dependencies for Cloud Functions written in Python: using the pip package manager's requirements.txt file or packaging local ......
Read more >
pip install — pip 10.0.0.dev0 documentation
Any URL may use the #egg=name syntax (see VCS Support) to explicitly state the project name. ... Use pip install -r example-requirements.txt to...
Read more >
Python developer reference for Azure Functions
To learn more, see local.settings.file. requirements.txt: Contains the list of Python ... you can use remote build with extra index URL.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found