Pavel Strashkin wrote:
Hi Jose,
I'm not sure, but it looks like that your session data is malformed
(corrupted). Try to delete the session from storage (do you use file
storage?) and request the page again. I had something same before.
Yes, Pavel, I'm using file storage, I have these kind of errors even in
other servers like this UnicodeDecodeError instead of an ValueError and
it is another file storage and another server:
return tg.i18n.format_date(value, locale=tg.i18n.get_locale(),
date_format=date_format)
File
"/uy/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/i18n/utils.py",
line 66, in get_locale
locale = get_locale_f()
File
"/uy/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/i18n/utils.py",
line 80, in _get_locale
locale = cherrypy.session.get(locale_key)
File
"/uy/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 485, in __getattr__
data = sess.session_storage.load(sess.session_id)
File
"/uy/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 284, in load
data = pickle.load(f)
UnicodeDecodeError: 'rawunicodeescape' codec can't decode bytes in position
2561-2562: truncated \uXXXX
I'm going to clean file session as you suggest to see if the error goes
away. I'll let you know.
Thank you for your help.
j
2011/2/11 jose soares <[email protected]>:
Hi all,
Could someone give me some tip to avoid this error?
----------------------------
return tg.i18n.format_date(value, locale=tg.i18n.get_locale(),
date_format=date_format)
File
"/home/sf/.VE-SIC.x-x86_64-19.04.2010/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/i18n/utils.py",
line 66, in get_locale
locale = get_locale_f()
File
"/home/sf/.VE-SIC.x-x86_64-19.04.2010/lib/python2.6/site-packages/TurboGears-1.1.1-py2.6.egg/turbogears/i18n/utils.py",
line 80, in _get_locale
locale = cherrypy.session.get(locale_key)
File
"/home/sf/.VE-SICER2.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 485, in __getattr__
data = sess.session_storage.load(sess.session_id)
File
"/home/sf/.VE-SIC.x-x86_64-19.04.2010/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py",
line 284, in load
data = pickle.load(f)
ValueError: could not convert string to int
-----------------------------
Thanks for any help,
j
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.