You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I hit the problem when I import plot_structure from causalnex.plots:
from causalnex.plots import plot_structure
The error information is as follows:
C:\Users\kat\Anaconda3\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.4\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 53083 --file C:/kat/codes/StructureLearning/causalnex_test.py
Connected to pydev debugger (build 203.7717.65)
Traceback (most recent call last):
File "", line 991, in find_and_load
File "", line 975, in find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\plots_init.py", line 44, in
from .plots import (
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\plots\plots.py", line 36, in
from causalnex.structure.structuremodel import StructureModel
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure_init.py", line 42, in
from .pytorch.sklearn import DAGClassifier, DAGRegressor
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch_init.py", line 37, in
from .sklearn import DAGClassifier, DAGRegressor
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch\sklearn_init.py", line 34, in
from .clf import DAGClassifier
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch\sklearn\clf.py", line 43, in
from causalnex.structure.pytorch.sklearn.base import DAGBase
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch\sklearn_base.py", line 44, in
from causalnex.plots import (
ImportError: cannot import name 'EDGE_STYLE' from partially initialized module 'causalnex.plots' (most likely due to a circular import) (C:\Users\kat\Anaconda3\lib\site-packages\causalnex\plots_init.py)
I want to do the visualization but I can't manage to import plot_structure, I don't know how to figure it out.
The text was updated successfully, but these errors were encountered:
pullbot
pushed a commit
to vishalbelsare/causalnex
that referenced
this issue
Apr 4, 2021
Description
Hi, I hit the problem when I import plot_structure from causalnex.plots:
from causalnex.plots import plot_structure
The error information is as follows:
C:\Users\kat\Anaconda3\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.4\plugins\python-ce\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 53083 --file C:/kat/codes/StructureLearning/causalnex_test.py
Connected to pydev debugger (build 203.7717.65)
Traceback (most recent call last):
File "", line 991, in find_and_load
File "", line 975, in find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\plots_init.py", line 44, in
from .plots import (
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\plots\plots.py", line 36, in
from causalnex.structure.structuremodel import StructureModel
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure_init.py", line 42, in
from .pytorch.sklearn import DAGClassifier, DAGRegressor
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch_init.py", line 37, in
from .sklearn import DAGClassifier, DAGRegressor
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch\sklearn_init.py", line 34, in
from .clf import DAGClassifier
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch\sklearn\clf.py", line 43, in
from causalnex.structure.pytorch.sklearn.base import DAGBase
File "C:\Users\kat\Anaconda3\lib\site-packages\causalnex\structure\pytorch\sklearn_base.py", line 44, in
from causalnex.plots import (
ImportError: cannot import name 'EDGE_STYLE' from partially initialized module 'causalnex.plots' (most likely due to a circular import) (C:\Users\kat\Anaconda3\lib\site-packages\causalnex\plots_init.py)
I want to do the visualization but I can't manage to import plot_structure, I don't know how to figure it out.
The text was updated successfully, but these errors were encountered: