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.

Parse error for file on Linux

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
willhohcommented, Jan 29, 2022

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

  1. Docker python:3.9
  2. installed pipenv with pip install -e pipenv/
  3. run command pipenv install --skip-lock --dev in empty directory

Output

`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. `

0reactions
GPHemsleycommented, May 29, 2020

If I’m reading this correctly, do_install_dependencies is calling lockfile.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.

Read more comments on GitHub >

github_iconTop 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 >

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