Odoo Help


'module' object has no attribute 'tools'

Dheeraj Kumar Saini
on 3/27/14, 4:14 AM 3,662 views

I try to run full openerp into eclipse. My system configuration Window 8 64 bit Python 2.7 32 bit

I downlaod latest openerp source code openerp-7.0-latest.tar and I imported source code in eclipse. And I download so many library.

and now I am running openerp-server file and I am getting error

Traceback (most recent call last): File "C:\wamp\www\openerp-7.0\openerp-server", line 2, in <module>

import openerp

File "C:\wamp\www\openerp-7.0\openerp__init__.py", line 33, in <module>

import tools

File "C:\wamp\www\openerp-7.0\openerp\tools__init__.py", line 26, in <module>

from convert import *

File "C:\wamp\www\openerp-7.0\openerp\tools\convert.py", line 49, in <module>

import openerp.pooler as pooler

File "C:\wamp\www\openerp-7.0\openerp\pooler.py", line 28, in <module>

from openerp.modules.registry import RegistryManager

File "C:\wamp\www\openerp-7.0\openerp\modules__init__.py", line 27, in <module>

from . import db, graph, loading, migration, module, registry

File "C:\wamp\www\openerp-7.0\openerp\modules\graph.py", line 32, in <module>

import openerp.osv as osv

File "C:\wamp\www\openerp-7.0\openerp\osv__init__.py", line 22, in <module>

import osv

File "C:\wamp\www\openerp-7.0\openerp\osv\osv.py", line 34, in <module>

from openerp.osv.orm import MetaModel, Model, TransientModel, AbstractModel

File "C:\wamp\www\openerp-7.0\openerp\osv\orm.py", line 62, in <module>

import fields

File "C:\wamp\www\openerp-7.0\openerp\osv\fields.py", line 47, in <module>

import openerp.tools as tools

AttributeError: 'module' object has no attribute 'tools'

I'm running trunk in Ubuntu, but having the same problem. It won't recognize "import openerp.tools as tools" in eclipse, but the code (apparently at least) runs fine. Another problem ist that many functions referenced as tools are actually under openerp.tools.misc and due to my inexperience I don't know if that is normal: for example in the case of openerp.tools.misc.file_open can I reference it as tools.file_open as would be the case in question, or do I have a referencing problem? Thanks for the help.

Eloi Bermejo
on 4/3/14, 12:48 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 3/27/14, 4:14 AM
Seen: 3662 times
Last updated: 3/16/15, 8:10 AM