Parse error for file on Linux
See original GitHub issueThis is almost the same as #2256 except the workaround (use forward slashes) doesn’t work. Pipenv 2018.05.18
This dependency works great on Windows
python-ldap = {platform_system = "== 'Windows'", file = "./python_ldap-3.1.0-cp36-cp36m-win_amd64.whl"}
However, running pipenv install --skiplock --dev
on Linux (the Docker image python:3.6 to be exact) gives this error:
Installing dependencies from Pipfile… WARNING: Invalid requirement, parse error at “‘./python’” ABORTING INSTALL… You will have to reinstall any packages that failed to install.
Is it because the file doesn’t exist? I would expect it to not care because the marker doesn’t match.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Parse error in my shell-script - Unix & Linux Stack Exchange
1 Answer 1 ... 2 things catch my attention: if ((-f "$inputFile" ; -d "$pathinput" )) seems a mix between bash arithmetic and...
Read more >(standard_in) 1: parse error - The UNIX and Linux Forums
Hi, I am trying to make a script that tries to compare two values and print if one is greater than another. It...
Read more >Parse error in Bash script - linux - Stack Overflow
I am trying to make a bash script for each time I set up a new linux system. My problem is I am...
Read more >[Solved] "Unable to parse package file /var/lib/apt/lists" Error in ...
Handling “Unable to parse package file” error in Ubuntu and Debian-based Linux distributions. Here's what you need to do. Take a closer look...
Read more >Parse Error: What It Is and How to Fix It - Lifewire
Update to the latest version of Android. · Enable permissions to install apps from unknown sources. · Download and install your .apk file...
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
Hi, I’ve tested the command
pipenv install --skip-lock --dev
and get no errors. Is this issue fixed or do I something wrong?Test environment
python:3.9
pip install -e pipenv/
pipenv install --skip-lock --dev
in empty directoryOutput
`root@623cff45dafb:/opt/test# pipenv install --skip-lock --dev Creating a virtualenv for this project… Pipfile: /opt/test/Pipfile Using /usr/local/bin/python (3.9.10) to create virtualenv… ⠇ Creating virtual environment…created virtual environment CPython3.9.10.final.0-64 in 496ms creator CPython3Posix(dest=/root/.local/share/virtualenvs/test-mkYyOAPV, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv) added seed packages: pip==21.3.1, setuptools==60.2.0, wheel==0.37.1 activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment! Virtualenv location: /root/.local/share/virtualenvs/test-mkYyOAPV Creating a Pipfile for this project… Installing dependencies from Pipfile… 🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00 To activate this project’s virtualenv, run pipenv shell. Alternatively, run a command inside the virtualenv with pipenv run. `
If I’m reading this correctly,
do_install_dependencies
is callinglockfile.get_requirements
before resolving markers, thereby failing due to the missing file.I’m not sure what the right approach to fixing this would be.