pik-copan / pyunicorn

Unified Complex Network and Recurrence Analysis Toolbox
http://pik-potsdam.de/~donges/pyunicorn/
Other
195 stars 86 forks source link

ModuleNotFoundError: No module named 'setup' #137

Closed kamblesamadhan closed 4 years ago

kamblesamadhan commented 4 years ago

I am using ubuntu 18.04 LTS. I installed pyunicorn by only one line: "sudo pip3 install pyunicorn". I tried simple code mentioned in the introduction of the documentation but I am getting the following error:

from pyunicorn.timeseries import RecurrenceNetwork File "/usr/local/lib/python3.6/dist-packages/pyunicorn/init.py", line 43, in from setup import version ModuleNotFoundError: No module named 'setup'

jkroenke commented 4 years ago

Duplicate of issue #129. Deleting line 43 from the file should solve the problem. The version number of pyunicorn will not be available with pyunicorn.__version__ then.

kamblesamadhan commented 4 years ago

Thanks jkroenke. But pyunicorn in my ubuntu 18.04 is not located at site-packages folder but at dist-packages folder and unfortunately I am not able to find it.

jkroenke commented 4 years ago

Your pyunicorn/init.py should be located at "/usr/local/lib/python3.6/dist-packages/pyunicorn/init.py" as it says in your error message above.

kamblesamadhan commented 4 years ago

Your pyunicorn/init.py should be located at "/usr/local/lib/python3.6/dist-packages/pyunicorn/init.py" as it says in your error message above.

Thanks again!

qinghualiurong commented 2 years ago

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 import pyunicorn as pyu ~/anaconda3/lib/python3.7/site-packages/pyunicorn/__init__.py in 41 import sys 42 ---> 43 from setup import __version__ 44 45 from .utils import mpi ModuleNotFoundError: No module named 'setup'