← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 759604] Re: v6 SyntaxError in l10n_lu

 

Hello GEM,

You are right ! With statement is not supported by the python version
2.5.

We will bundle the installer with the latest version.

Thank you for pointing out.

-- 
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/759604

Title:
  v6 SyntaxError in l10n_lu

Status in OpenERP Modules (addons):
  In Progress

Bug description:
  Hi,
  it's not me who found the error, see topic :
  http://www.openerp.com/forum/topic24218.html

  windows allinone v6.0.2 build with python25 :
  (I tested with windows openerp server build with python26, and it works, the problem here, I think, is that "with" is not recognized in python25)
  when l10n_lu module is installed with configurator, there is this error :

  Environment Information :
  System : Windows-32bit-SP1
  OS Name : nt
  Operating System Release :
  Operating System Version : 32bit
  Operating System Architecture : 32bit
  Operating System Locale : fr_BE.cp1252
  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 "C:\Program Files (x86)\OpenERP 6.0\Server\addons\base\res\res_config.py", line 167, in action_next
    File "C:\Program Files (x86)\OpenERP 6.0\Server\addons\account\installer.py", line 571, in execute
    File "C:\Program Files (x86)\OpenERP 6.0\Server\addons\base\res\res_config.py", line 397, in execute
    File "pooler.pyo", line 60, in restart_pool
    File "pooler.pyo", line 39, in get_db_and_pool
    File "addons\__init__.pyo", line 883, in load_modules
    File "addons\__init__.pyo", line 716, in load_module_graph
    File "addons\__init__.pyo", line 450, in register_class
    File "C:\Program Files (x86)\OpenERP 6.0\Server\addons\l10n_lu\__init__.py", line 22, in <module>
    File "C:\Program Files (x86)\OpenERP 6.0\Server\addons\l10n_lu\wizard\__init__.py", line 22, in <module>
    File "C:\Program Files (x86)\OpenERP 6.0\Server\addons\l10n_lu\wizard\print_vat.py", line 55
      with open(tmp_file, "r") as ofile:
              ^
  SyntaxError: invalid syntax

  bye


References