packaging.requirements.InvalidRequirement: Parse error at "':///home'": Expected stringEnd
See original GitHub issue- I have searched the issue tracker and believe that this is not a duplicate.
Make sure you run commands with -v
flag before pasting the output.
Steps to reproduce
pip install pdm pdm init pdm add flask
Actual behavior
step1 and step2 has not any error, then i use pdm to add a packages, that has this errors
Expected behavior
parse error at “‘😕//home’”
Environment Information
os: arch
python system version: 3.8.6
use version: 3.7.8 from pyenv
pdm install method: pip install pdm
# Paste the output of `pdm info && pdm info --env` below:
pdm info
PDM version: 0.11.0
Python Interpreter: /home/ajin/.pyenv/versions/3.7.8/bin/python3 (3.7.8)
Project Root: /home/ajin/code/fastapi_test
pdm info --env
{
"implementation_name": "cpython",
"implementation_version": "3.7.8",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "5.9.8-arch1-1",
"platform_system": "Linux",
"platform_version": "#1 SMP PREEMPT Tue, 10 Nov 2020 22:44:11 +0000",
"python_full_version": "3.7.8",
"platform_python_implementaiton": "CPython",
"python_version": "3.7",
"sys_platform": "linux"
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
packaging.requirements.InvalidRequirement: Parse error at ...
I have searched the issue tracker and believe that this is not a duplicate. Make sure you run commands with -v flag before...
Read more >Trying to Package a Python package up for PYPI getting an ...
raise InvalidRequirement( pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at ""['tracew"": Expected W:(abcd...).
Read more >Requirements for custom_component not installing anymore
InvalidRequirement : Parse error at "'=filterp'": Expected stringEnd. when I add numpy and scipy to my requirements I get the error
Read more >PEP 621: how to specify dependencies? - Packaging
from packaging.requirements import Requirement requirements ... InvalidRequirement: Parse error at "'python_v'": Expected stringEnd.
Read more >RequirementParseError: Invalid requirement, parse error at ...
Ilya Chernyakov The problem could be in the RequestsThrottler package itself. Anyway we should be able to handle this error in a better...
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
Just avoid installing PDM into global Python. I don’t know what tooling you are using though, This should solve the problem
I’m experiencing this exact problem, but weirdly enough it only happens when
version
is set to something inpyproject.toml
:The actual parse error I suspect comes from this:
These strings are put in
direct_url.json
files installed bypip install
, according to PEP610. I’m not sure if system-wide packages are supposed to have these, though.As a final note, this is a system-wide install in Archlinux, and I happen to be the AUR package maintainer for these three packages.