pipenv sync unexpected behavior when Pipfile missing
See original GitHub issuePipfile:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
aioredis = "*"
[dev-packages]
ipython = "*"
[requires]
python_version = "3.6"
Generate Pipefile.lock for the above, delete Pipfile, and then:
$ pipenv sync
...
$ cat Pipfile.lock
{
"_meta": {
"hash": {
"sha256": "4e55147db217bb4120f6e68cb8cad7bc37011457441ce0eb9d97308315625834"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.6"
},
"sources": [
{
"name": "pypi",
"url": "https://pypi.python.org/simple",
"verify_ssl": true
}
]
},
"default": {},
"develop": {}
}
Expected result
pipenv installs the packages in Pipfile.lock.
Actual result
pipenv installs no packages and replaces Pipfile.lock with a new file containing no packages.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Frequently Encountered Pipenv Problems - Read the Docs
This is usually a result of mixing Pipenv with system packages. We strongly recommend installing Pipenv in an isolated environment. Uninstall all existing ......
Read more >pipenv Documentation - Read the Docs
Generates and checks file hashes for locked dependencies when installing from Pipfile.lock. • Automatically install required Python version when pyenv is ...
Read more >pipenv Documentation
Pipfile is used to track which dependencies your project needs in case you need to re-install them, such as when.
Read more >Common Pipenv Errors and How to Solve Them: Why Won't it ...
Be aware that the 'Installation Succeeded' alert is untrue; there is no Panadas to install. All that s occurred is the addition of...
Read more >Pipenv: promises a lot, delivers very little | Chris Warrick
Pipenv is a Python packaging tool that does one thing reasonably well. ... writes a Pipfile, which lists Django as my dependency.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@techalchemy I think this should be reopened. When I put Pipfile.lock without the Pipfile in a Docker image and run
pipenv sync
in the directory with Pipfile.lock I’m getting:Error: Pipfile.lock is missing! You need to run $ pipenv lock first.
. When I copy the Pipfile as well the problem disappears.Sorry about that, error message seems to be pretty clearly wrong on this one!