Av0id
Av0id

Reputation: 33

Error import python-pushover

I am currently running python 2.7.

I already installed python-pushover.

But when I try to import following code

from pushover import init, Client'

I get following error

from pushover import init, Client
ImportError: cannot import name init

I have tried

import pushover
from pushover import init, Client

same error.

Upvotes: 2

Views: 2094

Answers (1)

elethan
elethan

Reputation: 16993

My guess is that you did pip install pushover. However, this will install a different package from the one you are interested in. Instead, you will need to uninstall that package:

pip uninstall pushover

and install the correct package:

pip install python-pushover

Once you do that, your code should work as expected.

Upvotes: 6

Related Questions