Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#70104 - [python-pip] 20.3.1 fails on installing packages with expected string or bytes-like object
Attached to Project:
Arch Linux
Opened by Andrew (deathangel908) - Sunday, 21 March 2021, 10:45 GMT
Last edited by David Runge (dvzrv) - Monday, 27 June 2022, 13:39 GMT
Opened by Andrew (deathangel908) - Sunday, 21 March 2021, 10:45 GMT
Last edited by David Runge (dvzrv) - Monday, 27 June 2022, 13:39 GMT
|
DetailsDescription:
Installing packages from venv throws exception `expected string or bytes-like object`. ``` ERROR: Exception: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 224, in _main status = self.run(options, args) File "/usr/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper return func(self, options, args) File "/usr/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 320, in run requirement_set = resolver.resolve( File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve self._result = resolver.resolve( File "/usr/lib/python3.9/site-packages/resolvelib/resolvers.py", line 453, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/usr/lib/python3.9/site-packages/resolvelib/resolvers.py", line 347, in resolve failure_causes = self._attempt_to_pin_criterion(name, criterion) File "/usr/lib/python3.9/site-packages/resolvelib/resolvers.py", line 216, in _attempt_to_pin_criterion satisfied = all( File "/usr/lib/python3.9/site-packages/resolvelib/resolvers.py", line 217, in <genexpr> self._p.is_satisfied_by(r, candidate) File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 95, in is_satisfied_by return requirement.is_satisfied_by(candidate) File "/usr/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/requirements.py", line 102, in is_satisfied_by return spec.contains(candidate.version, prereleases=True) File "/usr/lib/python3.9/site-packages/packaging/specifiers.py", line 790, in contains item = parse(item) File "/usr/lib/python3.9/site-packages/packaging/version.py", line 57, in parse return Version(version) File "/usr/lib/python3.9/site-packages/packaging/version.py", line 296, in __init__ match = self._regex.search(version) TypeError: expected string or bytes-like object ``` Additional info: * package version(s): 20.3.1-1 (works in 20.2.4-1) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: 1. create venv: `python3 -m venv --system-site-packages .venv` 2. Activate venv: `source .venv/bin/activate` 3. create requirements.txt with any dependency. E.g. `pyfcm==1.5.1` 4. Run `pip install -r requirements.txt` |
This task depends upon
N.B. I encounter this only in zsh, not in bash. (?!)