Advertisement
stanlyzoolo

Untitled

Dec 3rd, 2021
1,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.67 KB | None | 0 0
  1. Building wheels for collected packages: psycopg2-binary
  2.   Building wheel for psycopg2-binary (setup.py) ... error
  3.   ERROR: Command errored out with exit status 1:
  4.    command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-fbghrs4u
  5.        cwd: /tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/
  6.   Complete output (73 lines):
  7.   running bdist_wheel
  8.   running build
  9.   running build_py
  10.   creating build
  11.   creating build/lib.linux-x86_64-3.8
  12.   creating build/lib.linux-x86_64-3.8/psycopg2
  13.   copying lib/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
  14.   copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
  15.   copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
  16.   copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
  17.   copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
  18.   copying lib/psycopg1.py -> build/lib.linux-x86_64-3.8/psycopg2
  19.   copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
  20.   copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
  21.   copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
  22.   copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
  23.   copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
  24.   creating build/lib.linux-x86_64-3.8/psycopg2/tests
  25.   copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  26.   copying tests/test_async_keyword.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  27.   copying tests/test_fast_executemany.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  28.   copying tests/testutils.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  29.   copying tests/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  30.   copying tests/test_dates.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  31.   copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  32.   copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  33.   copying tests/test_module.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  34.   copying tests/test_cursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  35.   copying tests/test_sql.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  36.   copying tests/dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  37.   copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  38.   copying tests/test_connection.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  39.   copying tests/test_transaction.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  40.   copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  41.   copying tests/test_with.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  42.   copying tests/test_replication.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  43.   copying tests/test_notify.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  44.   copying tests/test_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  45.   copying tests/test_quote.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  46.   copying tests/test_green.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  47.   copying tests/testconfig.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  48.   copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  49.   copying tests/test_cancel.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  50.   copying tests/test_copy.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  51.   copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  52.   copying tests/test_lobject.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  53.   copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  54.   copying tests/test_async.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  55.   Skipping optional fixer: buffer
  56.   Skipping optional fixer: idioms
  57.   Skipping optional fixer: set_literal
  58.   Skipping optional fixer: ws_comma
  59.   running build_ext
  60.   building 'psycopg2._psycopg' extension
  61.   creating build/temp.linux-x86_64-3.8
  62.   creating build/temp.linux-x86_64-3.8/psycopg
  63.   x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=2.7.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120009 -DHAVE_LO64=1 -I/usr/include/python3.8 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement
  64.   In file included from psycopg/psycopgmodule.c:27:
  65.   ./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: Нет такого файла или каталога
  66.      35 | #include <libpq-fe.h>
  67.         |          ^~~~~~~~~~~~
  68.   compilation terminated.
  69.  
  70.   It appears you are missing some prerequisite to build the package from source.
  71.  
  72.   You may install a binary package by installing 'psycopg2-binary' from PyPI.
  73.   If you want to install psycopg2 from source, please install the packages
  74.   required for the build and try again.
  75.  
  76.   For further information please check the 'doc/src/install.rst' file (also at
  77.   <http://initd.org/psycopg/docs/install.html>).
  78.  
  79.   error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  80.   ----------------------------------------
  81.   ERROR: Failed building wheel for psycopg2-binary
  82.   Running setup.py clean for psycopg2-binary
  83. Failed to build psycopg2-binary
  84. Installing collected packages: cached-property, psycopg2-binary, pre-commit, pipenv, phonenumbers, pdf417gen, paramiko, parameterized, openpyxl, money-lib, markdown, jsonfield, json-log-formatter, jsmin, jobtastic, ipython, hubspot-api-client, graphene-protector, graphene-file-upload, graphene-django-optimizer, geoip2, flake8-isort, elasticsearch, drf-yasg, drf-extensions, dnspython, django-webtest, django-user-agents, django-summernote, django-suit, django-split-settings, django-silk, django-select2, django-redis, django-ratelimit, django-polymorphic, django-pipeline, django-phonenumber-field, django-pagedown, django-object-actions, django-oauth-toolkit, django-multiselectfield, django-money, django-migration-linter, django-haystack, django-gravatar2, django-graphql-jwt, django-graphiql-debug-toolbar, django-filter, django-extensions, django-deprecate-fields, django-db-constraints, django-datatables-view, django-csv-exports, django-cors-headers, django-constance, django-colorful, django-celery-results, django-cache-memoize, django-boto, django-ajax-selects, django-admin-sortable2, django-admin-inline-paginator, django-admin-autocomplete-filter, django-add-default-value, dj-inmemorystorage, dict2xml, demandimport, ddtrace, datadog, csscompressor, croniter, createsend, coverage, Collectfast, celery-redbeat, celery-once, celery-haystack, braintree, boto3, analytics-python
  85.   Attempting uninstall: psycopg2-binary
  86.     Found existing installation: psycopg2-binary 2.9.2
  87.     Uninstalling psycopg2-binary-2.9.2:
  88.       Successfully uninstalled psycopg2-binary-2.9.2
  89.     Running setup.py install for psycopg2-binary ... error
  90.     ERROR: Command errored out with exit status 1:
  91.      command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qcxuz06w/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/uladzimir/.local/include/python3.8/psycopg2-binary
  92.          cwd: /tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/
  93.     Complete output (73 lines):
  94.     running install
  95.     running build
  96.     running build_py
  97.     creating build
  98.     creating build/lib.linux-x86_64-3.8
  99.     creating build/lib.linux-x86_64-3.8/psycopg2
  100.     copying lib/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
  101.     copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
  102.     copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
  103.     copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
  104.     copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
  105.     copying lib/psycopg1.py -> build/lib.linux-x86_64-3.8/psycopg2
  106.     copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
  107.     copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
  108.     copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
  109.     copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
  110.     copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
  111.     creating build/lib.linux-x86_64-3.8/psycopg2/tests
  112.     copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  113.     copying tests/test_async_keyword.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  114.     copying tests/test_fast_executemany.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  115.     copying tests/testutils.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  116.     copying tests/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  117.     copying tests/test_dates.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  118.     copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  119.     copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  120.     copying tests/test_module.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  121.     copying tests/test_cursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  122.     copying tests/test_sql.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  123.     copying tests/dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  124.     copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  125.     copying tests/test_connection.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  126.     copying tests/test_transaction.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  127.     copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  128.     copying tests/test_with.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  129.     copying tests/test_replication.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  130.     copying tests/test_notify.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  131.     copying tests/test_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  132.     copying tests/test_quote.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  133.     copying tests/test_green.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  134.     copying tests/testconfig.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  135.     copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  136.     copying tests/test_cancel.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  137.     copying tests/test_copy.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  138.     copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  139.     copying tests/test_lobject.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  140.     copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  141.     copying tests/test_async.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
  142.     Skipping optional fixer: buffer
  143.     Skipping optional fixer: idioms
  144.     Skipping optional fixer: set_literal
  145.     Skipping optional fixer: ws_comma
  146.     running build_ext
  147.     building 'psycopg2._psycopg' extension
  148.     creating build/temp.linux-x86_64-3.8
  149.     creating build/temp.linux-x86_64-3.8/psycopg
  150.     x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=2.7.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120009 -DHAVE_LO64=1 -I/usr/include/python3.8 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement
  151.     In file included from psycopg/psycopgmodule.c:27:
  152.     ./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: Нет такого файла или каталога
  153.        35 | #include <libpq-fe.h>
  154.           |          ^~~~~~~~~~~~
  155.     compilation terminated.
  156.    
  157.     It appears you are missing some prerequisite to build the package from source.
  158.    
  159.     You may install a binary package by installing 'psycopg2-binary' from PyPI.
  160.     If you want to install psycopg2 from source, please install the packages
  161.     required for the build and try again.
  162.    
  163.     For further information please check the 'doc/src/install.rst' file (also at
  164.     <http://initd.org/psycopg/docs/install.html>).
  165.    
  166.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  167.     ----------------------------------------
  168.   Rolling back uninstall of psycopg2-binary
  169.   Moving to /home/uladzimir/.local/lib/python3.8/site-packages/psycopg2/
  170.    from /home/uladzimir/.local/lib/python3.8/site-packages/~sycopg2
  171.   Moving to /home/uladzimir/.local/lib/python3.8/site-packages/psycopg2_binary-2.9.2.dist-info/
  172.    from /home/uladzimir/.local/lib/python3.8/site-packages/~sycopg2_binary-2.9.2.dist-info
  173.   Moving to /home/uladzimir/.local/lib/python3.8/site-packages/psycopg2_binary.libs/
  174.    from /home/uladzimir/.local/lib/python3.8/site-packages/~sycopg2_binary.libs
  175. ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qcxuz06w/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/uladzimir/.local/include/python3.8/psycopg2-binary Check the logs for full command output.
  176.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement