Skip to Content
Menu
This question has been flagged
2 Replies
10746 Views

kangxin@KANGXINdeMac-mini odoo-16.0 % pip3 install -r requirements.txt 

Ignoring freezegun: markers 'python_version < "3.8"' don't match your environment

Ignoring gevent: markers 'python_version == "3.7"' don't match your environment

Ignoring gevent: markers 'python_version > "3.7" and python_version <= "3.9"' don't match your environment

Ignoring gevent: markers 'python_version > "3.9" and python_version <= "3.10"' don't match your environment

Ignoring greenlet: markers 'python_version == "3.7"' don't match your environment

Ignoring greenlet: markers 'python_version > "3.7" and python_version <= "3.9"' don't match your environment

Ignoring greenlet: markers 'python_version > "3.9" and python_version <= "3.10"' don't match your environment

Ignoring Jinja2: markers 'python_version <= "3.10"' don't match your environment

Ignoring lxml: markers 'python_version <= "3.10"' don't match your environment

Ignoring MarkupSafe: markers 'python_version <= "3.10"' don't match your environment

Ignoring ofxparse: markers 'python_version <= "3.9"' don't match your environment

Ignoring Pillow: markers 'python_version <= "3.10"' don't match your environment

Ignoring psutil: markers 'python_version <= "3.10"' don't match your environment

Ignoring psycopg2: markers 'sys_platform != "win32" and python_version < "3.8"' don't match your environment

Ignoring psycopg2: markers 'sys_platform != "win32" and python_version >= "3.8" and python_version <= "3.10"' don't match your environment

Ignoring psycopg2: markers 'sys_platform == "win32" and python_version < "3.10"' don't match your environment

Ignoring PyPDF2: markers 'python_version <= "3.10"' don't match your environment

Ignoring pyusb: markers 'python_version <= "3.10"' don't match your environment

Ignoring reportlab: markers 'python_version <= "3.10"' don't match your environment

Ignoring Werkzeug: markers 'python_version <= "3.9"' don't match your environment

Ignoring xlrd: markers 'python_version < "3.8"' don't match your environment

Collecting Babel==2.9.1 (from -r requirements.txt (line 3))

  Using cached Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)

Collecting chardet==4.0.0 (from -r requirements.txt (line 4))

  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)

Collecting cryptography==3.4.8 (from -r requirements.txt (line 5))

  Using cached cryptography-3.4.8-cp36-abi3-macosx_11_0_arm64.whl (1.9 MB)

Collecting decorator==4.4.2 (from -r requirements.txt (line 6))

  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)

Collecting docutils==0.16 (from -r requirements.txt (line 7))

  Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)

Collecting ebaysdk==2.1.5 (from -r requirements.txt (line 8))

  Using cached ebaysdk-2.1.5.tar.gz (42 kB)

  Preparing metadata (setup.py) ... done

Collecting freezegun==0.3.15 (from -r requirements.txt (line 10))

  Using cached freezegun-0.3.15-py2.py3-none-any.whl (14 kB)

Collecting gevent==22.10.2 (from -r requirements.txt (line 14))

  Using cached gevent-22.10.2-cp311-cp311-macosx_10_9_universal2.whl (2.9 MB)

Collecting greenlet==2.0.2 (from -r requirements.txt (line 18))

  Using cached greenlet-2.0.2-cp311-cp311-macosx_10_9_universal2.whl (243 kB)

Collecting idna==2.10 (from -r requirements.txt (line 19))

  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)

Collecting Jinja2==3.1.2 (from -r requirements.txt (line 21))

  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)

Collecting libsass==0.20.1 (from -r requirements.txt (line 22))

  Using cached libsass-0.20.1.tar.gz (316 kB)

  Preparing metadata (setup.py) ... done

Collecting lxml==4.9.2 (from -r requirements.txt (line 24))

  Using cached lxml-4.9.2.tar.gz (3.7 MB)

  Preparing metadata (setup.py) ... done

Collecting MarkupSafe==2.1.2 (from -r requirements.txt (line 26))

  Using cached MarkupSafe-2.1.2-cp311-cp311-macosx_10_9_universal2.whl (17 kB)

Collecting num2words==0.5.9 (from -r requirements.txt (line 27))

  Using cached num2words-0.5.9-py3-none-any.whl (99 kB)

Collecting ofxparse==0.21 (from -r requirements.txt (line 29))

  Using cached ofxparse-0.21.tar.gz (53 kB)

  Preparing metadata (setup.py) ... done

Collecting passlib==1.7.4 (from -r requirements.txt (line 30))

  Using cached passlib-1.7.4-py2.py3-none-any.whl (525 kB)

Collecting Pillow==9.4.0 (from -r requirements.txt (line 32))

  Using cached Pillow-9.4.0-cp311-cp311-macosx_11_0_arm64.whl (3.0 MB)

Collecting polib==1.1.0 (from -r requirements.txt (line 33))

  Using cached polib-1.1.0-py2.py3-none-any.whl (25 kB)

Collecting psutil==5.9.4 (from -r requirements.txt (line 35))

  Using cached psutil-5.9.4-cp38-abi3-macosx_11_0_arm64.whl (244 kB)

Collecting psycopg2==2.9.5 (from -r requirements.txt (line 39))

  Using cached psycopg2-2.9.5.tar.gz (384 kB)

  Preparing metadata (setup.py) ... error

  error: subprocess-exited-with-error

  

  × python setup.py egg_info did not run successfully.

  exit code: 1

  ╰─> [25 lines of output]

      /opt/homebrew/lib/python3.11/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.

        warnings.warn(msg, warning_class)

      running egg_info

      creating /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info

      writing /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/PKG-INFO

      writing dependency_links to /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/dependency_links.txt

      writing top-level names to /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/top_level.txt

      writing manifest file '/private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/SOURCES.txt'

      

      Error: pg_config executable not found.

      

      pg_config is required to build psycopg2 from source.  Please add the directory

      containing pg_config to the $PATH or specify the full executable path with the

      option:

      

          python setup.py build_ext --pg-config /path/to/pg_config build ...

      

      or with the pg_config option in 'setup.cfg'.

      

      If you prefer to avoid building psycopg2 from source, please install the PyPI

      'psycopg2-binary' package instead.

      

      For further information please check the 'doc/src/install.rst' file (also at

      ).

      

      [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed


× Encountered error while generating package metadata.

╰─> See above for output.


note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

Avatar
Discard
Best Answer

Hi, Use correct libpng library and Install Dependencies.

sudo apt-get install git python3 python3-pip python3-cffi build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng-dev libjpeg-dev gdebi -y

echo -e "\n---- Install python packages/requirements ----"

sudo -H pip3 install -r https://github.com/odoo/odoo/blob/17.0/requirements.txt




Avatar
Discard
Best Answer

Hello,

Please install libpq-dev using the below command before install the requirements.

sudo apt install libpq-dev


Avatar
Discard
Related Posts Replies Views Activity
1
May 24
1304
1
May 24
1649
2
Sep 16
34904
2
Mar 15
5061
2
Mar 15
6381