Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdm breaks down because pip 22.2 removed html5lib #1261

Closed
1 task done
viing937 opened this issue Jul 22, 2022 · 1 comment · Fixed by #1266
Closed
1 task done

pdm breaks down because pip 22.2 removed html5lib #1261

viing937 opened this issue Jul 22, 2022 · 1 comment · Fixed by #1266
Labels
🐛 bug Something isn't working

Comments

@viing937
Copy link

  • 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 22.2 removed html5lib.
This is its changelog.

pip3 install -U pip setuptools wheel pdm==1.15.4
pdm sync --prod

Actual behavior

#15 79.39 Traceback (most recent call last):
#15 79.39   File "/usr/local/bin/pdm", line 5, in <module>
#15 79.39     from pdm.core import main
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/__init__.py", line 5, in <module>
#15 79.39     from pdm.cli.commands.base import BaseCommand
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/cli/commands/base.py", line 6, in <module>
#15 79.39     from pdm.cli.utils import PdmFormatter
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/cli/utils.py", line 30, in <module>
#15 79.39     from pdm.formats import FORMATS
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/formats/__init__.py", line 8, in <module>
#15 79.39     from pdm.formats import flit, legacy, pipfile, poetry, requirements, setup_py
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/formats/flit.py", line 18, in <module>
#15 79.39     from pdm.project import Project
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/project/__init__.py", line 2, in <module>
#15 79.39     from pdm.project.core import Project  # noqa
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/project/core.py", line 24, in <module>
#15 79.39     from pdm.models.repositories import BaseRepository, LockedRepository, PyPIRepository
#15 79.39   File "/usr/local/lib/python3.7/site-packages/pdm/models/repositories.py", line 9, in <module>
#15 79.39     from pip._vendor.html5lib import parse
#15 79.39 ModuleNotFoundError: No module named 'pip._vendor.html5lib'

Expected behavior

I Know pdm 2.0 does not use pip anymore, but is there a proper way to lock pip version under 22.2 for pdm 1.x?

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
@viing937 viing937 added the 🐛 bug Something isn't working label Jul 22, 2022
@frostming
Copy link
Collaborator

frostming commented Jul 23, 2022

You can set the upper bound yourself:

pipx inject pdm "pip<22.2"
pip install -U pdm==1.15.4 pip<22.2

@frostming frostming linked a pull request Jul 23, 2022 that will close this issue
2 tasks
Fak3 added a commit to uncefact/project-traceability that referenced this issue Jul 26, 2022
pip dropped support for html5lib: pdm-project/pdm#1261
Fak3 added a commit to uncefact/project-traceability that referenced this issue Jul 26, 2022
pip dropped support for html5lib: pdm-project/pdm#1261
Fak3 added a commit to uncefact/project-traceability that referenced this issue Jul 26, 2022
pip dropped support for html5lib: pdm-project/pdm#1261
Fak3 added a commit to uncefact/project-traceability that referenced this issue Jul 26, 2022
pip dropped support for html5lib: pdm-project/pdm#1261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants