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

Gives error

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

Rahul
  • 10,830
  • 4
  • 53
  • 88

2 Answers2

28

I solved this by also adding this import statement:

import cloudinary.uploader
Mike Karp
  • 1,477
  • 13
  • 19
4

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.

Maor.G
  • 440
  • 2
  • 5