Bug 1990773 - python-txtorcon fails to build with Python 3.10: AttributeError(name) builtins.AttributeError: __class__ test.test_torinfo.InfoTests.test_attribute_access
Summary: python-txtorcon fails to build with Python 3.10: AttributeError(name) builtin...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-txtorcon
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-08-06 08:04 UTC by Tomáš Hrnčiar
Modified: 2021-08-15 21:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-15 21:07:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-08-06 08:04:56 UTC
python-txtorcon fails to build with Python 3.10.0rc1.

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/builddir/build/BUILD/txtorcon-20.0.0/test/test_torinfo.py", line 169, in test_attribute_access
    yield self.protocol.post_bootstrap
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 858, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
  File "/builddir/build/BUILD/txtorcon-20.0.0/txtorcon/torinfo.py", line 285, in _setup_complete
    pb.callback(self)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 661, in callback
    assert not isinstance(result, Deferred)
  File "/usr/lib64/python3.10/abc.py", line 119, in __instancecheck__
    return _abc_instancecheck(cls, instance)
  File "/builddir/build/BUILD/txtorcon-20.0.0/txtorcon/torinfo.py", line 213, in __getattribute__
    raise AttributeError(name)
builtins.AttributeError: __class__
test.test_torinfo.InfoTests.test_attribute_access
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/builddir/build/BUILD/txtorcon-20.0.0/txtorcon/torinfo.py", line 285, in _setup_complete
    pb.callback(self)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 661, in callback
    assert not isinstance(result, Deferred)
  File "/usr/lib64/python3.10/abc.py", line 119, in __instancecheck__
    return _abc_instancecheck(cls, instance)
  File "/builddir/build/BUILD/txtorcon-20.0.0/txtorcon/torinfo.py", line 213, in __getattribute__
    raise AttributeError(name)
builtins.AttributeError: __class__
test.test_torinfo.InfoTests.test_other_bootstrap
===============================================================================
[ERROR]
Traceback (most recent call last):
Failure: twisted.internet.defer.TimeoutError: <test.test_torinfo.ProtocolIntegrationTests testMethod=test_with_arg> (test_with_arg) still running at 120.0 secs
test.test_torinfo.ProtocolIntegrationTests.test_with_arg
-------------------------------------------------------------------------------

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02361525-python-txtorcon/

For all our attempts to build python-txtorcon with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-txtorcon/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 is already included in Fedora 35. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Ben Cotton 2021-08-10 13:35:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 2 Fabio Valentini 2021-08-15 21:07:55 UTC
This issue has been fixed by updating to version 21.0.0 in rawhide and F35:
https://bodhi.fedoraproject.org/updates/FEDORA-2021-d5a245aa4f
https://bodhi.fedoraproject.org/updates/FEDORA-2021-536fa9a6d7


Note You need to log in before you can comment on or make changes to this bug.