UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f i

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
jonceramic
Newbie
Newbie
Posts: 5
Joined: August 8th, 2016, 10:34 pm

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f i

Post by jonceramic »

Hi, I recently upgraded to 1.0.3 win32 2-3 days ago, I'm not sure from which version. I am on a machine with Windows 10, that was recently "upgraded" from WIndows 7.

When I upgraded, I first got an error that I couldn't write to the .log file. I went in and opened up all the admin settings on the folder, and ran the installer as the administrator, and got that to work.

Then, I got this error...

Traceback (most recent call last):
File "SABnzbd.py", line 1861, in <module>
File "SABnzbd.py", line 1062, in main
File "sabnzbd\decorators.pyo", line 31, in newFunction
File "sabnzbd\config.pyo", line 687, in read_config
File "sabnzbd\config.pyo", line 735, in _read_config
File "sabnzbd\utils\configobj.pyo", line 1242, in __init__
File "sabnzbd\utils\configobj.pyo", line 1302, in _load
File "sabnzbd\utils\configobj.pyo", line 1412, in _handle_bom
File "sabnzbd\utils\configobj.pyo", line 1509, in _decode
File "encodings\cp1252.pyo", line 15, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 13: character maps to <undefined>

I tried swapping out different versions of cp1252, including a trick I saw to substitute utf-8's .py in it's place. nothing is working. I've even tried installing all of the language packs that the MacOSX version offers as localizations. Nothing helps. I can't find the .ini file to try and edit it.

Does anyone have any suggestions? (Please note, I get the same issue with the current stable release as I do with the current beta 1.1.0.RC2.

TIA.
jonceramic
Newbie
Newbie
Posts: 5
Joined: August 8th, 2016, 10:34 pm

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x

Post by jonceramic »

FWIW, This user got a similar error, but there was no response.

https://forums.sabnzbd.org/viewtopic.ph ... yo#p105747
jonceramic
Newbie
Newbie
Posts: 5
Joined: August 8th, 2016, 10:34 pm

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x

Post by jonceramic »

Similar error message, but not exact here... https://forums.sabnzbd.org/viewtopic.ph ... ecodeerror
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x

Post by safihre »

What OS language are you using and what is your keyboard language?

I think in the end you will need to start fresh, something seems corrupted. Sorry :/
Uninstall SABnzbd first.
Then press WindowsKey+R and run:
%userprofile%\AppData\Local\

See if there is folder called sabnzbd, if so, delete it.
Now re-install SABnzbd, it shouldn't need administrator rights, otherwise it will ask for it.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
jonceramic
Newbie
Newbie
Posts: 5
Joined: August 8th, 2016, 10:34 pm

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x

Post by jonceramic »

Just using standard English setup. I likely deleted all of the language packs _other_ than English at some point when I had Windows 7 or during the WIndows 10 install because I always do that to save space.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x

Post by safihre »

Did you try my suggestion of making sure your Config is gone and then re-install?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
jonceramic
Newbie
Newbie
Posts: 5
Joined: August 8th, 2016, 10:34 pm

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x

Post by jonceramic »

Hi Safihre, I finally got back on the system I had an issue with. I saved off my config folder as "_old" and compared the install vs. the original. It worked great. Look at my old config file, and saw immediately that the second line of the _new_ .ini was "__encoding__ = utf-8". So, I replace the old, and put that as my second line... And presto, it worked. All my old settings were maintained, and it SABNZBD is working great again. Thanks! Really appreciate this app.
Post Reply