Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

attributeerror when creating a database at beginning [Closed]

By
Pascal Tremblay
on 9/20/14, 6:44 AM 906 views

The Question has been closed for reason: off-topic or not relevant

by
Serpent Consulting Services Pvt. Ltd.
on 09/21/2014 11:50:23

Hello everybody, 

It's my first post here. 

I'm now able to log in localhost:8069 on my mac. Very hot. But it's just the beginning.

When I create a new database, i get this error :

OpenERP Server Error

Traceback (most recent call last):

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 499, in _handle_exception return super(JsonRequest, self)._handle_exception(exception)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 516, in dispatch result = self._call_function(**self.params)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 283, in _call_function return self.endpoint(*args, **kwargs)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 732, in __call__ return self.method(*args, **kw)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 375, in response_wrap response = f(*args, **kw)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/addons/web/controllers/main.py", line 692, in create request.session.authenticate(params['db_name'], 'admin', params['create_admin_pwd'])

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 881, in authenticate uid = dispatch_rpc('common', 'authenticate', [db, login, password, env])

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/http.py", line 99, in dispatch_rpc result = dispatch(method, params)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/service/common.py", line 31, in dispatch return fn(*params)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/service/common.py", line 42, in exp_authenticate res_users = openerp.registry(db)['res.users']

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/__init__.py", line 64, in registry return modules.registry.RegistryManager.get(database_name)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/modules/registry.py", line 293, in get update_module)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/modules/registry.py", line 324, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/modules/loading.py", line 296, in load_modules graph.add_module(cr, 'base', force)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/modules/graph.py", line 88, in add_module self.add_modules(cr, [module], force)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/modules/graph.py", line 129, in add_modules self.update_from_db(cr)

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/modules/graph.py", line 81, in update_from_db additional_data.update((x['name'], x) for x in cr.dictfetchall())

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/sql_db.py", line 203, in dictfetchall return map(self.__build_dict, self._obj.fetchall()) F

ile "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/sql_db.py", line 196, in __build_dict return {d.name: row[i] for i, d in enumerate(self._obj.description)}

File "/Users/Flooder/Library/Python/2.7/lib/python/site-packages/openerp-8.0_990d05e-py2.7.egg/openerp/sql_db.py", line 196, in <dictcomp> return {d.name: row[i] for i, d in enumerate(self._obj.description)}

AttributeError: 'tuple' object has no attribute 'name'

 

Then, I click ok. The database seems to be created even with this error.

I refresh my page localhost:8069 and I can choose the new database. But I can't enter in Odoo with this new database. My browser talk about a loop error...

An idea for me please?

 

 

0

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 9/21/14, 7:22 AM

This problem is solve. 

I uninstall Python and reinstall it. Probably I missed some dependencies.

 

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/20/14, 6:44 AM
Seen: 906 times
Last updated: 3/16/15, 8:10 AM