-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Problem of Import Plot_structure #106
Comments
Hello, Thanks for your report. This is fixed in 0.10.0, see #111 ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: