← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 624177] Re: [5.0.12] Module base - __terp__.py when endline \r\n WRONG

 

I experienced the same problem with OpenERP 5.0.14 on Centos 5.5.

-- 
[5.0.12] Module base - __terp__.py when endline \r\n WRONG
https://bugs.launchpad.net/bugs/624177
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: New

Bug description:
When the file has __terp__.py new lines with the format "\r\n" (Windows)
Processing this file fails
That is, as if there were no module

I remove the try-except in the line of process these file for generate traceback.

[2010-08-25 12:31:03,832] ERROR:web-services:[01]: 
[2010-08-25 12:31:03,832] ERROR:web-services:[02]: Environment Information : 
[2010-08-25 12:31:03,833] ERROR:web-services:[03]: System : Linux-2.6.31-19-generic-i686-with-Ubuntu-9.10-karmic
[2010-08-25 12:31:03,833] ERROR:web-services:[04]: OS Name : posix
[2010-08-25 12:31:03,833] ERROR:web-services:[05]: Distributor ID:	Ubuntu
[2010-08-25 12:31:03,833] ERROR:web-services:[06]: Description:	Ubuntu 9.10
[2010-08-25 12:31:03,833] ERROR:web-services:[07]: Release:	9.10
[2010-08-25 12:31:03,833] ERROR:web-services:[08]: Codename:	karmic
[2010-08-25 12:31:03,833] ERROR:web-services:[09]: Operating System Release : 2.6.31-19-generic
[2010-08-25 12:31:03,834] ERROR:web-services:[10]: Operating System Version : #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010
[2010-08-25 12:31:03,834] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-08-25 12:31:03,834] ERROR:web-services:[12]: Operating System Locale : es_ES.UTF8
[2010-08-25 12:31:03,834] ERROR:web-services:[13]: Python Version : 2.5.4
[2010-08-25 12:31:03,834] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.12
[2010-08-25 12:31:03,834] ERROR:web-services:[15]: Last revision No. & ID : 
[2010-08-25 12:31:03,834] ERROR:web-services:[16]: Exception in call: Traceback (most recent call last):
[2010-08-25 12:31:03,834] ERROR:web-services:[17]:   File "/openerp-server/bin/wizard/__init__.py", line 74, in execute_cr
[2010-08-25 12:31:03,834] ERROR:web-services:[18]:     action_res = action(self, cr, uid, data, context)
[2010-08-25 12:31:03,834] ERROR:web-services:[19]:   File "/openerp-server/bin/addons/base/module/wizard/wizard_update_module.py", line 50, in _update_module
[2010-08-25 12:31:03,835] ERROR:web-services:[20]:     update, add = pooler.get_pool(cr.dbname).get('ir.module.module').update_list(cr, uid)
[2010-08-25 12:31:03,835] ERROR:web-services:[21]:   File "/openerp-server/bin/addons/base/module/module.py", line 331, in update_list
[2010-08-25 12:31:03,835] ERROR:web-services:[22]:     terp = self.get_module_info(mod_name)
[2010-08-25 12:31:03,835] ERROR:web-services:[23]:   File "/openerp-server/bin/addons/base/module/module.py", line 102, in get_module_info
[2010-08-25 12:31:03,835] ERROR:web-services:[24]:     info = eval(data)
[2010-08-25 12:31:03,835] ERROR:web-services:[25]:   File "<string>", line 1
[2010-08-25 12:31:03,835] ERROR:web-services:[26]:     {
^2010-08-25 12:31:03,835] ERROR:web-services:[27]:     
[2010-08-25 12:31:03,835] ERROR:web-services:[28]: SyntaxError: invalid syntax