Bug 2021886 - python-pluginlib fails to build with Python 3.11: AttributeError: module 'inspect' has no attribute 'getargspec'
Summary: python-pluginlib fails to build with Python 3.11: AttributeError: module 'in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pluginlib
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Avram Lubkin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-11-10 11:57 UTC by Tomáš Hrnčiar
Modified: 2022-05-07 04:13 UTC (History)
3 users (show)

Fixed In Version: python-pluginlib-0.9.0-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-07 04:13:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-11-10 11:57:37 UTC
python-pluginlib fails to build with Python 3.11.0a2.

pluginlib (unittest.loader._FailedTest) ... ERROR
tests.test_exceptions (unittest.loader._FailedTest) ... ERROR
tests.test_loader (unittest.loader._FailedTest) ... ERROR
tests.test_objects (unittest.loader._FailedTest) ... ERROR
tests.test_parent (unittest.loader._FailedTest) ... ERROR
tests.test_util (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: pluginlib (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: pluginlib
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 448, in _find_test_path
    package = self._get_module_from_name(name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 355, in _get_module_from_name
    __import__(name)
    ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/__init__.py", line 21, in <module>
    from pluginlib._parent import Parent, Plugin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/_parent.py", line 33, in <module>
    'getfullargspec', getattr(inspect, 'getargspec'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'


======================================================================
ERROR: tests.test_exceptions (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_exceptions
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 414, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 355, in _get_module_from_name
    __import__(name)
    ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/tests/test_exceptions.py", line 13, in <module>
    from pluginlib import exceptions
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/__init__.py", line 21, in <module>
    from pluginlib._parent import Parent, Plugin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/_parent.py", line 33, in <module>
    'getfullargspec', getattr(inspect, 'getargspec'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'


======================================================================
ERROR: tests.test_loader (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_loader
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 414, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 355, in _get_module_from_name
    __import__(name)
    ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/tests/test_loader.py", line 17, in <module>
    import pluginlib._loader as loader
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/__init__.py", line 21, in <module>
    from pluginlib._parent import Parent, Plugin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/_parent.py", line 33, in <module>
    'getfullargspec', getattr(inspect, 'getargspec'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'


======================================================================
ERROR: tests.test_objects (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_objects
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 414, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 355, in _get_module_from_name
    __import__(name)
    ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/tests/test_objects.py", line 11, in <module>
    import pluginlib._objects as objects
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/__init__.py", line 21, in <module>
    from pluginlib._parent import Parent, Plugin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/_parent.py", line 33, in <module>
    'getfullargspec', getattr(inspect, 'getargspec'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'


======================================================================
ERROR: tests.test_parent (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_parent
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 414, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 355, in _get_module_from_name
    __import__(name)
    ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/tests/test_parent.py", line 15, in <module>
    from pluginlib import (abstractmethod, abstractproperty, abstractstaticmethod,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/__init__.py", line 21, in <module>
    from pluginlib._parent import Parent, Plugin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/_parent.py", line 33, in <module>
    'getfullargspec', getattr(inspect, 'getargspec'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'


======================================================================
ERROR: tests.test_util (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_util
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/loader.py", line 414, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/unittest/loader.py", line 355, in _get_module_from_name
    __import__(name)
    ^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/tests/test_util.py", line 13, in <module>
    import pluginlib._util as util
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/__init__.py", line 21, in <module>
    from pluginlib._parent import Parent, Plugin
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/pluginlib-0.8.2/pluginlib/_parent.py", line 33, in <module>
    'getfullargspec', getattr(inspect, 'getargspec'))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'


----------------------------------------------------------------------
Ran 6 tests in 0.001s

FAILED (errors=6)

Removed from the inspect module:
    the getargspec function, deprecated since Python 3.0; use
    inspect.signature() or inspect.getfullargspec() instead.

https://bugs.python.org/issue45320
https://docs.python.org/3.11/whatsnew/3.11.html


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02940355-python-pluginlib/

For all our attempts to build python-pluginlib with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-pluginlib/

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.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 2022-02-08 21:30:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Fedora Update System 2022-03-30 17:29:17 UTC
FEDORA-2022-d81abbd9ea has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-d81abbd9ea

Comment 3 Avram Lubkin 2022-03-30 17:30:57 UTC
This is fixed in Pluginlib 0.9.0

Comment 4 Fedora Update System 2022-03-31 18:25:06 UTC
FEDORA-2022-d81abbd9ea has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-d81abbd9ea`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-d81abbd9ea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-05-07 04:13:34 UTC
FEDORA-2022-d81abbd9ea has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


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