← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695366] Re: [RC1] NameError: global name 'zipfile' is not defined

 

Ok with the revision 4206
thx

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/695366

Title:
  [RC1] NameError: global name 'zipfile' is not defined 

Status in OpenObject Web Client:
  New

Bug description:
  Last trunk version, with python 2.6.6

On a windows server, with web client, I have this error when I log in : 

Unrecoverable error in the server.
Traceback (most recent call last):
  File "e:\OpenERP\Python2.6\lib\site-packages\cherrypy\_cprequest.py", line 541, in run
    self.respond(pi)
  File "e:\OpenERP\Python2.6\lib\site-packages\cherrypy\_cprequest.py", line 624, in respond
    self.handle_error()
  File "e:\OpenERP\Python2.6\lib\site-packages\cherrypy\_cprequest.py", line 746, in handle_error
    self.error_response()
  File "E:\OpenERP\trunk\web\addons\openerp\controllers\root.py", line 40, in _cp_on_error
    cherrypy.request.pool = openobject.pooler.get_pool()
  File "E:\OpenERP\trunk\web\openobject\pooler.py", line 97, in get_pool
    addons.load_addons(db_name, config)
  File "E:\OpenERP\trunk\web\openobject\addons.py", line 214, in load_addons
    new_modules = obj.get_new_modules()
  File "E:\OpenERP\trunk\web\addons\openerp\controllers\modules.py", line 46, in get_new_modules
    extract_zip_file(StringIO(module['content'].decode('base64')), temp_dir)
  File "E:\OpenERP\trunk\web\openobject\tools\zip.py", line 6, in extract_zip_file
    zf = zipfile.ZipFile(zip_file)
NameError: global name 'zipfile' is not defined

On ubuntu, it's working





References