Code Monkey home page Code Monkey logo

pyprowl's People

Contributors

toddrob99 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pyprowl's Issues

Pass variable to pyprowl

This might not be the proper method but I like what I get so far from pyprowl but cannot pass a variable to any of the sections in notify.

I'd like to have each "event" contain a variable with the thing I am watching for. I am running this in a for loop and want to send a Prowl notification when I see the item I am watching for but it errors out. I feel like it might be possible but I just can't figure it out!

AttributeError: 'module' object has no attribute 'Prowl'

Trying out your example code unfortunately does not work for me, as you can see below from the output:

Traceback (most recent call last):
  File "p.py", line 3, in <module>
    p = pyprowl.Prowl('MY_KEY')
AttributeError: 'module' object has no attribute 'Prowl'

I installed the module with sudo pip install pyprowl and am using Python 2.7.16 on Raspbian 10 (buster).

ImportError: No module named 'urllib2' with Python3

I can't seem to make your library work with Python 3 as it is looking for urllib2 which is for Python 2 as you can see from the output below:

  File "/usr/local/lib/python3.5/dist-packages/pyprowl/__init__.py", line 76, in notify
    return self.api_call('add',data)
  File "/usr/local/lib/python3.5/dist-packages/pyprowl/__init__.py", line 91, in api_call
    import urllib2, urllib
ImportError: No module named 'urllib2'

Would it be possible to make your code compatible also with Python 3?

Thank you very much in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.