Hi! I started to use the updated fastai library (former v2) and trying to run the course-v4/nbs/01_intro.ipynb notebook. Something seems to be wrong with fastbook and graphviz.
On “import fastbook” the error about missing graphviz is fired. The suggestion to install fastbook does not help, because is does not lead to installing graphviz. So it looks like there is not such a dependency. (BTW when trying now, a “PackagesNotFoundError” rises when trying a “conda install fastbook”). I considered the option to install graphviz directly, but that leads to a big “Package Plan” including quite a few downgrades. I don’t feel comfortable with that.
I tried different installation methods (pip, conda and used a ready to use docker container) and in every case I ran into the same situation.
I got similar problem also, I was able to install python graphviz package but it doesn’t work until i install graphviz using “sudo apt install graphviz” on Ubuntu.
When I run conda install fastbook the result is a PackagesNotFoundError. When I run a conda install -c fastai fastbook, it was able to find and install the module, but still same error.
Finally I fixed it by removing and recreating the conda environment and installed fastai again with conda install -c fastai -c pytorch fastai. After that the fastbook module was not installed and I installed it with conda install -c fastai fastbook
After that I installed jupyter notebook of course. And then the environment was operational again.
On another system (Fedora based) I installed fastai using pip. Initially I had the same problem, but removing all existing python modules and doing a pip install --user fastai followed by pip install --user graphviz gave me back a workable environment.
Hi there. I’m having the same issue trying to run the first notebooks from my Ubuntu machine at home. But with me, it seems a little bit more awkward. When I try to instal through conda, I receive the message bellow:
Package python conflicts for:
defaults|defaults/linux-64::python==3.7.9=h7579374_0
defaults/linux-64::python==3.7.9=h7579374_0The following specifications were found to be incompatible with your system:
I followed the step suggested by yelwinsoe, it has been installed, but makes no difference at all. Then, I followed the steps suggested by heraldb and found the same problem: when I run from the notebook the pip install comand and try to import fastbook, I get the message that graphviz is missing. Tried also conda install python-graphs, as long as conda install -c conda-forge python-graphviz and conda install -c anaconda graphviz. To all of these commands I get the same cuda error.
The above solution by @heraldb didn’t work for me as it tried to downgrade to fastai 1.0 for me.
I ended up making it work by creating a new conda environment using fastbook’s environment.yml and then setting jupyter to use that environment. Steps I took:
Then in Google Cloud I clicked on the + in the top right, opened a new Launcher, and selected the “fastbook” Notebook. Everything worked once I was running notebooks through this environment.
Make sure the top right “Kernel” selection says fastbook like in the screenshot:
Had a similar issue. The cuda version you externally installed is not required/doesn’t matter. check the version of cudatoolkit (conda list cudatoolkit). This will get you 10.2 I think.
Looks like you have a cuda mismatch with pytorch and/or python.
Remove pytorchcuda and torchvision and reinstall it together as shown below: