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.

`pipenv requirements` does not include markers

See original GitHub issue

I just tried to use pipenv reqirements instead of pipenv lock --requirements but it lacks markers so windows only dependencies from my lock file makes pip install -r ... fail.

example transitive dependency form lock file that at some point was locked on a windows machine:

        "twisted-iocpsupport": {
            "hashes": [
                "sha256:306becd6e22ab6e8e4f36b6bdafd9c92e867c98a5ce517b27fdd27760ee7ae41",
                "sha256:3c61742cb0bc6c1ac117a7e5f422c129832f0c295af49e01d8a6066df8cfc04d",
                "sha256:72068b206ee809c9c596b57b5287259ea41ddb4774d86725b19f35bf56aa32a9",
                "sha256:7d972cfa8439bdcb35a7be78b7ef86d73b34b808c74be56dfa785c8a93b851bf",
                "sha256:81b3abe3527b367da0220482820cb12a16c661672b7bcfcde328902890d63323",
                "sha256:851b3735ca7e8102e661872390e3bce88f8901bece95c25a0c8bb9ecb8a23d32",
                "sha256:985c06a33f5c0dae92c71a036d1ea63872ee86a21dd9b01e1f287486f15524b4",
                "sha256:9dbb8823b49f06d4de52721b47de4d3b3026064ef4788ce62b1a21c57c3fff6f",
                "sha256:b435857b9efcbfc12f8c326ef0383f26416272260455bbca2cd8d8eca470c546",
                "sha256:b76b4eed9b27fd63ddb0877efdd2d15835fdcb6baa745cb85b66e5d016ac2878",
                "sha256:b9fed67cf0f951573f06d560ac2f10f2a4bbdc6697770113a2fc396ea2cb2565",
                "sha256:bf4133139d77fc706d8f572e6b7d82871d82ec7ef25d685c2351bdacfb701415"
            ],
            "markers": "platform_system == 'Windows'",
            "version": "==1.0.2"
        },

Running pipenv lock --requirements --keep-outdated (on linux) results in:

twisted-iocpsupport==1.0.2; platform_system == 'Windows'

Running pipenv requirements (on linux) has no marker so the requirements file fails to install on linux.

twisted-iocpsupport==1.0.2

pipenv, version 2022.4.30

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ImreCcommented, May 23, 2022

Ok, forgot to do this. Will pick it up end of this week.

1reaction
fridexcommented, May 3, 2022

It looks like micropipenv requirements provides expected output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage of Pipenv - Read the Docs
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv lock . There are some known issues with using...
Read more >
pipenv Documentation - Read the Docs
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >
How to resolve Python package dependencies with pipenv?
You likely have a mismatch in your sub-dependencies. First try clearing your dependency cache with $ pipenv lock --clear, then try the original...
Read more >
Build failed using pipenv - Binder - Jupyter Community Forum
The repository includes both Pipfile and Pipfile.lock which I understand should be supported. For a reason that I don't understand, ...
Read more >
Advanced Usage of Pipenv — pipenv 11.7.2 documentation
If you have pyenv installed and configured, Pipenv will automatically ask you if you want to install a required version of Python if...
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