noise icon indicating copy to clipboard operation
noise copied to clipboard

ImportError: Error relocating .../_perlin.cpython-37m-x86_64-linux-gnu.so: grad2: symbol not found

Open lc-thomas opened this issue 5 years ago • 1 comments

Hello, I'm trying to use the noise library from inside docker alpine. Installing noise with pip is okay, but when I try to import it I get this error message :


Traceback (most recent call last):
  File "map_generator.py", line 1, in <module>
    import noise
  File "/usr/lib/python3.7/site-packages/noise/__init__.py", line 12, in <module>
    from . import _perlin, _simplex
ImportError: Error relocating /usr/lib/python3.7/site-packages/noise/_perlin.cpython-37m-x86_64-linux-gnu.so: grad2: symbol not found

Any idea on how to fix this ?

lc-thomas avatar Jul 31 '19 13:07 lc-thomas

It got fixed when I used distutils.core instead of setuptools in the setup.py. Not sure if this is the solution.

before

    from setuptools import setup, Extension
except ImportError:
    from distutils.core import setup, Extension

after from distutils.core import setup, Extension

adwaithhs avatar Jan 12 '20 18:01 adwaithhs