Skip to Content
Menu
This question has been flagged
3 Replies
14673 Views

Traceback (most recent call last):

  File "./odoo-bin", line 5, in <module>

    __import__('pkg_resources').declare_namespace('odoo.addons')

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2218, in declare_namespace

    declare_namespace(parent)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2234, in declare_namespace

    _handle_ns(packageName, path_item)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2201, in _handle_ns

    loader.load_module(packageName)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py", line 246, in load_module

    mod = imp.load_module(fullname, self.file, self.filename, self.etc)

  File "/Users/lin/odoo/odoo/__init__.py", line 60, in <module>

    import modules

  File "/Users/lin/odoo/odoo/modules/__init__.py", line 8, in <module>

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

  File "/Users/lin/odoo/odoo/modules/graph.py", line 13, in <module>

    import odoo.osv as osv

  File "/Users/lin/odoo/odoo/osv/__init__.py", line 4, in <module>

    import osv

  File "/Users/lin/odoo/odoo/osv/osv.py", line 4, in <module>

    from ..exceptions import except_orm

  File "/Users/lin/odoo/odoo/exceptions.py", line 15, in <module>

    from tools.func import frame_codeinfo

  File "/Users/lin/odoo/odoo/tools/__init__.py", line 8, in <module>

    from misc import *

  File "/Users/lin/odoo/odoo/tools/misc.py", line 16, in <module>

    import passlib.utils


-----when i start odoo report this.

Avatar
Discard

Looks like the most important lines at the end of your traceback are missing. Please edit your post and add the complete traceback.

Best Answer

Try to install requirements. Go to project's directory and


pip install -r requirements.txt
Avatar
Discard
Best Answer

Method 1: 

https://stackoverflow.com/questions/56264091/traceback-most-recent-call-last-file-odoo-bin-line-5-in-module/68245530#68245530

Method 2: 

If you use multi version of python
Check version:
python --version
e.g For me: Python 3.7.7
py -3.7 -m pip install -r requirements.txt

Avatar
Discard
Best Answer

Be careful not to install Python 3.8, because ODOO V 13 works only on Python 3.7.4.


I got this issue and it takes long time to understand.


Avatar
Discard