Summary: | devel/py-urwid Update to 2.2.x breaks several python packages | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Jens Grassel <freebsd-ports> | ||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||
Status: | Closed Overcome By Events | ||||||
Severity: | Affects Only Me | CC: | andreas, grahamperrin, jcfyecrayz, kaltheat, lexi, mail, python, sunpoet | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(python) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 276494 | ||||||
Attachments: |
|
Description
Jens Grassel
2023-10-11 13:33:00 UTC
Had time to run some tests, the last working version is py-urwid-2.1.2 (commit hash dca49dfd69fbff2c05e31310aa6c51f02dc07bd4 in ports). I have the same situation for desktuils/py-todoman. The issue here looks a little like bug #269686 which was also related to the switch to PEP517. Seeing this error with sysutils/s-tui. I can get devel/py-urwid working if I build with devel/py-setuptools_scm7. pyproject.toml claims it works with scm>=6.2, but maybe that is an upstream error. I am still investigating that. But I can confirm this has been broken since 2.2.1 was committed Sep 30, 2023. @sunpoet, did this work for you? Here it won't even import (python3.9 -c 'import urwid' fails as described in comment 0). Same results for upstream versions 2.2.0 - 2.2.3. The generated version.py does not have a __version__ when using scm6. See https://github.com/urwid/urwid/issues/674 Created attachment 246453 [details] [patch] devel/py-urwid generates a bad version.py with scm6, require >= scm7 (In reply to John Hein from comment #4) Update to newer setuptools_scm to fix badly generated version.py. __init__.py looks for __version__, et. al., in version.py which scm6 does not provide. Updating to newer scm is in the works (bug 272134), but has not landed yet. Update of setuptools-scm seem to have landed. Can this issue go further now? Are there some updates here? This issue keeps some applications broken for more than 6 months now. I think this PR can be closed now. Some changes (setuptools-scm 8.x, urwid 2.6.x) landed. I cannot reproduce this problem now. % python3.11 Python 3.11.9 (main, Apr 6 2024, 08:13:21) [Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a on freebsd14 Type "help", "copyright", "credits" or "license" for more information. >>> import urwid >>> (In reply to Po-Chuan Hsieh from comment #8) agreed, I'm also unable to reproduce with the current state of the packages. |