Rahul
Rahul

Reputation: 11550

Cloudinary python uploader not working

import cloudinary
cloudinary.uploader.upload("my_picture.jpg")

Gives error

AttributeError: module 'cloudinary' has no attribute 'uploader'

Upvotes: 5

Views: 4117

Answers (2)

Mike Karp
Mike Karp

Reputation: 1626

I solved this by also adding this import statement:

import cloudinary.uploader

Upvotes: 30

Maor.G
Maor.G

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

Related Questions