06_multicat_sorted error

Hi, I am completely new to this, sorry in advanced if I ask anything stupid:/

In 06_multicat Regression section
I tried to run the path.ls().sorted()
but there is the error msg AttributeError: 'list' object has no attribute 'sorted'

I tried to use sort instead of sorted, putting sorted in the front but still cant get the same result in the lesson.

May I ask why? thanksssss

How are you importing?

Should be from fastai.vision.all import *

Hi Mr Zachary,

Thanks for your reply, but still no luck:(((( have no idea what is going on

You’re in colab, make sure you always do pip install fastai -U in the beginning

1 Like

Thanks!! I installed it when I first start the course, and I dont know why it wasnt working at the beginning.
But now is fixed!!! thanksss