Arch Linux

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!
Tasklist

FS#80277 - [python-pipenv-to-requirements] pipenv.project._lockfile doesn't exist anymore

Attached to Project: Arch Linux
Opened by Qontinuum (qontinuum) - Friday, 17 November 2023, 07:15 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:21 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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 <module>
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
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:21 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/python-pipenv-to-requi rements/issues/2
Comment by Toolybird (Toolybird) - Sunday, 19 November 2023, 04:36 GMT
The PM is clearly aware of this issue [1]

[1] https://github.com/gsemet/pipenv-to-requirements/pull/26
Comment by Qontinuum (qontinuum) - Sunday, 19 November 2023, 07:14 GMT
It is related but not really the same issue.
The bug is caused by this commit[1] that renamed _lockfile() to lockfile().
For now compatibility is broken with pipenv>=2023.6.26

[1]: https://github.com/pypa/pipenv/commit/7458b32e345db109bc94f03ce50a3c6e15c99185

Loading...