Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Requirement already satisfied: ansible in ./.local/lib/python3.8/site-packages (6.7.0)
- Collecting psycopg2-binary
- Using cached https://files.pythonhosted.org/packages/98/3e/05ab0922422c91ca0ecb5939a100f8dc2b5d15f5978433beadc87c5329bf/psycopg2-binary-2.9.6.tar.gz
- Requirement already satisfied: ansible-core~=2.13.7 in ./.local/lib/python3.8/site-packages (from ansible) (2.13.8)
- Requirement already satisfied: cryptography in /usr/lib64/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (3.2.1)
- Requirement already satisfied: PyYAML>=5.1 in /usr/lib64/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (5.4.1)
- Requirement already satisfied: resolvelib<0.9.0,>=0.5.3 in ./.local/lib/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (0.8.1)
- Requirement already satisfied: packaging in ./.local/lib/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (23.0)
- Requirement already satisfied: jinja2>=3.0.0 in /usr/lib/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (3.0.3)
- Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.8/site-packages (from cryptography->ansible-core~=2.13.7->ansible) (1.15.0)
- Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib64/python3.8/site-packages (from cryptography->ansible-core~=2.13.7->ansible) (1.13.2)
- Requirement already satisfied: MarkupSafe>=2.0 in /usr/lib64/python3.8/site-packages (from jinja2>=3.0.0->ansible-core~=2.13.7->ansible) (2.1.1)
- Requirement already satisfied: pycparser in /usr/lib/python3.8/site-packages (from cffi!=1.11.3,>=1.8->cryptography->ansible-core~=2.13.7->ansible) (2.14)
- Installing collected packages: psycopg2-binary
- Running setup.py install for psycopg2-binary ... error
- Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-s2u8rwtg/psycopg2-binary/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-f3huu4ls/install-record.txt --single-version-externally-managed --compile --user --prefix=:
- running install
- running build
- running build_py
- creating build
- creating build/lib.linux-x86_64-3.8
- creating build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/errors.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
- running build_ext
- building 'psycopg2._psycopg' extension
- creating build/temp.linux-x86_64-3.8
- creating build/temp.linux-x86_64-3.8/psycopg
- gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_VERSION=2.9.6 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140005 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/usr/include/python3.8 -I. -I/usr/pgsql-14/include -I/usr/pgsql-14/include/server -I/usr/include/libxml2 -I/usr/include -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement
- In file included from psycopg/psycopgmodule.c:28:
- ./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory
- #include <Python.h>
- ^~~~~~~~~~
- compilation terminated.
- It appears you are missing some prerequisite to build the package from source.
- You may install a binary package by installing 'psycopg2-binary' from PyPI.
- If you want to install psycopg2 from source, please install the packages
- required for the build and try again.
- For further information please check the 'doc/src/install.rst' file (also at
- <https://www.psycopg.org/docs/install.html>).
- error: command 'gcc' failed with exit status 1
- ----------------------------------------
- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-s2u8rwtg/psycopg2-binary/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-f3huu4ls/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-s2u8rwtg/psycopg2-binary/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement