Bug 1808722
Summary: | python-sushy fails to build with Python 3.9: TypeError: 'NoneType' object is not callable | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-sushy | Assignee: | Dmitry Tantsur <dtantsur> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | amoralej, cstratak, dtantsur, mhroncok, mplch, openstack-sig, rpittau, tir.karthi |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-26 12:31:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1785415 |
Description
Miro Hrončok
2020-02-29 17:27:27 UTC
This could be due to https://bugs.python.org/issue34318 I cannot even run stestr, to be honest: Traceback (most recent call last): File "/home/dtantsur/Projects/sushy/.tox/py39/bin/stestr", line 10, in <module> sys.exit(main()) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/stestr/cli.py", line 118, in main return cli.run(argv) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/cliff/app.py", line 281, in run result = self.run_subcommand(remainder) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/cliff/app.py", line 364, in run_subcommand subcommand = self.command_manager.find_command(argv) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/cliff/commandmanager.py", line 124, in find_command cmd_factory = cmd_ep.resolve() File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/stestr/commands/__init__.py", line 13, in <module> from stestr.commands.failing import failing as failing_command File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/stestr/commands/failing.py", line 18, in <module> import testtools File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/testtools/__init__.py", line 71, in <module> from testtools.testcase import ( File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/testtools/testcase.py", line 31, in <module> unittest = try_imports(['unittest2', 'unittest']) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/extras/__init__.py", line 92, in try_imports module = try_import(module_name, error_callback=error_callback) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/extras/__init__.py", line 50, in try_import __import__(module_name) File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/unittest2/__init__.py", line 40, in <module> from unittest2.collector import collector File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/unittest2/collector.py", line 3, in <module> from unittest2.loader import defaultTestLoader File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/unittest2/loader.py", line 13, in <module> from unittest2 import case, suite, util File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/unittest2/case.py", line 18, in <module> from unittest2 import result File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/unittest2/result.py", line 10, in <module> from unittest2.compatibility import wraps File "/home/dtantsur/Projects/sushy/.tox/py39/lib/python3.9/site-packages/unittest2/compatibility.py", line 143, in <module> class ChainMap(collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping' Has it been patched in Fedora already? Anyway, I think I've figured it: https://review.opendev.org/#/c/710802/ > AttributeError: module 'collections' has no attribute 'MutableMapping'
You should not see this with 3.9.0a4. The Fedora build of python39 3.9.0a4 is coming to updates-testing as we speak.
This comment is mass posted to all bugs blocking the Python 3.9 tracker, sorry if it is not 100 % relevant. When in doubt, please ask. The Python 3.9 rebuild is in progress in a Koji side tag. If you fix this bug, please don't rebuild the package in regular rawhide, but do it in the side tag with: $ fedpkg build --target=f33-python The rebuild is progressing slowly and it is possible this package won't have all the required build dependencies yet. If that's the case, please just leave the fix committed and pushed and we will eventually rebuild it for you. You are not asked to go and try rebuild all the missing dependencies yourself. If you know there is a bootstrap loop in the dependencies, let me know and we can untangle it together. If you want to test your fix or reproduce the failure, you can still use the Copr repo mentioned in the initial comment of this bug: https://copr.fedorainfracloud.org/coprs/g/python/python3.9/ Hi Miro, The fix has been included in an upstream release. Should we just update the version in rawhide or is something else required? > Should we just update the version in rawhide
Yes. Except don't build it in rawhide, only push it. Thanks.
Pushed 2.0.3 (a bit conservative to avoid a major bump right now). Thanks. |