Skip to content

Unable to import on raspberry pi 3 #21

Open
@jesseyofferenvan

Description

@jesseyofferenvan

I got a freshly installed raspberry and I was trying to install this pushover script

Now I installed it over pip with:

$ pip install python-pushover

and created the following script

from pushover import Client

client = Client("myUserToken", 
api_token="myAppToken")
client.send_message("message!", title="myTitle")

And that results in the following response

python test.py

Traceback (most recent call last):

  File "test.py", line 1, in <module>

from pushover import Client

  File "/home/pi/Desktop/project/test.py", line 1, in <module>

from pushover import init, Client

ImportError: cannot import name init

My python version used : Python 2.7.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions