Bug 2246126 - python-py-gql fails to build with Python 3.13: ModuleNotFoundError: No module named 'typing.re'; 'typing' is not a package
Summary: python-py-gql fails to build with Python 3.13: ModuleNotFoundError: No module...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-py-gql
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-25 14:03 UTC by Karolina Surma
Modified: 2024-02-15 23:01 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-25 14:03:44 UTC
python-py-gql fails to build with Python 3.13.0a1.

+ pytest-3.13 -v tests
ImportError while loading conftest '/builddir/build/BUILD/py_gql-0.6.1/tests/conftest.py'.
tests/conftest.py:10: in <module>
    from py_gql import build_schema
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/__init__.py:15: in <module>
    from . import lang, schema, tracers, utilities  # noqa: F401
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/tracers.py:10: in <module>
    from .execution import GraphQLExtension, Instrumentation, ResolveInfo
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/execution/__init__.py:3: in <module>
    from .blocking_executor import BlockingExecutor
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/execution/blocking_executor.py:9: in <module>
    from .executor import Executor
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/execution/executor.py:39: in <module>
    from .instrumentation import Instrumentation
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/execution/instrumentation.py:4: in <module>
    from .wrappers import ResolveInfo
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/execution/wrappers.py:24: in <module>
    from ..utilities import (
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/utilities/__init__.py:16: in <module>
    from .collect_fields import (
../../BUILDROOT/python-py-gql-0.6.1-12.fc40.x86_64/usr/lib/python3.13/site-packages/py_gql/utilities/collect_fields.py:16: in <module>
    from typing.re import Pattern
E   ModuleNotFoundError: No module named 'typing.re'; 'typing' is not a package

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

Namespaces typing.io and typing.re, deprecated in Python 3.8, are now removed. The items in those namespaces can be imported directly from typing. (Contributed by Sebastian Rittau in gh-92871.)

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

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

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 Aoife Moloney 2024-02-15 23:01:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.


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