Skip to Content
Menu
This question has been flagged
4 Replies
7108 Views

I installed odoo11, python 3.8 and JetBrains PyCharm 2019.2.4, also I installed requirements.txt.

i'm using windows10

when I tried to run odoo from bycharm I got the following error:

_______________________________________________________

File "E:/sh/source/odoo-bin", line 5, in <module>
import odoo
File "E:\sh\source\odoo\__init__.py", line 84, in <module>
from . import modules
File "E:\sh\source\odoo\modules\__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry
File "E:\sh\source\odoo\modules\graph.py", line 10, in <module>
import odoo.tools as tools
File "E:\sh\source\odoo\tools\__init__.py", line 8, in <module>
from .config import config
File "E:\sh\source\odoo\tools\config.py", line 17, in <module>
from passlib.context import CryptContext
File "C:\Users\Ala\AppData\Local\Programs\Python\Python38-32\lib\site-packages\passlib\context.py", line 20, in <module>
from passlib.registry import get_crypt_handler, _validate_handler_name
File "C:\Users\Ala\AppData\Local\Programs\Python\Python38-32\lib\site-packages\passlib\registry.py", line 11, in <module>
from passlib.utils import is_crypt_handler
File "C:\Users\Ala\AppData\Local\Programs\Python\Python38-32\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)

Process finished with exit code 1

_______________________________________________________  

In fact, for some requirements, I installed other versions than the ones specified in the requirements.txt file, but they are higher than the specified ones.

I couldn't figure out the problem, whether it's an installation error, incompatibility problem or another thing.

I'm just a beginner and I need your kind help.


Avatar
Discard

As per error log, The problem caused because of passlib python library. it's prefer to install the version in the requirements file.

try to install passlib 1.6.5

Author

I tried the following command:

python -m pip install passlib 1.6.5

but I got this:

Requirement already satisfied: passlib in c:\users\ala\appdata\local\programs\python\python38-32\lib\site-packages (1.6.5)

ERROR: Could not find a version that satisfies the requirement 1.6.5 (from versions: none)

ERROR: No matching distribution found for 1.6.5

Author

I'm really stuck here, what should I do??

Does anyone have an idea??

Best Answer

I have installed python 3.8 in my PC and I installed the python requirement for odoo11 and when I tried to run odoo I got the same error your are facing so I googled it and found that time.clock() is removed in python 3.8.

I have uninstalled passlib==1.6.5 and installed the latest version 1.7.2 and the error is disappeared 

python -m pip uninstall  passlib

python -m pip install  passlib

but I got another error related to psycopg2 so I have uninstalled the version 2.8.3 and installed the new version 2.8.4 and run the Odoo and it's working.

 So what have to do is: 

python -m pip uninstall  passlib

python -m pip install  passlib

and then 

python -m pip uninstall   psycopg2 

python -m pip install   psycopg2 


By the way, The Pillow lib version in requirements doesn't support python 3.8 so you have to install the latest version 6.2.1   

python -m pip uninstall   Pillow 

python -m pip install   Pillow 


Please try it and let me the results.


Avatar
Discard
Related Posts Replies Views Activity
8
Dec 23
32671
3
May 21
3955
1
Jul 19
7599
6
Feb 19
7453
1
Apr 18
12421