Reputation: 11550
import cloudinary
cloudinary.uploader.upload("my_picture.jpg")
Gives error
AttributeError: module 'cloudinary' has no attribute 'uploader'
Upvotes: 5
Views: 4117
Reputation: 1626
I solved this by also adding this import statement:
import cloudinary.uploader
Upvotes: 30
Reputation: 460
It usually happens when running it from a script called Cloudinary. Try to rename cloudinary.py to something else.. Also, delete cloudinary.pyc if exists.
Upvotes: 5