Bug 2366465 - python-gphoto2 fails to build with Python 3.14: ModuleNotFoundError: No module named 'distutils.command.upload'
Summary: python-gphoto2 fails to build with Python 3.14: ModuleNotFoundError: No modul...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-gphoto2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371930 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall 2372211
TreeView+ depends on / blocked
 
Reported: 2025-05-15 10:45 UTC by Karolina Surma
Modified: 2025-06-11 16:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-05-15 10:45:08 UTC
python-gphoto2 fails to build with Python 3.14.0b1.

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP'
/builddir/build/BUILD/python-gphoto2-2.0.0-build/gphoto2-2.0.0/setup.py:77: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\d"? A raw string is also an option.
  match = re.match(mod_src_dir + '-gp(\d+\.\d+\.\d+)', name)
/builddir/build/BUILD/python-gphoto2-2.0.0-build/gphoto2-2.0.0/setup.py:117: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\d"? A raw string is also an option.
  match = re.match('libgphoto2-(\d+\.\d+\.\d+)', name)
/builddir/build/BUILD/python-gphoto2-2.0.0-build/gphoto2-2.0.0/setup.py:169: SyntaxWarning: "\(" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\("? A raw string is also an option.
  for match in re.finditer('%feature\("docstring"\) (\w+) \"(.+?)\";',
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-gphoto2-2.0.0-build/gphoto2-2.0.0/setup.py", line 22, in <module>
    from distutils.command.upload import upload as _upload
ModuleNotFoundError: No module named 'distutils.command.upload'

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09024389-python-gphoto2/

For all our attempts to build python-gphoto2 with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-gphoto2/

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

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 Karolina Surma 2025-06-11 15:59:28 UTC
*** Bug 2371930 has been marked as a duplicate of this bug. ***


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