mljar / studio-old

MLJAR Studio Desktop Application
https://mljar.com
4 stars 1 forks source link

ImportError: cannot import name 'run' from 'graphviz.backend' #75

Closed madpower2000 closed 2 years ago

madpower2000 commented 2 years ago

ImportError cannot import name 'run' from 'graphviz.backend' (C:\Users\Max\AppData\Roaming\MLJAR-Studio\miniconda\lib\site-packages\graphviz\backend__init__.py)

image

pplonski commented 2 years ago

Sorry, it's similar as this issue https://github.com/RasaHQ/rasa/issues/2357 - there is some problem with graphviz installer.

madpower2000 commented 2 years ago

C:\Users...\AppData\Roaming\MLJAR-Studio\miniconda\Lib\site-packages\dtreeviz\trees.py Replace run for execute:

from graphviz.backend import execute, view
...
execute(cmd, capture_output=True, check=True, quiet=False)
pplonski commented 2 years ago

Thank you for fixes. I need to check required versions more carefully. Please leave the issue open. I would like to fix them in the next release. Thought I still not sure how the next version should look like.

Have you built any successful analysis with MLJAR Studio?

pplonski commented 2 years ago

This should be fixed after dtreeviz package update to 0.13.2 - I've updated the conda-forge channel and waiting for changes to populate.

Link to dtreeviz on anaconda https://anaconda.org/conda-forge/dtreeviz/files