caseman / noise

Perlin noise library for Python
MIT License
423 stars 70 forks source link

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

Open lc-thomas opened 5 years ago

lc-thomas commented 5 years ago

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 ?

adwaithhs commented 4 years ago

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