pipenv.project._lockfile doesn't exist anymore
Task Info (Flyspray) | |
---|---|
Opened By | Qontinuum (qontinuum) |
Task ID | 80277 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-11-17 07:15:20 UTC |
Status | Assigned |
Assignee | Felix Yan (felixonmars) |
Details
Packages like python-mocket fail to build because it tries to use pipenv.project._lockfile which doesn't exist.
07:43:14 ==> Starting prepare()... 07:43:14 Traceback (most recent call last): 07:43:14 File "/bin/pipenv_to_requirements", line 10, in 07:43:14 sys.exit(main()) 07:43:14 ^^^^^^ 07:43:14 File "/usr/lib/python3.11/site-packages/pipenv_to_requirements/init.py", line 112, in main 07:43:14 pipfile = Project()._lockfile 07:43:14 ^^^^^^^^^^^^^^^^^^^ 07:43:14 AttributeError: 'Project' object has no attribute '_lockfile'. Did you mean: 'lockfile'?
Using pipenv.project.lockfile in addition with the patch already applied fixes the issue. sed -i 's/pipfile = Project()._lockfile/pipfile = Project().lockfile/' pipenv_to_requirements/init.py