Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older Cython versions break when testing with Python 3.13 #46

Open
geographika opened this issue Oct 27, 2024 · 0 comments
Open

Older Cython versions break when testing with Python 3.13 #46

geographika opened this issue Oct 27, 2024 · 0 comments

Comments

@geographika
Copy link
Contributor

lark_cython is tied to specific versions of Cython (<0.29.35):

install_requires=["lark>=1.1.7", "cython>=0.29.1,<0.29.35", "Cython>=0.29.1,<0.29.35"],

When testing with Python 3.13 the cgi module has been removed, and is removed from Cython code too: cython/cython#5449

In older versions of Cython (prior to the patch in 0.29.35) this now throws an error. See for example the log at https://github.com/geographika/mappyfile/actions/runs/11535196112/job/32110014487

Is it possible to bump the allowed versions of Cython to 0.29.36?

Collecting lark-cython>=0.0.14 (from mappyfile==1.0.2)
  Downloading lark-cython-0.0.15.tar.gz (250 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  ...
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [52 lines of output]
      Traceback (most recent call last):
        File "/opt/hostedtoolcache/Python/3.13.0/x64/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/...
        File "/tmp/pip-build-env-dcu_z99v/overlay/lib/python3.13/site-packages/Cython/Tempita/__init__.py", line 4, in <module>
          from ._tempita import *
        File "/tmp/pip-build-env-dcu_z99v/overlay/lib/python3.13/site-packages/Cython/Tempita/_tempita.py", line 36, in <module>
          import cgi
      ModuleNotFoundError: No module named 'cgi'
      [end of output]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant