fastai/courses

utils.py gives error about cPickle

osok opened this issue · 1 comments

osok commented

I watched the first video and saw that you suggested that we use Kaggle. I cloned the fastbook repo but I don't know how to get to it. I created a new book and used
!git clone https://github.com/fastai/courses.git

Different install, I have anaconda installed on my computer. Its a little beefy, 32 GB ram, SSD, 4 GB GPU and dual xeon processors,, so I thought I could run it there. I created an environment and primed the environment with the contents of 👍 https://github.com/fastai/fastbook/blob/master/requirements.txt
and
https://github.com/fastai/courses/blob/master/requirements.txt

When I ran the following, from : https://github.com/fastai/courses/blob/master/deeplearning1/nbs/lesson1.ipynb

import utils; reload(utils)
from utils import plots

I got the following error

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[5], line 1
----> 1 import utils; reload(utils)
      2 from utils import plots

File ~\Documents\fastai\courses\deeplearning1\nbs\utils.py:3
      1 from __future__ import division,print_function
      2 import math, os, json, sys, re
----> 3 import cPickle as pickle
      4 from glob import glob
      5 import numpy as np

ModuleNotFoundError: No module named 'cPickle'

I looked at the util.py and then googled cPickle and got this page:
http://pymotw.com/2/pickle/

so I installed PyMOTW, this still didnt fix things.

Given that this seems to central to many of the course notebooks, I'm assumming I'm doing something wrong. I'll happily use kaggle if I can sort that out. I feel like thats not the problem.

osok commented

I have played around installing and uninstalling environments, anaconda versions , python versions. To get everthing to build right I'm using a 2021 version of anaconda and python 3.8. However this issue still exists.

The course is unusable in the current state.