mocnik-science / osm-python-tools

A library to access OpenStreetMap related services
GNU General Public License v3.0
440 stars 48 forks source link

It does not work on m1 macbook #69

Open pomponchik opened 2 years ago

pomponchik commented 2 years ago

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)))