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

Non-ASCII character #4

Closed thenightfighter closed 8 years ago

thenightfighter commented 8 years ago

Hey, tried the plugin on a debian 7 host.

But got the following issue: Error loading rss: Non-ASCII character '\xe2' in file /home/willie/.sopel/modules/rss.py on line 245, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (rss.py, line 245) (loader.py:195)

RebelCodeBase commented 8 years ago

This is strange as it is the same problem already reported in issues #2. It should be fixed by from __future__ import unicode_literals Could you please have a look if this line is present in your rss.py?

thenightfighter commented 8 years ago

Yep it's in the first line...

Also I got a strange error Error loading rss: No module named request (../../../../../../home/willie/.sopel/modules/rss.py:4) maybe it's known?

RebelCodeBase commented 8 years ago

The first error puzzles me and I doubt I can help you without having more information about your setup (os, language, python version, etc.) As for the second error: it seems that you have not installed the python request module on your system. The installation method depends on how you manage your python modules (pip, apt-get, brew, etc.).

rinzes commented 8 years ago

you have to add the following at the top:

# coding=utf8

RebelCodeBase commented 8 years ago

Oh right, thanks a lot! This is defined in PEP 263 and I've added a line to the top of rss.py.