Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Can't install via pip #3

Closed
tiktuk opened this issue Sep 13, 2012 · 10 comments
Closed

Can't install via pip #3

tiktuk opened this issue Sep 13, 2012 · 10 comments

Comments

@tiktuk
Copy link
Contributor

tiktuk commented Sep 13, 2012

Doing pip install website-pollerI get this error message:

IOError: [Errno 2] No such file or directory: '/Users/myusername/python/lib/build/website-poller/setup.py'

@bebraw
Copy link
Contributor

bebraw commented Sep 13, 2012

Thanks for reporting! I'll look into this. :)

@bebraw
Copy link
Contributor

bebraw commented Sep 13, 2012

I think I figured it out. Pip won't work with binary distributions. I simply bumped up the version and made sure only source distribution is available.

@tiktuk: Could you please give it a go now? :)

@tiktuk
Copy link
Contributor Author

tiktuk commented Sep 13, 2012

I think it works now. In fact it fails but it is because - as I found out in the meantime - my version of Growl does not support GNTP :-( . So it failed connecting to Growl. Unfortunately I am on Snow Leopard and can't upgrade so I can't use your program right now.

Thanks for looking into the issue so quickly though.

@bebraw
Copy link
Contributor

bebraw commented Sep 13, 2012

Alright. If you can find a library that works with your version of Growl, let me know and I'll plug it in.

@bebraw bebraw closed this as completed Sep 13, 2012
@bebraw
Copy link
Contributor

bebraw commented Sep 13, 2012

@tiktuk Does growlnotify work for you? If so, I think we could use that.

@tiktuk
Copy link
Contributor Author

tiktuk commented Sep 13, 2012

Yes, I think it is the same as this: https://github.com/ptone/pygrowl, and I used that once. I just tested and it works perfectly. Here is some sample code:

from Growl import GrowlNotifier, Image

message = 'Hi'
icon_image_path = '' # Path to image file

icon = Image.imageFromPath(icon_image_path)
g = GrowlNotifier(applicationName='APP_NAME', notifications=['NOTIFICATION_NAME'], applicationIcon=icon)
g.register()
g.notify('NOTIFICATION_NAME', 'Notification', message, sticky=True)

Would be great if you also support this :-) .

@bebraw
Copy link
Contributor

bebraw commented Sep 13, 2012

@tiktuk I made version 0.5.4 support growlnotify. Instead of using the lib I ended up just calling it via terminal. Easier this way. Hopefully it works for you now! :)

@tiktuk
Copy link
Contributor Author

tiktuk commented Sep 13, 2012

Thanks, it works!

Could be great if a warning message is printed if growlnotify is not found, though.

It's great that you can support all versions of OS X using growlnotify. The good thing about using the python libraries is that they work with just Growl installed, though. I had to download the Growl disk image again to get the growlnotify installer. The libraries are easier to get, they are just a pip install away. And I guess their installation could even be automated in your setup.py. That's nitpicking though, thanks for your work!

@bebraw
Copy link
Contributor

bebraw commented Sep 13, 2012

@tiktuk Good point! I'll add an issue for that so I won't forget. Might resolve that one later.

The reason why I didn't drop pygrowl there had to do with the fact that it comes with a C extension (not quite sure how to deal with that). The version at PyPI is somewhat old too. Better yet OS X 10.8 came with a new notification system altogether. What a mess. :)

I guess the ideal solution for this would be to fork pygrowl and host it at PyPI. It's a shame gntp doesn't work with the old version.

Let me know if you get any further ideas. Just opening an issue will do. :)

@tiktuk
Copy link
Contributor Author

tiktuk commented Sep 13, 2012

Yeah, it's a bit of a mess..

I created issue #8 to discuss this more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants