I’ve been trying to get fastai v1 to work on my Ubuntu 18.04 installation. I get the following error and traceback -
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-0ce5c57f63e0> in <module>
1 # Import necessary libraries
2 from fastai import *
----> 3 from fastai.vision import *
4 import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'fastai.vision'
To my knowledge, I used the exact installation instructions. There is a section on this error in the Troubleshooting document, but since I only have one environment, I did not find it to be useful.
Details of my installation are below -
=== Software ===
python : 3.6.8
fastai : 1.0.47.dev0
fastprogress : 0.1.20
torch : 1.0.1.post2
nvidia driver : 415.27
torch cuda : 9.0.176 / is available
torch cudnn : 7402 / is enabled
=== Hardware ===
nvidia gpus : 1
torch devices : 1
- gpu0 : 4042MB | GeForce MX150
=== Environment ===
platform : Linux-4.15.0-45-generic-x86_64-with-debian-buster-sid
distro : Ubuntu 18.04 bionic
conda env : fastai
python : /home/tejaswini/anaconda3/envs/fastai/bin/python
sys.path :
/home/tejaswini/anaconda3/envs/fastai/lib/python36.zip
/home/tejaswini/anaconda3/envs/fastai/lib/python3.6
/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/lib-dynload
/home/tejaswini/.local/lib/python3.6/site-packages
/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/site-packages
Tue Mar 5 16:56:03 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27 Driver Version: 415.27 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce MX150 Off | 00000000:01:00.0 Off | N/A |
| N/A 45C P8 N/A / N/A | 269MiB / 4042MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1334 G /usr/lib/xorg/Xorg 138MiB |
| 0 1510 G /usr/bin/gnome-shell 130MiB |
+-----------------------------------------------------------------------------+
Output of python --version
Python 3.6.8 :: Anaconda, Inc.
Output of nvidia-smi
Tue Mar 5 16:56:24 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27 Driver Version: 415.27 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce MX150 Off | 00000000:01:00.0 Off | N/A |
| N/A 43C P8 N/A / N/A | 269MiB / 4042MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1334 G /usr/lib/xorg/Xorg 138MiB |
| 0 1510 G /usr/bin/gnome-shell 130MiB |
+-----------------------------------------------------------------------------+
Output of which python
/home/tejaswini/anaconda3/envs/fastai/bin/python
Output of which jupyter
/home/tejaswini/anaconda3/envs/fastai/bin/jupyter
Output of print(sys.path)
['/home/tejaswini/anaconda3/envs/fastai/lib/python36.zip', '/home/tejaswini/anaconda3/envs/fastai/lib/python3.6', '/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/lib-dynload', '', '/home/tejaswini/.local/lib/python3.6/site-packages', '/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/site-packages', '/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/site-packages/IPython/extensions', '/home/tejaswini/.ipython']
Output of python -m fastai.utils.show_install
=== Software ===
python : 3.6.8
fastai : 1.0.46
fastprogress : 0.1.20
torch : 1.0.1.post2
nvidia driver : 415.27
torch cuda : 9.0.176 / is available
torch cudnn : 7402 / is enabled
=== Hardware ===
nvidia gpus : 1
torch devices : 1
- gpu0 : 4042MB | GeForce MX150
=== Environment ===
platform : Linux-4.15.0-45-generic-x86_64-with-debian-buster-sid
distro : Ubuntu 18.04 bionic
conda env : fastai
python : /home/tejaswini/anaconda3/envs/fastai/bin/python
sys.path :
/home/tejaswini/anaconda3/envs/fastai/lib/python36.zip
/home/tejaswini/anaconda3/envs/fastai/lib/python3.6
/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/lib-dynload
/home/tejaswini/.local/lib/python3.6/site-packages
/home/tejaswini/anaconda3/envs/fastai/lib/python3.6/site-packages
I’ve seen other posts on this thread reporting a similar problem, but I don’t see a solution that has helped me so far. Can someone please help me with this?