google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
6.98k stars 440 forks source link

jsonnet unable to install on Mac M1 OS13.0.1 #1036

Closed aliabbasjaffri closed 1 year ago

aliabbasjaffri commented 1 year ago

I recently updated my OSX version to 13.0.1, and since then, i've been seeing this error on installation of jsonnet==0.19.1

  File "somefile.py", line 16, in 
    import _jsonnet as jsn
ImportError: dlopen(venv/lib/python3.9/site-packages/_jsonnet.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_jsonnet_destroy'

Python version: 3.9.6

sparkprime commented 1 year ago

How did you install it

sparkprime commented 1 year ago

That looks like what happens if you compile a library in C++ without extern "C" and try to use it from C... Except that we do have extern "C" in the libjsonnet.cpp

aliabbasjaffri commented 1 year ago

A bit hasty from my side. 😬 Deleting virtual env and reinstalling it fixed it!