f4bio / sopel-rss

new implementation of the deprecated rss module for sopel (https://github.com/sopel-irc/sopel)
MIT License
3 stars 1 forks source link

module fails to load #5

Closed rinzes closed 8 years ago

rinzes commented 8 years ago

I am unable to load this module as it fails with the RingBuffer... I am using python 2.7 on Ubuntu 14.04

RebelCodeBase commented 8 years ago

Could you please post the backtrace / error message?

rinzes commented 8 years ago

Welcome to Sopel. Loading modules... Error loading rss: invalid syntax (rss.py, line 442) (loader.py:195) Registered 43 modules, 1 modules failed to load

rinzes commented 8 years ago

https://code.activestate.com/recipes/68429-ring-buffer/

rinzes commented 8 years ago

I did a raw copy/paste of the rss.py to my ../.sopel/modules and now getting the following:

Error loading rss: No module named request (../../../../../../home/znc/.sopel/modules/rss.py:5)

Any Ideas?

RebelCodeBase commented 8 years ago

Your system is probably lacking the python library urllib3 from which urlopen is imported in line 5 of rss.py. You should install it through your preferred package manager.

rinzes commented 8 years ago

Requirement already satisfied (use --upgrade to upgrade): urllib3 in /usr/lib/python2.7/dist-packages

RebelCodeBase commented 8 years ago

What operating system is the bot installed on?

rinzes commented 8 years ago

Debian 8.3.0 Server 32-Bit

RebelCodeBase commented 8 years ago

Maybe you want to try out the ansible role made for this module? It should not interfere with your current setup as is installs a local user sopel, checks out the source from github and uses runit to controll the sopel process.

rinzes commented 8 years ago

I get page not found... 404

I think it has something to do with me using Python 2.7 because I changed line 5 to: from urllib2 import urlopen and it loaded without a error. cept the module did not work :)

RebelCodeBase commented 8 years ago

I think this is a python 2 vs. 3 issue. It turned out that we don't need that import line at all so I removed it.

rinzes commented 8 years ago

Thanks that fixed this issue but now I have others which I will address in New Issues

RebelCodeBase commented 8 years ago

Please go ahead ;-)