Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utils.py gives error about cPickle #235

Open
osok opened this issue May 30, 2023 · 1 comment
Open

utils.py gives error about cPickle #235

osok opened this issue May 30, 2023 · 1 comment

Comments

@osok
Copy link

osok commented May 30, 2023

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
Copy link
Author

osok commented May 31, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant