AttributeError: 'module' object has no attribute 'SFrame'
In your iPython/Jupyter notebook follow these steps in this particular order.
- This will download and install dependencies.
graphlab.get_dependencies()
Restart Kernel :
Kernel > Restart
Now import graphlab:
import graphlab
sf = graphlab.SFrame('people-example.csv')
Hope this helps. Cheers!
Make sure the library graphlab
is updated and works with your current python version. Changes on built-in libraries from python 2x to 3x are likely to cause issues like this one.
At first, you should run:
import graphlab
graphlab.product_key.set_product_key('your product key here')
where product_key
is a key you received to your email after registering on turi.com with your Coursera credentials.
After this operation everything's going to work fine.
You need to restart the ipython kernel on your iPython/Jupyter notebook for graphlab to see the dependencies in the correct locations.
menu options:
Kernel > Restart
and try again. Worked for me.