Advertisement
yudjinDegtyarev

Untitled

Apr 4th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1. Requirement already satisfied: ansible in ./.local/lib/python3.8/site-packages (6.7.0)
  2. Collecting psycopg2-binary
  3. Using cached https://files.pythonhosted.org/packages/98/3e/05ab0922422c91ca0ecb5939a100f8dc2b5d15f5978433beadc87c5329bf/psycopg2-binary-2.9.6.tar.gz
  4. Requirement already satisfied: ansible-core~=2.13.7 in ./.local/lib/python3.8/site-packages (from ansible) (2.13.8)
  5. Requirement already satisfied: cryptography in /usr/lib64/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (3.2.1)
  6. Requirement already satisfied: PyYAML>=5.1 in /usr/lib64/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (5.4.1)
  7. 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)
  8. Requirement already satisfied: packaging in ./.local/lib/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (23.0)
  9. Requirement already satisfied: jinja2>=3.0.0 in /usr/lib/python3.8/site-packages (from ansible-core~=2.13.7->ansible) (3.0.3)
  10. 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)
  11. 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)
  12. 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)
  13. 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)
  14. Installing collected packages: psycopg2-binary
  15. Running setup.py install for psycopg2-binary ... error
  16. 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=:
  17. running install
  18. running build
  19. running build_py
  20. creating build
  21. creating build/lib.linux-x86_64-3.8
  22. creating build/lib.linux-x86_64-3.8/psycopg2
  23. copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
  24. copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
  25. copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
  26. copying lib/errors.py -> build/lib.linux-x86_64-3.8/psycopg2
  27. copying lib/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
  28. copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
  29. copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
  30. copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
  31. copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
  32. copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
  33. copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
  34. running build_ext
  35. building 'psycopg2._psycopg' extension
  36. creating build/temp.linux-x86_64-3.8
  37. creating build/temp.linux-x86_64-3.8/psycopg
  38. 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
  39. In file included from psycopg/psycopgmodule.c:28:
  40. ./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory
  41. #include <Python.h>
  42. ^~~~~~~~~~
  43. compilation terminated.
  44.  
  45. It appears you are missing some prerequisite to build the package from source.
  46.  
  47. You may install a binary package by installing 'psycopg2-binary' from PyPI.
  48. If you want to install psycopg2 from source, please install the packages
  49. required for the build and try again.
  50.  
  51. For further information please check the 'doc/src/install.rst' file (also at
  52. <https://www.psycopg.org/docs/install.html>).
  53.  
  54. error: command 'gcc' failed with exit status 1
  55.  
  56. ----------------------------------------
  57. 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/
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement