UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 54:

arthur sherman arthur.m.sherman at gmail.com
Sun Apr 24 16:26:52 EDT 2016


m using a python web applic (adagios, a nagios configuration tool).
when attempting a certain operation on the client side browser i get the above error.
the client side is ubunti 14.04. servers side is debian 8. browser is ff or chrome.
both show:
echo $LANG
en_US.UTF-8

before i dive into the code, r there any OS level things to try? 
here's the full error traceback:

Traceback (most recent call last):
File "/opt/adagios/adagios/views.py", line 43, in wrapper
result = view_func(request, *args, **kwargs)
File "/opt/adagios/adagios/objectbrowser/views.py", line 191, in edit_object
c['form'] = PynagForm(pynag_object=my_object, initial=my_object._original_attributes)
File "/opt/adagios/adagios/objectbrowser/forms.py", line 312, in __init__
self.fields[field_name] = self.get_pynagField(field_name, css_tag="inherited")
File "/opt/adagios/adagios/objectbrowser/forms.py", line 418, in get_pynagField
_('%(inherited_value)s (inherited from template)') % {'inherited_value': smart_str(inherited_value)}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 54: ordinal not in range(128)

tnx in advance for any assistance,
ams
avraham
 
Posts: 2
Joined: Wed Mar 25, 2015 8:58 am
Top



More information about the Python-list mailing list