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.
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
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
I'm really stuck here, what should I do??
Does anyone have an idea??