Skip to Content
Menu
This question has been flagged

Hi there, first time installation in windows 10 source install (using Python 3.8) and getting the error below:


C:\odoo>py -3.8 odoo-bin -r odoo -w odoo --addons-path=addons -d odoo 
Traceback (most recent call last):
File "odoo-bin", line 5, in <module>
import odoo
File "C:\odoo\odoo\__init__.py", line 112, in <module>
from . import modules
File "C:\odoo\odoo\modules\__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry
File "C:\odoo\odoo\modules\graph.py", line 10, in <module>
import odoo.tools as tools
File "C:\odoo\odoo\tools\__init__.py", line 8, in <module>
from .config import config
File "C:\odoo\odoo\tools\config.py", line 19, in <module>
from passlib.context import CryptContext
File "C:\Program Files\Python38\lib\site-packages\passlib\context.py", line 20, in <module>
from passlib.registry import get_crypt_handler, _validate_handler_name
File "C:\Program Files\Python38\lib\site-packages\passlib\registry.py", line 11, in <module>
from passlib.utils import is_crypt_handler
File "C:\Program Files\Python38\lib\site-packages\passlib\utils\__init__.py", line 1428, in <module>
from time import clock as tick
ImportError: cannot import name 'clock' from 'time' (unknown location)

Avatar
Discard
Best Answer

I have the same issue using python 3.8.3 for odoo 13

  • passlib 1.7.1

Resolved after upgrade to 

  • passlib 1.7.2
Avatar
Discard
Best Answer

Hi,

Odoo10 is supposed to run in Python 2. Using the Python 3, you can run v11 and above.

Thanks

Avatar
Discard
Author Best Answer

Hi Niyas,

Thank you for your answer. 

I was following the installation guide on the official Odoo website, and there they it says Odoo requires Python 3.6 or later.

The version that I am trying to install the latest version available for download which is version 13.


Edited: The solution was to install Python 3.6, after that it runs perfectly. Looks like Odoo is not prepared to run other versions of python as they advertise in their website. :(


Avatar
Discard

haven't solved it yet. at least i can confirm, windows, python 3.8.10 generating same error :)

Related Posts Replies Views Activity
2
Sep 20
12042
4
Feb 20
16462
6
Jun 24
42486
0
Mar 22
3507
2
Jan 20
24236