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

Compatibility with Python>=3.10 #4412

Open
frafra opened this issue Oct 15, 2023 · 1 comment
Open

Compatibility with Python>=3.10 #4412

frafra opened this issue Oct 15, 2023 · 1 comment

Comments

@frafra
Copy link

frafra commented Oct 15, 2023

Cannot build using Python 3.10/3.11:

Traceback (most recent call last):
  File "/go/mapnik-3.1.0/scons/scons.py", line 192, in <module>
    import SCons.Script
  File "/go/mapnik-3.1.0/scons/scons-local-3.0.1/SCons/Script/__init__.py", line 80, in <module>
    import SCons.Action
  File "/go/mapnik-3.1.0/scons/scons-local-3.0.1/SCons/Action.py", line 113, in <module>
    import SCons.Errors
  File "/go/mapnik-3.1.0/scons/scons-local-3.0.1/SCons/Errors.py", line 34, in <module>
    import SCons.Util
  File "/go/mapnik-3.1.0/scons/scons-local-3.0.1/SCons/Util.py", line 49, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.11/collections/__init__.py)
make: *** [Makefile:32: src/json/libmapnik-json.a] Error 1

See: https://stackoverflow.com/a/72032097/1312346.

@hummeltech
Copy link
Contributor

hummeltech commented Nov 1, 2023

A fix for this has been merged, however, it has not yet been included in a new release.

Here is the commit, in case that helps:
7da9009

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

2 participants