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

Update GDAL & Runtime to Python3.10 #36

Merged
merged 3 commits into from
Dec 23, 2022
Merged

Update GDAL & Runtime to Python3.10 #36

merged 3 commits into from
Dec 23, 2022

Conversation

ingalls
Copy link
Member

@ingalls ingalls commented Dec 21, 2022

Context

I've spent hours trying to backport my local system to 3.7 after updating to Ubuntu 22.10 and I'm now convinced it's now easier to move this code forward to 3.10.....

cc/ @iandees

@ingalls
Copy link
Member Author

ingalls commented Dec 21, 2022

Traceback (most recent call last):
  File "/usr/local/src/batch-machine/test.py", line 16, in <module>
    from openaddr.tests import TestOA, TestState
  File "/usr/local/src/batch-machine/openaddr/tests/__init__.py", line 49, in <module>
    from .. import cache, conform, process_one
  File "/usr/local/src/batch-machine/openaddr/process_one.py", line 13, in <module>
    from . import util, cache, conform, preview, slippymap, CacheResult, ConformResult, __version__, SourceConfig
  File "/usr/local/src/batch-machine/openaddr/preview.py", line 13, in <module>
    import requests, uritemplate, mapbox_vector_tile
  File "/usr/lib/python3.10/site-packages/mapbox_vector_tile/__init__.py", line 1, in <module>
    from . import encoder
  File "/usr/lib/python3.10/site-packages/mapbox_vector_tile/encoder.py", line 3, in <module>
    from past.builtins import long
  File "/usr/lib/python3.10/site-packages/past/builtins/__init__.py", line 43, in <module>
    from past.builtins.noniterators import (filter, map, range, reduce, zip)
  File "/usr/lib/python3.10/site-packages/past/builtins/noniterators.py", line 24, in <module>
    from past.types import basestring
  File "/usr/lib/python3.10/site-packages/past/types/__init__.py", line 25, in <module>
    from .oldstr import oldstr
  File "/usr/lib/python3.10/site-packages/past/types/oldstr.py", line 5, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

@iandees
Copy link
Member

iandees commented Dec 22, 2022

I think this is why we got a contribution to mapbox-vector-tile to support Python 3.11 here: tilezen/mapbox-vector-tile#115

I think we just need to tag it and update our code here to use the new tagged version?

@ingalls ingalls merged commit 0a6e56b into master Dec 23, 2022
@ingalls ingalls deleted the python3.10 branch December 23, 2022 03:44
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

Successfully merging this pull request may close these issues.

2 participants