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' #164

Closed pierrepicaud closed 1 year ago

pierrepicaud commented 2 years ago

How to reproduce: In Google Colab, run:

!git clone https://github.com/pik-copan/pyunicorn.git &> /dev/null
!pip install --upgrade -e ./pyunicorn/

Then run the code from the example on the home page:

import numpy as np
import pyunicorn

x = np.sin(np.linspace(0, 10 * np.pi, 1000))
net = pyunicorn.timeseries.RecurrenceNetwork(x, recurrence_rate=0.05)
print(net.transitivity())

You'll get:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-2-50978667275a>](https://localhost:8080/#) in <module>()
      1 import numpy as np
----> 2 import pyunicorn
      3 # from pyunicorn.timeseries import RecurrenceNetwork
      4 
      5 x = np.sin(np.linspace(0, 10 * np.pi, 1000))

[/usr/local/lib/python3.7/dist-packages/pyunicorn/__init__.py](https://localhost:8080/#) in <module>()
     41 import sys
     42 
---> 43 from setup import __version__
     44 
     45 from .utils import mpi

ModuleNotFoundError: No module named 'setup'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
pierrepicaud commented 2 years ago

Output of !pip show pyunicorn:

WARNING: Package(s) not found: pyunicorn
cryptocoinserver commented 2 years ago

Can confirm. Same error.

cryptocoinserver commented 2 years ago

!pip install git+https://github.com/pik-copan/pyunicorn -U seems to work though.

lenas95 commented 2 years ago

Hi,

thanks @cryptocoinserver for commenting. Did it work out for you @pierrepicaud ?

Bests

zugnachpankow commented 1 year ago

Hey,

I am tentatively closing this issue, as it seems that a workaround was found and there where no further comments here. Please feel free to re-open this issue, if there is anything still not working.

Best