Open junyuyang7 opened 1 year ago
ImportError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_42300\3432099872.py in ----> 1 from supervised.automl import AutoML
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised__init__.py in 1 version = "0.11.3" 2 ----> 3 from supervised.automl import AutoML
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised\automl.py in 1 import logging ----> 2 from supervised.base_automl import BaseAutoML 3 from supervised.utils.config import LOG_LEVEL 4 5 # libraries for type hints
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised\base_automl.py in 19 from sklearn.metrics import r2_score, accuracy_score 20 ---> 21 from supervised.algorithms.registry import AlgorithmsRegistry 22 from supervised.algorithms.registry import BINARY_CLASSIFICATION 23 from supervised.algorithms.registry import MULTICLASS_CLASSIFICATION
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised\algorithms\registry.py in ... ---> 30 from .backend import (render, pipe, version, view, 31 ENGINES, FORMATS, RENDERERS, FORMATTERS, 32 ExecutableNotFound, RequiredArgumentError)
ImportError: cannot import name 'ENGINES' from 'graphviz.backend' (d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\graphviz\backend__init__.py)
I use "pip install --upgrade graphviz" upgrade the graphviz, and now the complete traceback is below:
AttributeError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_42300\3432099872.py in ----> 1 from supervised.automl import AutoML
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised__init__.py in 1 version = "0.11.3" 2 ----> 3 from supervised.automl import AutoML
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised\automl.py in 1 import logging ----> 2 from supervised.base_automl import BaseAutoML 3 from supervised.utils.config import LOG_LEVEL 4 5 # libraries for type hints
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised\base_automl.py in 19 from sklearn.metrics import r2_score, accuracy_score 20 ---> 21 from supervised.algorithms.registry import AlgorithmsRegistry 22 from supervised.algorithms.registry import BINARY_CLASSIFICATION 23 from supervised.algorithms.registry import MULTICLASS_CLASSIFICATION
d:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\supervised\algorithms\registry.py in ... ---> 82 class Graph(dot.GraphSyntax, BaseGraph): 83 """Graph source code in the DOT language. 84
AttributeError: module 'graphviz.dot' has no attribute 'GraphSyntax'
Hi @junyuyang7 thank you for reporting the issue. Do you have the same problem with newest version of mljar-supervised
(0.11.5
)? From logs I see that you are using 0.11.3
.
我也是这个问题,解决了吗?
from supervised.automl import AutoML This code failed to run with the wrong -- "ImportError: cannot import name 'ENGINES' from 'graphviz.backend'" How can I do to fix it?