Bug 2021900 - python-pycdlib fails to build with Python 3.11: AttributeError: module \'inspect\' has no attribute \'getargspec\'
Summary: python-pycdlib fails to build with Python 3.11: AttributeError: module \'ins...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pycdlib
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Chris Lalancette
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2099061 (view as bug list)
Depends On:
Blocks: PYTHON3.11 F37FTBFS F37FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2021-11-10 12:10 UTC by Tomáš Hrnčiar
Modified: 2022-06-21 08:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-21 08:19:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-11-10 12:10:07 UTC
python-pycdlib fails to build with Python 3.11.0a2.

E           test_pycdlib_genisoimage.ProcessException: Process failed: b'pycdlib-genisoimage 1.0.0\n'
E           b'Traceback (most recent call last):\n  File "/builddir/build/BUILD/pycdlib-1.12.0/tools/pycdlib-genisoimage", line 949, in <module>\n    main()\n    ^^^^^^\n  File "/builddir/build/BUILD/pycdlib-1.12.0/tools/pycdlib-genisoimage", line 940, in main\n    iso.write_fp(fp, progress_cb=progress_cb, progress_opaque=ProgressData(logfp))\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/builddir/build/BUILD/pycdlib-1.12.0/pycdlib/pycdlib.py", line 4377, in write_fp\n    self._write_fp(outfp, blocksize, progress_cb, progress_opaque)\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/builddir/build/BUILD/pycdlib-1.12.0/pycdlib/pycdlib.py", line 2866, in _write_fp\n    progress.call(0)\n    ^^^^^^^^^^^^^^^^\n  File "/builddir/build/BUILD/pycdlib-1.12.0/pycdlib/pycdlib.py", line 2704, in call\n    if len(inspect.getargspec(self.progress_cb).args) == 2:  # pylint: disable=W1505\n           ^^^^^^^^^^^^^^^^^^\nAttributeError: module \'inspect\' has no attribute \'getargspec\'. Did you mean: \'getargs\'?\n'

tests/tools/test_pycdlib_genisoimage.py:45: ProcessException
=========================== short test summary info ============================
FAILED tests/integration/test_parse.py::test_parse_write_with_progress - Attr...
FAILED tests/integration/test_parse.py::test_parse_write_with_progress_three_arg
FAILED tests/tools/test_pycdlib_genisoimage.py::test_pycdlib_genisoimage_nofiles
================== 3 failed, 1703 passed, 16 skipped in 9.70s ==================

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/02940419-python-pycdlib/

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

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:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 2 Miro Hrončok 2022-06-20 10:19:17 UTC
*** Bug 2099061 has been marked as a duplicate of this bug. ***

Comment 3 Miro Hrončok 2022-06-21 08:19:12 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 37.

Thanks for taking care of it!


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