web-services:[18]: AttributeError: 'NoneType' object has no attribute 'split'

Bug #495036 reported by GEM
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
High
Unassigned

Bug Description

crash server with sources of this morning when i create a new databse, built windows personal
see log server :

[2009-12-10 14:22:14,766] INFO:orm:storing computed values of fields.function 'menus_by_module'
[2009-12-10 14:22:14,875] INFO:orm:storing computed values of fields.function 'reports_by_module'
[2009-12-10 14:22:14,963] INFO:orm:storing computed values of fields.function 'views_by_module'
[2009-12-10 14:22:15,052] INFO:init:module base: loading base_data.xml
[2009-12-10 14:22:15,983] INFO:init:module base: loading base_menu.xml
[2009-12-10 14:22:16,055] INFO:init:module base: loading security/base_security.xml
[2009-12-10 14:22:16,138] INFO:init:module base: loading res/res_security.xml
[2009-12-10 14:22:16,157] INFO:init:module base: loading maintenance/maintenance_security.xml
[2009-12-10 14:22:16,171] INFO:init:module base: loading base_update.xml
[2009-12-10 14:22:16,280] INFO:init:module base: loading ir/wizard/wizard_menu_view.xml
[2009-12-10 14:22:16,305] INFO:init:module base: loading ir/ir.xml
[2009-12-10 14:22:17,328] INFO:init:module base: loading ir/workflow/workflow_view.xml
[2009-12-10 14:22:17,506] INFO:init:module base: loading module/module_wizard.xml
[2009-12-10 14:22:17,615] INFO:init:module base: loading module/module_view.xml
[2009-12-10 14:22:17,779] INFO:init:module base: loading module/module_data.xml
[2009-12-10 14:22:17,795] INFO:init:module base: loading module/module_report.xml
[2009-12-10 14:22:17,809] INFO:init:module base: loading res/res_request_view.xml
[2009-12-10 14:22:17,905] INFO:init:module base: loading res/res_lang_view.xml
[2009-12-10 14:22:17,944] INFO:init:module base: loading res/partner/partner_report.xml
[2009-12-10 14:22:17,956] INFO:init:module base: loading res/partner/partner_view.xml
[2009-12-10 14:22:18,348] INFO:init:module base: loading res/partner/partner_wizard.xml
[2009-12-10 14:22:18,364] INFO:init:module base: loading res/bank_view.xml
[2009-12-10 14:22:18,401] INFO:init:module base: loading res/country_view.xml
[2009-12-10 14:22:18,477] INFO:init:module base: loading res/res_currency_view.xml
[2009-12-10 14:22:18,515] INFO:init:module base: loading res/partner/crm_view.xml
[2009-12-10 14:22:18,634] INFO:init:module base: loading res/partner/partner_data.xml
[2009-12-10 14:22:18,680] INFO:init:module base: loading res/ir_property_view.xml
[2009-12-10 14:22:18,736] INFO:init:module base: loading security/base_security.xml
[2009-12-10 14:22:18,799] INFO:init:module base: loading maintenance/maintenance_view.xml
[2009-12-10 14:22:18,865] INFO:init:module base: loading security/ir.model.access.csv
[2009-12-10 14:22:19,581] INFO:init:module base: loading base_demo.xml
[2009-12-10 14:22:19,592] INFO:init:module base: loading res/partner/partner_demo.xml
[2009-12-10 14:22:19,887] INFO:init:module base: loading res/partner/crm_demo.xml
[2009-12-10 14:22:20,371] INFO:init:updating modules list
[2009-12-10 14:22:20,375] INFO:init:module base: loading objects
[2009-12-10 14:22:20,453] INFO:init:module base_setup: loading objects
[2009-12-10 14:22:20,454] INFO:init:module base_setup: creating or updating database tables
[2009-12-10 14:22:20,457] INFO:init:module base_setup: loading base_setup_data.xml
[2009-12-10 14:22:20,474] INFO:init:module base_setup: loading security/ir.model.access.csv
[2009-12-10 14:22:20,476] INFO:init:module base_setup: loading base_setup_wizard.xml
[2009-12-10 14:22:20,489] INFO:init:module base_setup: loading base_setup_demo.xml
[2009-12-10 14:22:20,569] INFO:init:[01]: Assertions report:
[2009-12-10 14:22:20,569] INFO:init:[02]: Level success failed
[2009-12-10 14:22:20,569] INFO:init:[03]: error 1 0
[2009-12-10 14:22:20,569] INFO:init:[04]: total 1 0
[2009-12-10 14:22:20,569] INFO:init:[05]: end of report (1 assertion(s) checked)
[2009-12-10 14:22:20,582] INFO:i18n:module base: loading translation file for language fr_FR
[2009-12-10 14:22:42,144] ERROR:web-services:[01]:
[2009-12-10 14:22:42,144] ERROR:web-services:[02]: Environment Information :
[2009-12-10 14:22:42,144] ERROR:web-services:[03]: System : Windows-32bit-SP2
[2009-12-10 14:22:42,145] ERROR:web-services:[04]: OS Name : nt
[2009-12-10 14:22:42,145] ERROR:web-services:[05]: Operating System Release :
[2009-12-10 14:22:42,145] ERROR:web-services:[06]: Operating System Version : 32bit
[2009-12-10 14:22:42,145] ERROR:web-services:[07]: Operating System Architecture : 32bit
[2009-12-10 14:22:42,145] ERROR:web-services:[08]: Operating System Locale : fr_FR.cp1252
[2009-12-10 14:22:42,145] ERROR:web-services:[09]: Python Version : 2.5.2
[2009-12-10 14:22:42,145] ERROR:web-services:[10]: OpenERP-Server Version : 5.0.7
[2009-12-10 14:22:42,147] ERROR:web-services:[11]: Last revision No. & ID :
[2009-12-10 14:22:42,147] ERROR:web-services:[12]: CREATE DATABASE
[2009-12-10 14:22:42,147] ERROR:web-services:[13]: Traceback (most recent call last):
[2009-12-10 14:22:42,147] ERROR:web-services:[14]: File "service\web_services.pyo", line 105, in __call__
[2009-12-10 14:22:42,147] ERROR:web-services:[15]: File "d:\OpenERP AllInOne\Server\addons\base\module\module.py", line 474, in update_translations
[2009-12-10 14:22:42,147] ERROR:web-services:[16]: File "tools\translate.pyo", line 603, in trans_load
[2009-12-10 14:22:42,147] ERROR:web-services:[17]: File "tools\translate.pyo", line 693, in trans_load_data
[2009-12-10 14:22:42,147] ERROR:web-services:[18]: AttributeError: 'NoneType' object has no attribute 'split'

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello GEM,

We are unable to meet to this error.

Tell us the flow you followed,the modules and profile you installed.

Thank you.

Revision history for this message
Carlos Vásquez (ClearCorp) (cv.clearcorp) wrote :

I am having the same error.

I am doing a clean install from bzr (last night, December 9th) over an Ubuntu Server 8.04.

I checked my locales and I have es_ES.UTF-8 correctly installed, but if I want to create an Spanish database, or translate an English one to Spanish I get this error:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 653, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 633, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/wizard/wizard_module_lang_install.py", line 54, in _lang_install
    modobj.update_translations(cr, uid, mids, lang)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/module.py", line 474, in update_translations
    tools.trans_load(cr.dbname, f, lang, verbose=False)
  File "/usr/lib/python2.5/site-packages/openerp-server/tools/translate.py", line 603, in trans_load
    r = trans_load_data(db_name, fileobj, fileformat, lang, strict=strict, verbose=verbose)
  File "/usr/lib/python2.5/site-packages/openerp-server/tools/translate.py", line 693, in trans_load_data
    ('model', '=', dic['name'].split(',')[0]),
AttributeError: 'NoneType' object has no attribute 'split'

The error occurs when OpenERP is loading the translation file for the base module.

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote : Re: [Bug 495036] Re: web-services:[18]: AttributeError: 'NoneType' object has no attribute 'split'
Download full text (8.4 KiB)

Hello, I confirm I have since error since yesterday po's file
translations synchronization,
this with Spanish installed but didn't happened with only English or French
for at least.

Crap, we just tested on two different servers:
- one failed with that bug
- one with Spanish locale passed

But still please do test because it might be a blocker regression for 5.0.7
and Spanish...

2009/12/10 Carlos Vásquez <email address hidden>

> I am having the same error.
>
> I am doing a clean install from bzr (last night, December 9th) over an
> Ubuntu Server 8.04.
>
> I checked my locales and I have es_ES.UTF-8 correctly installed, but if
> I want to create an Spanish database, or translate an English one to
> Spanish I get this error:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line
> 244, in dispatch
> result = LocalService(service_name)(method, *params)
> File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73,
> in __call__
> return getattr(self, method)(*params)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py",
> line 653, in execute
> return self._execute(db, uid, wiz_id, datas, action, context)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py",
> line 633, in _execute
> return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
> File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py",
> line 177, in execute
> res = self.execute_cr(cr, uid, data, state, context)
> File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py",
> line 73, in execute_cr
> action_res = action(self, cr, uid, data, context)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/wizard/wizard_module_lang_install.py",
> line 54, in _lang_install
> modobj.update_translations(cr, uid, mids, lang)
> File
> "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/module.py",
> line 474, in update_translations
> tools.trans_load(cr.dbname, f, lang, verbose=False)
> File "/usr/lib/python2.5/site-packages/openerp-server/tools/translate.py",
> line 603, in trans_load
> r = trans_load_data(db_name, fileobj, fileformat, lang, strict=strict,
> verbose=verbose)
> File "/usr/lib/python2.5/site-packages/openerp-server/tools/translate.py",
> line 693, in trans_load_data
> ('model', '=', dic['name'].split(',')[0]),
> AttributeError: 'NoneType' object has no attribute 'split'
>
>
> The error occurs when OpenERP is loading the translation file for the base
> module.
>
> --
> web-services:[18]: AttributeError: 'NoneType' object has no attribute
> 'split'
> https://bugs.launchpad.net/bugs/495036
> You received this bug notification because you are subscribed to
> OpenObject Server.
>
> Status in OpenObject Server: New
>
> Bug description:
> crash server with sources of this morning when i create a new databse,
> built windows personal
> see log server :
>
> [2009-12-10 14:22:14,766] INFO:orm:storing computed values of
> fields.function 'menus_by_module'
> [2009-12-10 14:22:14,875] INFO:orm:storing computed values of
> fields.funct...

Read more...

Changed in openobject-server:
importance: Undecided → High
milestone: none → 5.0.7
Revision history for this message
GEM (nimp3) wrote :

I don't have test to create a database in english, but for me the error comes when I create a database in french

Revision history for this message
GEM (nimp3) wrote : Re: [Bug 495036] Re: web-services:[18]: AttributeError: 'NoneType' object has no attribute 'split'
Download full text (6.8 KiB)

Hi,
thanks for the speed answer
if you want to test my built allinone for windows (vista) with sources dated of this morning you can download it here :
http://dl.free.fr/pdcO1gb84
process to build (I use the script with automatic update of sources), see this topic :
http://www.openobject.com/forum/topic12184.html

error comes when i want to create a (first or other) new database with french language
hope this can help
bye

> Message du 10/12/09 à 16h25
> De : "Jay  (Open ERP)" <email address hidden>
> A : <email address hidden>
> Copie à :
> Objet : [Bug 495036] Re: web-services:[18]: AttributeError: 'NoneType' object has no attribute 'split'
>
>
> Hello GEM,
>
> We are unable to meet to this error.
>
> Tell us the flow you followed,the modules and profile you installed.
>
> Thank you.
>
> --
> web-services:[18]: AttributeError: 'NoneType' object has no attribute 'split'
> https://bugs.launchpad.net/bugs/495036
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in OpenObject Server: New
>
> Bug description:
> crash server with sources of this morning when i create a new databse, built windows personal
> see log server :
>
> [2009-12-10 14:22:14,766] INFO:orm:storing computed values of fields.function 'menus_by_module'
> [2009-12-10 14:22:14,875] INFO:orm:storing computed values of fields.function 'reports_by_module'
> [2009-12-10 14:22:14,963] INFO:orm:storing computed values of fields.function 'views_by_module'
> [2009-12-10 14:22:15,052] INFO:init:module base: loading base_data.xml
> [2009-12-10 14:22:15,983] INFO:init:module base: loading base_menu.xml
> [2009-12-10 14:22:16,055] INFO:init:module base: loading security/base_security.xml
> [2009-12-10 14:22:16,138] INFO:init:module base: loading res/res_security.xml
> [2009-12-10 14:22:16,157] INFO:init:module base: loading maintenance/maintenance_security.xml
> [2009-12-10 14:22:16,171] INFO:init:module base: loading base_update.xml
> [2009-12-10 14:22:16,280] INFO:init:module base: loading ir/wizard/wizard_menu_view.xml
> [2009-12-10 14:22:16,305] INFO:init:module base: loading ir/ir.xml
> [2009-12-10 14:22:17,328] INFO:init:module base: loading ir/workflow/workflow_view.xml
> [2009-12-10 14:22:17,506] INFO:init:module base: loading module/module_wizard.xml
> [2009-12-10 14:22:17,615] INFO:init:module base: loading module/module_view.xml
> [2009-12-10 14:22:17,779] INFO:init:module base: loading module/module_data.xml
> [2009-12-10 14:22:17,795] INFO:init:module base: loading module/module_report.xml
> [2009-12-10 14:22:17,809] INFO:init:module base: loading res/res_request_view.xml
> [2009-12-10 14:22:17,905] INFO:init:module base: loading res/res_lang_view.xml
> [2009-12-10 14:22:17,944] INFO:init:module base: loading res/partner/partner_report.xml
> [2009-12-10 14:22:17,956] INFO:init:module base: loading res/partner/partner_view.xml
> [2009-12-10 14:22:18,348] INFO:init:module base: loading res/partner/partner_wizard.xml
> [2009-12-10 14:22:18,364] INFO:init:module base: loading res/bank_view.xml
> [2009-12-10 14:22:18,401] INFO:init:module base: loading res/country_view.xml
> [2009-12-10 14:22:18,477] INFO:init:module base: loading res/res...

Read more...

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Hello guys, I tested with new revision again from yesterday and was unable to reproduce the issue anymore. Can you please confirm that the issue is gone with today's revisions?

Revision history for this message
GEM (nimp3) wrote :

Hi Raphaël,
it's ok for me too with a database in french (built of 2009-12-16 14h30)
sorry but I couldn't test more quickly (I saw your mail today)
The bug can be closed.
Thanks.
Drink a little pina colada for me.
Adeus

Changed in openobject-server:
status: New → Fix Released
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.