odoo 启动过程中遇到的问题
错误:
ImportError: No module named 'win32service'
解决办法:
pip3 install pypiwin32
错误:
ImportError: No module named 'PIL'
解决办法:
pip3 install Pillow
浏览器访问odoo出现错误:
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined (CSS样式错误)
如若出现上面的错误,意味着错误是来自于libsass库,执行如下代码即可:
pip3 install libsass
错误:
ImportError: No module named psycopg2
解决办法:
sudo apt-get install build-dep python-psycopg2
pip3 install psycopg2-binary
错误:
ImportError: No module named OpenSSL
解决办法:
pip3 install pyOpenSSL
错误
ImportError: cannot import name 'soft_unicode' from 'markupsafe'
解决办法:
pip3 install markupsafe==2.0.1
错误
ModuleNotFoundError: No module named 'werkzeug.posixemulation'
解决办法:
pip3 install Werkzeug==0.16.1 #Werkzeug 0.16.1
错误
ImportError: cannot import name 'clock' from 'time' (unknown location)
解决办法:
更新passlib,可以修改requirements.txt文件或者直接install
passlib==1.7.1; sys_platform != 'win32' and python_version < '3.8'
passlib==1.7.2; sys_platform == 'win32' or python_version >= '3.8'
or
pip3 install passlib==1.7.2