pusher-http-python: Django 1.9: ImportError or AttributeError

When i do:

import pusher
p = pusher.Pusher

I get: AttributeError: 'module' object has no attribute 'Pusher'

When i do:

from pusher import Pusher
p = Pusher

I get: ImportError: cannot import name Pusher

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

It certainly looks like pusher is being overwritten by something else. Is there a pusher.py or a pusher.pyc in the same directory as your application? What happens when you print(pusher) after importing?

My bad! Called my Django project pusher xD