Skip to content

utils.py gives error about cPickle #235

@osok

Description

@osok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions