Bug in mail_gateway module on Windows XP

Bug #791115 reported by Stanislav Hanzhin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

OpenERP Crashes on Windows XP trying to decode timezone format.

Environment Information :
System : Windows-XP-5.1.2600-SP2
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : ru_RU.cp1251
Python Version : 2.5.2
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "netsvc.pyo", line 489, in dispatch
File "service\web_services.pyo", line 599, in dispatch
File "osv\osv.pyo", line 122, in wrapper
File "osv\osv.pyo", line 176, in execute
File "osv\osv.pyo", line 167, in execute_cr
File "osv\orm.pyo", line 2940, in read
File "osv\orm.pyo", line 3060, in _read_flat
File "osv\fields.pyo", line 793, in get
File "C:\Program Files\OpenERP 6.0\Server\addons\mail_gateway\mail_gateway.py", line 254, in _get_display_text
File "C:\Program Files\OpenERP 6.0\Server\addons\mail_gateway\mail_gateway.py", line 180, in format_date_tz
File "tools\misc.pyo", line 1433, in server_to_local_timestamp
File "tools\misc.pyo", line 1351, in get_server_timezone
File "tools\misc.pyo", line 1336, in detect_server_timezone
File "pytz\__init__.pyo", line 147, in timezone
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 0: ordinal not in range(128)

Revision history for this message
Neolink (neolink) wrote :

Environment Information :
System : Windows-Vista-6.1.7600
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : ru_RU.cp1251
Python Version : 2.5.2
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "openerp\netsvc.pyo", line 427, in dispatch
  File "openerp\service\web_services.pyo", line 574, in dispatch
  File "openerp\osv\osv.pyo", line 124, in wrapper
  File "openerp\osv\osv.pyo", line 178, in execute
  File "openerp\osv\osv.pyo", line 169, in execute_cr
  File "openerp\osv\orm.pyo", line 2978, in read
  File "openerp\osv\orm.pyo", line 3101, in _read_flat
  File "openerp\osv\fields.pyo", line 816, in get
  File "openerp\addons\mail_gateway\mail_gateway.pyo", line 258, in _get_display_text
  File "openerp\addons\mail_gateway\mail_gateway.pyo", line 185, in format_date_tz
  File "openerp\tools\misc.pyo", line 1323, in server_to_local_timestamp
  File "openerp\tools\misc.pyo", line 1241, in get_server_timezone
  File "openerp\tools\misc.pyo", line 1226, in detect_server_timezone
  File "pytz\__init__.pyo", line 147, in timezone
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 0: ordinal not in range(128)

Revision history for this message
Neolink (neolink) wrote :

Bug appears when the implementation of almost any action in the module "Candidates. "

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have checked your issue at my end with windows xp.

But I did not face any type of traceback at my end.
So would you please provide us the proper steps to reproduce it.

Thanks and waiting for your reply!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Stanislav Hanzhin (hanzhin-stas) wrote :

To reproduce, WIndows XP must have non-ASCII locale set.

Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote :

Hello,

I have changed the locale of system but it could fetch emails and works as expected.

Would you please provide more information or steps to achieve it.

Waiting for your reply.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

The latest OpenERP 6.0.3 (all in one) has released and I have tested with this latest version but all are working fine.

So Would you please check this again with latest OpenERP release 6.0.3.

Currently I am closing this issue if you still face the problem then you can reopen this with more information (with respect to comment#5).

Thanks.

Changed in openobject-addons:
status: Incomplete → Invalid
Revision history for this message
enzolino42 (enzolino-deactivatedaccount) wrote :

Solution:

Open the file "openerp-server.conf"
change "timezone" from False to MET or some other time.
e.g.
timezone = MET

That worked for me, hope it works for you also!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.