#1089526 rst2pdf: cannot import name '_fitz_old' from partially initialized module 'fitz_old'

Package:
src:rst2pdf
Source:
src:rst2pdf
Submitter:
Andreas Metzler
Date:
2025-01-15 09:39:02 UTC
Severity:
normal
Tags:
#1089526#5
Date:
2024-12-08 12:12:12 UTC
From:
To:
Hello,

rst2pdf FTBFS on current sid with

   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /tmp/JJJJJJJ/rst2pdf-0.102/.pybuild/cpython3_3.13_rst2pdf/build; python3.13 -m pytest -v -k "not test-referencing-an-aliased-font and not test_aafigure and not test_aafigure_extra and not test_blockquotes_in_table and not test_docutils_math and not test_issue_231 and not test_issue_349 and not test_issue_363 and not test_issue_73_unicode_box_drawing_characters_renders_without_errors and not test_issue_785 and not test_math and not test_raw_html and not test_slides and not sphinx-issue252 and not sphinx-issue257 "
ImportError while loading conftest '/tmp/JJJJJJJ/rst2pdf-0.102/.pybuild/cpython3_3.13_rst2pdf/build/tests/conftest.py'.
tests/conftest.py:22: in <module>
    import fitz_old as fitz
/usr/lib/python3/dist-packages/fitz_old/__init__.py:25: in <module>
    from fitz_old.fitz_old import *
/usr/lib/python3/dist-packages/fitz_old/fitz_old.py:14: in <module>
    from . import _fitz_old
E   ImportError: cannot import name '_fitz_old' from partially initialized module 'fitz_old' (most likely due to a circular import) (/usr/lib/python3/dist-packages/fitz_old/__init__.py)
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=4: cd /tmp/JJJJJJJ/rst2pdf-0.102/.pybuild/cpython3_3.13_rst2pdf/build; python3.13 -m pytest -v -k "not test-referencing-an-aliased-font and not test_aafigure and not test_aafigure_extra and not test_blockquotes_in_table and not test_docutils_math and not test_issue_231 and not test_issue_349 and not test_issue_363 and not test_issue_73_unicode_box_drawing_characters_renders_without_errors and not test_issue_785 and not test_math and not test_raw_html and not test_slides and not sphinx-issue252 and not sphinx-issue257 "

cu Andreas

#1089526#10
Date:
2024-12-28 10:37:41 UTC
From:
To:
I believe that we have fixed this in 0.103

Regards,

Rob

#1089526#15
Date:
2025-01-09 22:59:29 UTC
From:
To:
This issue will be gone when python3-fitz 1.25 (now experimental) is uploaded to unstable.
#1089526#20
Date:
2025-01-14 22:51:36 UTC
From:
To:
Hello,

Bug #1089526 in pdfposter reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/rst2pdf/-/commit/7add63b7056e317fca0ebd876ac67d7ed950a65e

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1089526

#1089526#27
Date:
2025-01-15 09:36:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rst2pdf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1089526@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <bage@debian.org> (supplier of updated rst2pdf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 15 Jan 2025 10:04:47 +0100
Source: rst2pdf
Architecture: source
Version: 0.102-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Bastian Germann <bage@debian.org>
Closes: 1088257 1089526
Changes:
 rst2pdf (0.102-3) unstable; urgency=medium
 .
   * Team upload
   * Revert "Deal with PyMuPDF installed as fitz_old"
   * Depend on sufficiently new PyMuPDF (Closes: #1088257, #1089526)
Checksums-Sha1:
 b0c87680af59bc02ae129ec08bd14b52f33bc630 2217 rst2pdf_0.102-3.dsc
 d5401f1a03c8290375474c2f59af7a6e057afe35 6564 rst2pdf_0.102-3.debian.tar.xz
 8d4406000f67435a8a65aac65676a5d903263db3 5195 rst2pdf_0.102-3_source.buildinfo
Checksums-Sha256:
 7a0a6d8d5a7138bff1bed82c82a4d5dc8ae7301de56e63940b791f2c651410f7 2217 rst2pdf_0.102-3.dsc
 65720c3913f3718a5cc10f09f753d90c38c41f5377a9f9f05e785748ba69cc27 6564 rst2pdf_0.102-3.debian.tar.xz
 763f35cb89d25238533c8e71d4d8cd3518993b306908b2e4da21daf307c76ba9 5195 rst2pdf_0.102-3_source.buildinfo
Files:
 d126fb6dbdc6fd94963b02ce55328274 2217 utils optional rst2pdf_0.102-3.dsc
 353fd53b336f3a9a9406c3f2acd9806d 6564 utils optional rst2pdf_0.102-3.debian.tar.xz
 2839ba0f3c0e5d5a011705e2116c0e1e 5195 utils optional rst2pdf_0.102-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmeHeooQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFPEQDADhjinkwfat+3nK2AG/Mc3+Qigx/ADFpNSj
v1aU55LYrdfc+pSJHPfiyU3Wm9UlrKupVVJOfIjJZByswhmwAny5zxdC+w6UBthe
hzdEunBDmfzVU1Pt+0r7EIMHQyGTjvpqsW9StZxIkOF4dnR3ZGbwGQA5/cg+jJMl
+R2z8PV8eqJ+467PgZWVQ35Q9wjO4LNSqmdzLP2oFt5F5pC7jlbzQAScatWI+MUi
zUGjTenw7xJTTtDiQO9qLsP/WaiMYwxbkhJL1aVWIn9taH5eMvOaDh/1hUcfelg4
SyVJSKSsItD5g9de16inaSFcy7X2GR10FeNNPxINJnx0HK2HaWPHqf6CI0upmG+i
cKxGi+uCjSCVnXUA7gRw0lBjIC2mtmmhhIm87yQf/Cda6+/bAI/bmqsXWRQgwwvv
Avj4nXDuAaFbt8R0cM4ZSExfV0GeBFfdY5d9en3swZp9Rgfu8L7sChGV9tWqAlJP
5Zmp/F1r4wrSnmVeGlPFrX+BgR8k0OU=
=dELa
-----END PGP SIGNATURE-----