CASCI-lab / CANA

CANAlization: Control & Redundancy in Boolean Networks
https://casci-lab.github.io/CANA/
MIT License
22 stars 15 forks source link

ModuleNotFoundError in CANA Tutorial #10

Closed VitaminBrad closed 4 years ago

VitaminBrad commented 4 years ago

Hello!

I encountered the following error when attempting to to import cana:

from cana import BooleanNode


ModuleNotFoundError Traceback (most recent call last)

in ----> 1 from cana import BooleanNode ~/anaconda3/envs/thesis/lib/python3.8/site-packages/cana/__init__.py in 18 19 # ---> 20 from boolean_network import BooleanNetwork 21 from boolean_node import BooleanNode 22 from utils import * ModuleNotFoundError: No module named 'boolean_network'

Do you know what might be causing this? I installed cana via pip install cana Thank you!

rionbr commented 4 years ago

Hey @VitaminBrad, thanks for using CANA and for submitting the issue. The import you are looking for is

from cana.boolean_node import BooleanNode                                                                                                                                                              

FYI, the current version of CANA on pip is not really python3 friendly. I recommend you install the latest development version straight from github. We need to release a new version but we haven't had the time to do so.

Let us know if you run into additional problems.

With kind regards,