Getting the latest fastai version (1.0.30 as of writing)

Hey all,

I am on 1.06 and am trying to update to the latest version (1.0.30) however I can figure out how to update to it.

One of the reasons I wanted to update is that I keep getting an error when trying to use the new data block:

data = (ImageItemList.from_csv(path, 'train_labels.csv', folder='cars_train') #, suffix='.jpg')

ERROR: cannot import name 'ImageItemList'

Also, just trying to import the ImageItemList class also throws an error:

import fastai.vision.data import ImageItemList

I tried the install instructions below but no joy, it still leaves me stuck at 1.06 I’m using a P4000 Paperspace machine. Below is my system output, and below that is the output from conda list. Any help in getting the latest fastai goodness would be great!

conda install -c pytorch pytorch-nightly cuda92
conda install -c fastai torchvision-nightly
conda install -c fastai fastai

My system output:

python version  : 3.6.6
fastai version  : 1.0.6
torch version   : 1.0.0.dev20181129
nvidia driver   : 410.48
torch cuda ver  : 9.2.148
torch cuda is   : available
torch cudnn ver : 7401
torch cudnn is  : enabled

=== Hardware ===
nvidia gpus     : 1
torch available : 1
  - gpu0        : 8119MB | Quadro P4000

=== Environment ===
platform        : Linux-4.4.0-104-generic-x86_64-with-debian-stretch-sid
distro          : #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017
conda env       : fastai
python          : /home/paperspace/anaconda3/envs/fastai/bin/python
sys.path        :
/home/paperspace/anaconda3/envs/fastai/lib/python36.zip
/home/paperspace/anaconda3/envs/fastai/lib/python3.6
/home/paperspace/anaconda3/envs/fastai/lib/python3.6/lib-dynload
/home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages
/home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages/Mako-1.0.7-py3.6.egg
/home/paperspace/anaconda3/envs/fastai/lib/python3.6/site-packages/IPython/extensions

Fri Nov 30 05:49:37 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.48                 Driver Version: 410.48                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro P4000        Off  | 00000000:00:05.0 Off |                  N/A |
| 48%   37C    P0    27W / 105W |     10MiB /  8119MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

My packages output from conda list:

_tflow_190_select         0.0.3                       mkl
_tflow_select             2.3.0                       mkl
absl-py                   0.6.1                    py36_0
appdirs                   1.4.3            py36h28b3542_0
asn1crypto                0.24.0                   py36_0
astor                     0.7.1                    py36_0
atomicwrites              1.2.1                    py36_0
attrs                     18.2.0           py36h28b3542_0
automat                   0.7.0                    py36_0
awscli                    1.14.19                   <pip>
backcall                  0.1.0                    py36_0
backports                 1.0                      py36_1
backports.os              0.1.1                    py36_0
bcolz                     1.2.1            py36h04863e7_0
beautifulsoup4            4.6.0                     <pip>
binutils_impl_linux-64    2.31.1               h6176602_1
binutils_linux-64         2.31.1               h6176602_3
blas                      1.0                    openblas
bleach                    3.0.2                    py36_0
blosc                     1.14.4               hdbcaa40_0
bokeh                     1.0.1                    py36_0
botocore                  1.8.23                    <pip>
bzip2                     1.0.6                h14c3975_5
c-ares                    1.15.0               h7b6447c_1
ca-certificates           2018.03.07                    0
certifi                   2018.10.15               py36_0
cffi                      1.11.5           py36he75722e_1
chardet                   3.0.4                    py36_1
click                     7.0                      py36_0
cliff                     2.8.0                     <pip>
cloudpickle               0.6.1                    py36_0
cmd2                      0.7.9                     <pip>
colorama                  0.3.7                     <pip>
configparser              3.5.0                     <pip>
constantly                15.1.0           py36h28b3542_0
cryptography              2.3.1            py36hc365091_0
cryptography-vectors      2.4.1                    py36_0
cssselect                 1.0.3                     <pip>
cuda90                    1.0                  h6433d27_0    pytorch
cuda92                    1.0                           0    pytorch
cudatoolkit               9.0                  h13b8566_0
cudnn                     7.1.2                 cuda9.0_0
cupti                     9.0.176                       0
cycler                    0.10.0                   py36_0
cymem                     2.0.2            py36hfd86e86_0
cytoolz                   0.9.0.1          py36h14c3975_1
dask                      0.20.2                   py36_0
dask-core                 0.20.2                   py36_0
dataclasses               0.6                        py_0    fastai
dbus                      1.13.2               h714fa37_1
decorator                 4.3.0                    py36_0
dill                      0.2.8.2                  py36_0
distributed               1.24.2                   py36_0
docutils                  0.14                      <pip>
en-core-web-sm            2.0.0                     <pip>
entrypoints               0.2.3                    py36_2
expat                     2.2.6                he6710b0_0
fastai                    1.0.6                      py_1    fastai
fastprogress              0.1.15                     py_0    fastai
feather-format            0.4.0                     <pip>
fontconfig                2.13.0               h9420a91_0
freetype                  2.9.1                h8a8886c_1
ftfy                      5.5.0                    py36_0
gast                      0.2.0                    py36_0
gcc_impl_linux-64         7.3.0                habb00fd_1
gcc_linux-64              7.3.0                h553295d_3
gettext                   0.19.8.1             hd7bead4_3
glib                      2.56.2               hd408876_0
gmp                       6.1.2                h6c8ec71_1
graphviz                  0.8.2                     <pip>
grpcio                    1.14.1           py36h9ba97e2_0
gst-plugins-base          1.14.0               hbbd80ab_1
gstreamer                 1.14.0               hb453b48_1
gxx_impl_linux-64         7.3.0                hdf63c60_1
gxx_linux-64              7.3.0                h553295d_3
h5py                      2.8.0            py36h989c5e5_3
hdf5                      1.10.2               hba1933b_1
heapdict                  1.0.0                    py36_2
html5lib                  1.0.1                    py36_0
hyperlink                 18.0.0                   py36_0
icu                       58.2                 h9c2bf20_1
idna                      2.7                      py36_0
importlib_metadata        0.6                      py36_0
incremental               17.5.0                   py36_0
intel-openmp              2019.1                      144
ipykernel                 5.1.0            py36h39e3cac_0
ipython                   7.1.1            py36h39e3cac_0
ipython_genutils          0.2.0                    py36_0
ipywidgets                7.4.2                    py36_0
isoweek                   1.3.3                     <pip>
jbig                      2.1                  hdba287a_0
jedi                      0.13.1                   py36_0
jinja2                    2.10                     py36_0
jmespath                  0.9.3                     <pip>
jpeg                      9b                   h024ee3a_2
jsonschema                2.6.0                    py36_0
jupyter                   1.0.0                    py36_7
jupyter-contrib-nbextensions 0.3.3                     <pip>
jupyter-highlight-selected-word 0.1.0                     <pip>
jupyter-latex-envs        1.4.1                     <pip>
jupyter-nbextensions-configurator 0.3.0                     <pip>
jupyter_client            5.2.3                    py36_0
jupyter_console           6.0.0                    py36_0
jupyter_contrib_core      0.3.3                    py36_1    conda-forge
jupyter_contrib_nbextensions 0.5.0                    py36_0    conda-forge
jupyter_core              4.4.0                    py36_0
jupyter_highlight_selected_word 0.2.0                    py36_0    conda-forge
jupyter_latex_envs        1.4.4                    py36_0    conda-forge
jupyter_nbextensions_configurator 0.4.0                    py36_0    conda-forge
jupyterlab                0.35.3                   py36_0
jupyterlab_launcher       0.13.1                   py36_0
jupyterlab_server         0.2.0                    py36_0
kaggle                    1.4.6                     <pip>
kaggle-cli                0.12.13                   <pip>
keras                     2.2.4                         0
keras-applications        1.0.6                    py36_0
keras-base                2.2.4                    py36_0
keras-preprocessing       1.0.5                    py36_0
kiwisolver                1.0.1            py36hf484d3e_0
libedit                   3.1.20170329         h6b74fdf_2
libffi                    3.2.1                hd88cf55_4
libgcc                    7.2.0                h69d50b8_2
libgcc-ng                 8.2.0                hdf63c60_1
libgfortran               3.0.0                         1
libgfortran-ng            7.3.0                hdf63c60_0
libgpuarray               0.7.6                h14c3975_0
libiconv                  1.15                 h63c8f33_5
libopenblas               0.3.3                h5a2b251_3
libpng                    1.6.35               hbc83047_0
libprotobuf               3.6.1                hd408876_0
libsodium                 1.0.16               h1bed415_0
libstdcxx-ng              8.2.0                hdf63c60_1
libtiff                   4.0.9                he85c1e1_2
libuuid                   1.0.3                h1bed415_2
libxcb                    1.13                 h1bed415_1
libxml2                   2.9.8                h26e45fe_1
libxslt                   1.1.32               h1312cb7_0
locket                    0.2.0                    py36_1
lxml                      4.2.5            py36hefd8a0e_0
lxml                      4.0.0                     <pip>
lzo                       2.10                 h49e0be7_2
mako                      1.0.7                    py36_0
markdown                  3.0.1                    py36_0
markupsafe                1.1.0            py36h7b6447c_0
matplotlib                3.0.1            py36h5429711_0
MechanicalSoup            0.8.0                     <pip>
mistune                   0.8.4            py36h7b6447c_0
mizani                    0.4.4                     <pip>
mkl                       2018.0.3                      1
mkl-service               1.1.2            py36h651fb7a_4
mkl_fft                   1.0.1            py36h3010b51_0
mkl_random                1.0.1            py36h629b387_0
mock                      2.0.0                    py36_0
more-itertools            4.3.0                    py36_0
msgpack-numpy             0.4.3.2                  py36_0
msgpack-python            0.5.6            py36h6bb024c_1
murmurhash                1.0.1            py36he6710b0_0
nbconvert                 5.3.1                    py36_0
nbformat                  4.4.0                    py36_0
nccl                      1.3.5                 cuda9.0_0
ncurses                   6.1                  he6710b0_1
ninja                     1.8.2            py36h6bb024c_1
nodejs                    10.13.0              he6710b0_0
nomkl                     3.0                           0
notebook                  5.7.2                    py36_0
numexpr                   2.6.8            py36h2ffa06c_0
numpy                     1.15.4           py36h99e49ec_0
numpy-base                1.15.4           py36h2f8d375_0
olefile                   0.46                     py36_0
openblas                  0.3.3                         3
openblas-devel            0.3.3                         3
opencv-python             3.4.0.12                  <pip>
openssl                   1.0.2p               h14c3975_0
packaging                 18.0                     py36_0
palettable                3.1.0                     <pip>
pandas                    0.23.4           py36h04863e7_0
pandas-summary            0.0.41                     py_1    conda-forge
pandas-summary            0.0.41                    <pip>
pandoc                    2.2.3.2                       0
pandocfilters             1.4.2                    py36_1
parso                     0.3.1                    py36_0
partd                     0.3.9                    py36_0
path.py                   11.5.0                   py36_0
pathlib                   1.0.1                    py36_1
patsy                     0.5.1                    py36_0
pbr                       3.1.1                     <pip>
pbr                       5.1.1                    py36_0
pcre                      8.42                 h439df22_0
PDPbox                    0.1                       <pip>
pexpect                   4.6.0                    py36_0
pickleshare               0.7.5                    py36_0
pillow                    5.3.0            py36h34e0f95_0
pip                       10.0.1                    <pip>
pip                       18.1                     py36_0
pip                       18.0                      <pip>
plac                      0.9.6                    py36_0
plotnine                  0.3.0                     <pip>
pluggy                    0.8.0                    py36_0
preshed                   2.0.1            py36he6710b0_0
prettytable               0.7.2                     <pip>
progressbar2              3.34.3                    <pip>
prometheus_client         0.4.2                    py36_0
prompt_toolkit            2.0.7                    py36_0
protobuf                  3.6.1            py36he6710b0_0
psutil                    5.4.8            py36h7b6447c_0
ptyprocess                0.6.0                    py36_0
py                        1.7.0                    py36_0
pyarrow                   0.8.0                     <pip>
pyasn1                    0.4.2                     <pip>
pyasn1                    0.4.4            py36h28b3542_0
pyasn1-modules            0.2.2                    py36_0
pycparser                 2.19                     py36_0
pygments                  2.2.0                    py36_0
pygpu                     0.7.6            py36h035aef0_0
pyhamcrest                1.9.0                    py36_2
pyopenssl                 18.0.0                   py36_0
pyparsing                 2.3.0                    py36_0
pyperclip                 1.6.0                     <pip>
pyqt                      5.9.2            py36h05f1152_2
pysocks                   1.6.8                    py36_0
pytables                  3.4.4            py36ha205bf6_0
pytest                    4.0.0                    py36_0
python                    3.6.6                h6e4f718_2
python-dateutil           2.7.5                    py36_0
python-utils              2.2.0                     <pip>
pytorch                   0.4.1           py36_cuda9.2.148_cudnn7.1.4_1  [cuda92]  pytorch
pytorch-nightly           1.0.0.dev20181129 py3.6_cuda9.2.148_cudnn7.4.1_0  [cuda92]  pytorch
pytz                      2018.7                   py36_0
pyyaml                    3.13             py36h14c3975_0
pyzmq                     17.1.2           py36h14c3975_0
qt                        5.9.6                h8703b6f_2
qtconsole                 4.4.2                    py36_0
readline                  7.0                  h7b6447c_5
regex                     2018.11.07       py36h7b6447c_0
requests                  2.20.1                   py36_0
rsa                       3.4.2                     <pip>
s3transfer                0.1.12                    <pip>
scikit-learn              0.19.1                    <pip>
scipy                     1.1.0            py36he2b7bc3_1
seaborn                   0.9.0                    py36_0
send2trash                1.5.0                    py36_0
service_identity          17.0.0           py36h28b3542_0
setuptools                40.6.2                   py36_0
simplegeneric             0.8.1                    py36_2
sip                       4.19.8           py36hf484d3e_0
six                       1.11.0                   py36_1
sklearn-pandas            1.6.0                     <pip>
snappy                    1.1.7                hbae5bb6_3
sortedcontainers          2.0.5                    py36_0
spacy                     2.0.16           py36h962f231_0
speedtest-cli             2.0.0                     <pip>
sqlite                    3.25.3               h7b6447c_0
statsmodels               0.9.0            py36h035aef0_0
stevedore                 1.28.0                    <pip>
tblib                     1.3.2                    py36_0
tensorboard               1.12.0           py36hf484d3e_0
tensorflow                1.12.0          mkl_py36h69b6ba0_0
tensorflow-base           1.12.0          mkl_py36h3c3e929_0
termcolor                 1.1.0                    py36_1
terminado                 0.8.1                    py36_1
testpath                  0.4.2                    py36_0
theano                    1.0.3            py36hfd86e86_0
thinc                     6.12.0           py36h22eb022_0
tk                        8.6.8                hbc83047_0
toolz                     0.9.0                    py36_0
torchtext                 0.2.1                     <pip>
torchvision               0.2.1                    py36_0
torchvision-nightly       0.2.1                      py_0    fastai
tornado                   5.1.1            py36h7b6447c_0
tqdm                      4.28.1           py36h28b3542_0
traitlets                 4.3.2                    py36_0
twisted                   18.9.0           py36h7b6447c_0
typing                    3.6.4                    py36_0
ujson                     1.35             py36h14c3975_0
urllib3                   1.23                     py36_0
wcwidth                   0.1.7                    py36_0
webencodings              0.5.1                    py36_1
werkzeug                  0.14.1                   py36_0
wheel                     0.32.3                   py36_0
widgetsnbextension        3.4.2                    py36_0
wrapt                     1.10.11          py36h14c3975_2
xz                        5.2.4                h14c3975_4
yaml                      0.1.7                had09818_2
zeromq                    4.2.5                hf484d3e_1
zict                      0.1.3                    py36_0
zlib                      1.2.11               h7b6447c_3
zope                      1.0                      py36_1
zope.interface            4.6.0            py36h7b6447c_0```

If you can use Google Cloud, try this: https://github.com/arunoda/fastai-shell

1 Like

Try this:
conda install -c fastai fastai=1.0.30

1 Like

Thanks @tarvoc sorry I should have mentioned I tried that, this is the ouput:

conda install -c fastai fastai=1.0.30

Fetching package metadata .............
Solving package specifications:

PackageNotFoundError: Packages missing in current channels:

  - fastai 1.0.30* -> regex 2018.8.29

We have searched for the packages in the following channels:

  - https://conda.anaconda.org/fastai/linux-64
  - https://conda.anaconda.org/fastai/noarch
  - https://repo.continuum.io/pkgs/main/linux-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/linux-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/linux-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/linux-64
  - https://repo.continuum.io/pkgs/pro/noarch

I’ve been using this to update fastai to new versions:

conda update -c fastai fastai
3 Likes

Thanks @Phil but I get the same result as before…

SOLVED!

I had to update my anaconda package first!

conda update -n root conda

then:

conda update --all

then:

conda install -c pytorch pytorch-nightly cuda92
conda install -c fastai torchvision-nightly
conda install -c fastai fastai
7 Likes

I am still stuck.

If I put:

!conda install -c fastai torchvision-nighly

I get this:

Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • torchvision-nighly

Current channels:

To search for alternate channels that may provide the conda package you’re
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.


So I keep getting this error:

NameError: name ‘ImageItemList’ is not defined

1 Like

Not sure whats happening there, did you follow all my steps above?

Yes, only the step: !conda install -c fastai torchvision-nighly isn’t working

Wait are you spelling the command correctly? I think you are missing a ‘t’

It should be like this:
conda install -c fastai torchvision-nightly

Sharp!

unfortunately it’s still not working.

I can see the package at; https://conda.anaconda.org/fastai/

But not at https://conda.anaconda.org/fastai/linux-64

I’m not confident this will work but you could try manually adding fastai to your list of channels…

conda config --append channels fastai

And then try the installation again. The package is definitely available, its a matter of not searching for it just in the linux-64 repo…I’m at the limits of my knowledge here tho!

image

Guess it worked?!?

Thanks Morgan :wink:

2 Likes

Haha great!

1 Like

@Johan1us @morgan The command
conda config --append channels fastai
works, but then if you try
conda install -c fastai torchvision-nightly
again, then you/I still get the same PackagesNotFoundError message about torchvision-nightly not being available in the current channels.

Then it tells me

To search for alternate channels that may provide the conda package you’re looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

And when you type in torchvision-nightly (after logging in) you get “There were no items found for this search”

EDIT: Looking at the fastai list here, perhaps we should just remove the “-nightly” and use regular “torchvision” instead.

@drscotthawley
For fastai you can take a look here: https://anaconda.org/fastai/fastai
(I think the latest version at this moment is 1.0.38)
To install this package with conda run: conda install -c fastai fastai

For pytorch you can check this one: https://anaconda.org/pytorch/pytorch-nightly
To install this package with conda run: conda install -c pytorch pytorch-nightly

1 Like