joe-jordan / pyvoro

2D and 3D Voronoi tessellations: a python entry point for the voro++ library
Other
100 stars 26 forks source link

SystemError: Parent module '' not loaded, cannot perform relative import #19

Open SamsadSajid opened 5 years ago

SamsadSajid commented 5 years ago

Got the following error while installing the library

Traceback (most recent call last):
  File "weighted_voro.py", line 1, in <module>
    import pyvoro
  File "/home/shamsad/Documents/garbage/thesis_simulation/lib/python3.5/site-packages/pyvoro/__init__.py", line 1, in <module>
    import voroplusplus
  File "voroplusplus.pyx", line 36, in init pyvoro.voroplusplus (pyvoro/voroplusplus.cpp:2696)
SystemError: Parent module '' not loaded, cannot perform relative import

Don't know what's wrong!

System config:

64bit architecture
Ubuntu 16.04
liangtianumich commented 5 years ago

Did you use python 3 instead of python 2: https://github.com/Kitt-AI/snowboy/issues/316 use python 2 should work

SamsadSajid commented 5 years ago

will take a look.. thanks