Bug 2256757 - python-mplcairo fails to build in Rawhide: ImportError: cannot import name '_mplcairo' from partially initialized module 'mplcairo'
Summary: python-mplcairo fails to build in Rawhide: ImportError: cannot import name '_...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-mplcairo
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F40FTBFS PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-01-04 11:28 UTC by Karolina Surma
Modified: 2024-01-30 04:12 UTC (History)
4 users (show)

Fixed In Version: python-mplcairo-0.5-10.fc40
Clone Of:
Environment:
Last Closed: 2024-01-30 04:12:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pypa wheel issues 566 0 None open Regression: wheel 0.41 creates an extension module with empty name 2024-01-05 09:39:07 UTC

Description Karolina Surma 2024-01-04 11:28:21 UTC
python-mplcairo fails to build with Python 3.13.0a2.

+ export PYTHONPATH=/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages PYTHONDONTWRITEBYTECODE=1
+ PYTHONPATH=/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/python3 -c 'import mplcairo.base'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import mplcairo.base
  File "/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages/mplcairo/__init__.py", line 27, in <module>
    from . import _mplcairo
ImportError: cannot import name '_mplcairo' from partially initialized module 'mplcairo' (most likely due to a circular import) (/builddir/build/BUILDROOT/python-mplcairo-0.5-7.fc40.x86_64/usr/lib64/python3.13/site-packages/mplcairo/__init__.py)

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06784089-python-mplcairo/

For all our attempts to build python-mplcairo with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-mplcairo/

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

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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 Elliott Sales de Andrade 2024-01-05 09:20:17 UTC
This doesn't have anything to do with Python 3.13, but with the latest wheel, and there is a fix upstream for it. However, I can't backport that yet, as texlive is currently broken.


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