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)
It certainly looks like
pusheris being overwritten by something else. Is there apusher.pyor apusher.pycin the same directory as your application? What happens when youprint(pusher)after importing?My bad! Called my Django project pusher xD