Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Jeevachaithanyan Sivanandan
Jeevachaithanyan Sivanandan

Posted on

     

odoo v14 and issues with requirements.txt

when you install odoo requirements.txt, you may get error as below

    UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 967: character maps to <undefined>    ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/89/ad/9388970542f82857ac2958b3eaddfad16caaf967cf8532e9486dedc69420/python-stdnum-1.8.tar.gz#sha256=3f42639cae75c0f6ba734eaa7391d411b7fdef868873503f7d2b2962fc3d71bd (from https://pypi.org/simple/python-stdnum/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.ERROR: Could not find a version that satisfies the requirement python-stdnum==1.8 (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.8.1, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.8.1, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20)ERROR: No matching distribution found for python-stdnum==1.8
Enter fullscreen modeExit fullscreen mode

the solution is change the versions of stdnum and psutil as below

python-stdnum==1.8.1psutil==5.6.7
Enter fullscreen modeExit fullscreen mode

another error could be

    import passlib.utils  File "C:\Python3810\lib\site-packages\passlib\utils\__init__.py", line 845, in <module>    from time import clock as timerImportError: cannot import name 'clock' from 'time' (unknown location)
Enter fullscreen modeExit fullscreen mode

so the solution is

change

passlib==1.7.2
Enter fullscreen modeExit fullscreen mode

you may get another error as

"AttributeError: module 'lxml.html.clean' has no attribute 'defs'"
Enter fullscreen modeExit fullscreen mode

and the solution is

pip uninstall lxml
pip install lxml==4.8.0

the final working requirements.txt for odoo v14 is

Babel==2.6.0; python_version <= '3.9'Babel==2.9.1; python_version > '3.9'  # (Jammy) 2.6.0 has issues with python 3.10chardet==3.0.4decorator==4.3.0docutils==0.14ebaysdk==2.1.5freezegun==0.3.11; python_version < '3.8'freezegun==0.3.15; python_version >= '3.8'gevent==1.1.2 ; sys_platform != 'win32' and python_version < '3.7'gevent==1.4.0 ; sys_platform == 'win32' and python_version < '3.7'gevent==1.5.0 ; python_version == '3.7'gevent==20.9.0 ; python_version > '3.7' and python_version <= '3.9'gevent==21.8.0 ; python_version > '3.9'  # (Jammy)greenlet==0.4.10 ; python_version < '3.7'greenlet==0.4.15 ; python_version == '3.7'greenlet==0.4.17 ; python_version > '3.7' and python_version <= '3.9'greenlet==1.1.2 ; python_version  > '3.9'  # (Jammy)idna==2.6Jinja2==2.10.1; python_version < '3.8'# bullseye version, focal patched 2.10Jinja2==2.11.2; python_version >= '3.8'libsass==0.17.0lxml==4.8.0Mako==1.0.7MarkupSafe==1.1.0num2words==0.5.6ofxparse==0.19; python_version <= '3.9'ofxparse==0.21; python_version > '3.9'  # (Jammy) ABC removed from collections in 3.10 but still used in ofxparse < 0.21passlib==1.7.2Pillow==5.4.1 ; python_version <= '3.7' and sys_platform != 'win32'Pillow==6.1.0 ; python_version <= '3.7' and sys_platform == 'win32'Pillow==8.1.1 ; python_version > '3.7'polib==1.1.0psutil==5.6.7psycopg2==2.7.7; sys_platform != 'win32' and python_version < '3.8'psycopg2==2.8.5; sys_platform == 'win32' or python_version >= '3.8'pydot==1.4.1python-ldap==3.1.0; sys_platform != 'win32'PyPDF2==1.26.0pyserial==3.4python-dateutil==2.7.3pytz==2019.1pyusb==1.0.2qrcode==6.1reportlab==3.5.13; python_version < '3.8'reportlab==3.5.55; python_version >= '3.8'requests==2.21.0; python_version <= '3.9'requests==2.25.1; python_version > '3.9'  # (Jammy) versions < 2.25 aren't compatible w/ urllib3 1.26. Bullseye = 2.25.1. min version = 2.22.0 (Focal)urllib3==1.26.5; python_version > '3.9'  # (Jammy) indirect / min version = 1.25.8 (Focal with security backports)zeep==3.2.0python-stdnum==1.8.1vobject==0.9.6.1Werkzeug==0.16.1 ; python_version <= '3.9'Werkzeug==2.0.2 ; python_version > '3.9'  # (Jammy)XlsxWriter==1.1.2xlwt==1.3.*xlrd==1.1.0; python_version < '3.8'xlrd==1.2.0; python_version >= '3.8'pypiwin32 ; sys_platform == 'win32'
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software Engineer / Frontend Developer / Full Stack Developer - writes about JavaScript, Php, Python and more
  • Location
    United Kingdom
  • Pronouns
    He/Him
  • Joined

More fromJeevachaithanyan Sivanandan

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp