error timezone with pytz

Bug #406233 reported by GEM
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hi,
I have this error with vista sp2, client gtk 5.0 build with last sources
I go to user->preferences and choose timezone Europe/Paris
You corrected an error yet when you added folder pytz\timezone\* in library.zip (IO error can't find (or read) Europe/Paris)
Now the file is in library.zip, but I don't know why (perhaps in matplotlib.dates or pytz), after this, I have another error, Unknow timezone "Paris, Madrid", which is the timezone in the registry of windows, if I add in pytz\__init__.py in the list all_timezone the line 'Paris, Madrid' and copy pytz\timezone\Europe\Paris to pytz\timezone\'Paris, Madrid' , the problem is solved.
For information the error comes at the second close of the client (choose timezone, close client, open client, close client).
Thanks to confirm.

Changed in openobject-client:
status: New → Confirmed
Revision history for this message
Shah Japan (jsh.axelor) wrote :

I wonder, eTiny works perfect with pytz, same thing is not working for GTK 5.0.3.

Revision history for this message
GEM (nimp3) wrote :

Hi,
a problem of library in gtk client I think :
dateutil, mx, matplotlib ?
the client verify 2 things :
timezone in pytz first, and after timezone in windows registry, why?
A+

Revision history for this message
invitu (invitu) wrote :

temporary solution is not to choose any tz in users/preferences

Revision history for this message
invitu (invitu) wrote :

Here are some logs with openerp-client V 5.0.6 (win)

Traceback (most recent call last):
  File "widget\view\tree_gtk\parser.pyo", line 196, in setter
  File "widget\view\tree_gtk\parser.pyo", line 310, in get_textual_value
  File "pytz\__init__.pyo", line 141, in timezone
pytz.UnknownTimeZoneError: 'Hawaii'

Revision history for this message
GEM (nimp3) wrote :

the only way actually to have a timezone is to follow this topic on how to build setup for windows, I have found a manual solution :
http://www.openobject.com/forum/topic12184.html

Revision history for this message
digitalsatori(Shine IT) (digitalsatori) wrote :

this should be the same bug I reported several month ago: https://bugs.launchpad.net/openobject-server/+bug/389544

Revision history for this message
GEM (nimp3) wrote :

I don't know why, but I build today with last sources allinone for windows, choose different timezones in preferences with client gtk, open, close a lot of time, and no error.
The problem seems to be solved.
Can you confirm you too ?

Changed in openobject-client:
status: Confirmed → New
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.