osm-python-tools
osm-python-tools copied to clipboard
It does not work on m1 macbook
When i import the Api by this command:
from OSMPythonTools.api import Api
I have this exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/evblinov/Desktop/Projects/candidates_gateway/venv/lib/python3.10/site-packages/OSMPythonTools/api.py", line 4, in <module>
from OSMPythonTools.internal.cacheObject import CacheObject
File "/Users/evblinov/Desktop/Projects/candidates_gateway/venv/lib/python3.10/site-packages/OSMPythonTools/internal/cacheObject.py", line 5, in <module>
import ujson
ImportError: dlopen(/Users/evblinov/Desktop/Projects/candidates_gateway/venv/lib/python3.10/site-packages/ujson.cpython-310-darwin.so, 0x0002): tried: '/Users/evblinov/Desktop/Projects/candidates_gateway/venv/lib/python3.10/site-packages/ujson.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))