lad1337 / XDM

XDM: eXtendable Download Manager. Plugin based media collection manager.
xdm.lad1337.de
Other
203 stars 46 forks source link

UnicodeDecodeError (Windows) #106

Closed fixxolas closed 10 years ago

fixxolas commented 10 years ago

I'm getting this error on Win 2012, running 32 bit python 2.7.6

C:\Users\Administrator>c:\Python27\python.exe d:\progs\XDM\xdm.py > c:\py.txt ←[32;1mINFO←[0m| 2014-01-15 12:01:03.452000: Starting XDM Zim 0.5.15 ←[32;1mINFO←[0m| 2014-01-15 12:01:03.468000: Logfile path is ##xdm_path##\xd m.log ←[32;1mINFO←[0m| 2014-01-15 12:01:03.522000: Loading/searching system plugin s ←[32;1mINFO←[0m| 2014-01-15 12:01:05.807000: Pylint Score for SystemConfig i s 9.34 ←[31;1mERROR←[0m| 2014-01-15 12:01:05.861000: SystemConfig (Default) crashed on init i am not going to remember this one !! Error: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range (128)

Traceback (most recent call last): File "##xdm_path##\xdm\plugins\pluginManager.py", line 155, in _cachePlugins i = cur_class(instance) File "##xdmpath##\xdm\plugins\bases.py", line 131, in init methodList = [method for method in self.getMethods() if not method.startswit h('')] File "##xdm_path##\xdm\plugins\bases.py", line 224, in getMethods getattr(self, method), (types.FunctionType, types.BuiltinFunctionType, types .MethodType, types.BuiltinMethodType, types.UnboundMethodType))] File "##xdm_path##\xdm\plugins\bases.py", line 323, in getattribute return object.getattribute(self, name) File "##xdm_path##\corePlugins\system\System.py", line 99, in _getLocale self._setLocale(self.c.language_select) File "##xdm_path##\corePlugins\system\System.py", line 93, in _setLocale log(u"Language setting is '%s' resulting locale: '%s'" % (setting, self._loc ale)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range(128)

Traceback: Traceback (most recent call last): File "##xdm_path##\xdm\plugins\pluginManager.py", line 155, in _cachePlugins i = cur_class(instance) File "##xdmpath##\xdm\plugins\bases.py", line 131, in init methodList = [method for method in self.getMethods() if not method.startswit h('')] File "##xdm_path##\xdm\plugins\bases.py", line 224, in getMethods getattr(self, method), (types.FunctionType, types.BuiltinFunctionType, types .MethodType, types.BuiltinMethodType, types.UnboundMethodType))] File "##xdm_path##\xdm\plugins\bases.py", line 323, in getattribute return object.getattribute(self, name) File "##xdm_path##\corePlugins\system\System.py", line 99, in _getLocale self._setLocale(self.c.language_select) File "##xdm_path##\corePlugins\system\System.py", line 93, in _setLocale log(u"Language setting is '%s' resulting locale: '%s'" % (setting, self._loc ale)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range(128)

Traceback (most recent call last): File "d:\progs\XDM\xdm.py", line 305, in main() File "d:\progs\XDM\xdm.py", line 268, in main app = App() File "d:\progs\XDM\xdm.py", line 152, in init init.postDB() File "d:\progs\XDM\xdm\init.py", line 113, in postDB common.SYSTEM = common.PM.getSystem('Default')[0] # yeah SYSTEM is a plugin IndexError: list index out of range

lad1337 commented 10 years ago

May i ask where you live ? I am asking this because during that point only local languages and stuff are a concern

It might be the internalization system

On 15 Jan 2014, at 12:02, fixxolas notifications@github.com wrote:

I'm getting this error on Win 2012, running 32 bit python 2.7.6

C:\Users\Administrator>c:\Python27\python.exe d:\progs\XDM\xdm.py > c:\py.txt ←[32;1mINFO←[0m| 2014-01-15 12:01:03.452000: Starting XDM Zim 0.5.15 ←[32;1mINFO←[0m| 2014-01-15 12:01:03.468000: Logfile path is ##xdm_path##\xd m.log ←[32;1mINFO←[0m| 2014-01-15 12:01:03.522000: Loading/searching system plugin s ←[32;1mINFO←[0m| 2014-01-15 12:01:05.807000: Pylint Score for SystemConfig i s 9.34 ←[31;1mERROR←[0m| 2014-01-15 12:01:05.861000: SystemConfig (Default) crashed on init i am not going to remember this one !! Error: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range (128)

Traceback (most recent call last): File "##xdm_path##\xdm\plugins\pluginManager.py", line 155, in _cachePlugins i = cur_class(instance) File "##xdm_path##\xdm\plugins\bases.py", line 131, in init methodList = [method for method in self.getMethods() if not method.startswit h(' _')] File "##xdm_path##\xdm\plugins\bases.py", line 224, in getMethods getattr(self, method), (types.FunctionType, types.BuiltinFunctionType, types .MethodType, types.BuiltinMethodType, types.UnboundMethodType))] File "##xdm_path##\xdm\plugins\bases.py", line 323, in getattribute return object.getattribute(self, name) File "##xdm_path##\corePlugins\system\System.py", line 99, in _getLocale self._setLocale(self.c.language_select) File "##xdm_path##\corePlugins\system\System.py", line 93, in _setLocale log(u"Language setting is '%s' resulting locale: '%s'" % (setting, self._loc ale)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range(128)

Traceback: Traceback (most recent call last): File "##xdm_path##\xdm\plugins\pluginManager.py", line 155, in _cachePlugins i = cur_class(instance) File "##xdm_path##\xdm\plugins\bases.py", line 131, in init methodList = [method for method in self.getMethods() if not method.startswit h(' _')] File "##xdm_path##\xdm\plugins\bases.py", line 224, in getMethods getattr(self, method), (types.FunctionType, types.BuiltinFunctionType, types .MethodType, types.BuiltinMethodType, types.UnboundMethodType))] File "##xdm_path##\xdm\plugins\bases.py", line 323, in getattribute return object.getattribute(self, name) File "##xdm_path##\corePlugins\system\System.py", line 99, in _getLocale self._setLocale(self.c.language_select) File "##xdm_path##\corePlugins\system\System.py", line 93, in _setLocale log(u"Language setting is '%s' resulting locale: '%s'" % (setting, self._loc ale)) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range(128)

Traceback (most recent call last): File "d:\progs\XDM\xdm.py", line 305, in main() File "d:\progs\XDM\xdm.py", line 268, in main app = App() File "d:\progs\XDM\xdm.py", line 152, in init init.postDB() File "d:\progs\XDM\xdm\init.py", line 113, in postDB common.SYSTEM = common.PM.getSystem('Default')[0] # yeah SYSTEM is a plugin IndexError: list index out of range

— Reply to this email directly or view it on GitHubhttps://github.com/lad1337/XDM/issues/106 .

fixxolas commented 10 years ago

Yes, i live in Norway, land of polarbears and ladies! :-)

EDIT: i changed my locale setings to US english, and it booted but i wouyld prefer to have this to my native language

lad1337 commented 10 years ago

You changed which locale ? System wide ? Python locale? Do you know what python reported? But anyway this should not happen

lad1337 commented 10 years ago

please try with newest version switch to getdefaultlocale() in https://github.com/lad1337/XDM/commit/a3fa098acd415244ca6a44f7a1729afc28ab00d9

fixxolas commented 10 years ago

Thanks for the follow-up! However i decided to go back to NZBdrone & CouchPotato. I could not get XDM to work correctly. (It fetch the completeted download from SAB)

On Sun, Jan 19, 2014 at 11:25 PM, lad1337 notifications@github.com wrote:

please try with newest version switch to getdefaultlocale() in a3fa098https://github.com/lad1337/XDM/commit/a3fa098acd415244ca6a44f7a1729afc28ab00d9

— Reply to this email directly or view it on GitHubhttps://github.com/lad1337/XDM/issues/106#issuecomment-32724221 .

Mvh Nicholas Amundsen

lad1337 commented 10 years ago

fair enough :)

fyi the fetch from SAB will be done automatically from the SAB plugin, to move copy the Movies / Episodes you will need an appropriate PostProcessor plugin e.g. MovieMover and EpisodeMover

i'll close this issue anyway ^^

fixxolas commented 10 years ago

Ahh, i see! I really want XDM to be a good substitute to CouchPotato, but XDM is a little bit hard to get into. Do you know of a tutorial?

Thanks for your time.

On Mon, Jan 20, 2014 at 10:12 AM, lad1337 notifications@github.com wrote:

Closed #106 https://github.com/lad1337/XDM/issues/106.

— Reply to this email directly or view it on GitHubhttps://github.com/lad1337/XDM/issues/106 .

Mvh Nicholas Amundsen

lad1337 commented 10 years ago

no tutorials so far as i know ... i still consider XDM beta / new -> no one uses it but i guess its time to write a tutorial

and yes i noticed that with all the plugins and options XDM is not particular easy to configure i also dream of some kind of "settings package" ... like give this file to XDM and you wil have all plugins and default configurations for SAB and TV shows ... but thats future stuff