Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Building wheels for collected packages: psycopg2-binary
- Building wheel for psycopg2-binary (setup.py) ... error
- ERROR: Command errored out with exit status 1:
- 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
- cwd: /tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/
- Complete output (73 lines):
- running bdist_wheel
- 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/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/psycopg1.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
- creating build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_async_keyword.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_fast_executemany.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/testutils.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_dates.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_module.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_cursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_sql.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_connection.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_transaction.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_with.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_replication.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_notify.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_quote.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_green.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/testconfig.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_cancel.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_copy.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_lobject.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_async.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- Skipping optional fixer: buffer
- Skipping optional fixer: idioms
- Skipping optional fixer: set_literal
- Skipping optional fixer: ws_comma
- running build_ext
- building 'psycopg2._psycopg' extension
- creating build/temp.linux-x86_64-3.8
- creating build/temp.linux-x86_64-3.8/psycopg
- 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
- In file included from psycopg/psycopgmodule.c:27:
- ./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: Нет такого файла или каталога
- 35 | #include <libpq-fe.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
- <http://initd.org/psycopg/docs/install.html>).
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- ----------------------------------------
- ERROR: Failed building wheel for psycopg2-binary
- Running setup.py clean for psycopg2-binary
- Failed to build psycopg2-binary
- 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
- Attempting uninstall: psycopg2-binary
- Found existing installation: psycopg2-binary 2.9.2
- Uninstalling psycopg2-binary-2.9.2:
- Successfully uninstalled psycopg2-binary-2.9.2
- Running setup.py install for psycopg2-binary ... error
- ERROR: Command errored out with exit status 1:
- 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
- cwd: /tmp/pip-install-q8s66lme/psycopg2-binary_93d13145809a4a43807affb2926f241e/
- Complete output (73 lines):
- 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/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/psycopg1.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
- copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
- creating build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_async_keyword.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_fast_executemany.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/testutils.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_dates.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_module.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_cursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_sql.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_connection.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_transaction.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_with.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_replication.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_notify.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_quote.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_green.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/testconfig.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_cancel.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_copy.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_lobject.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- copying tests/test_async.py -> build/lib.linux-x86_64-3.8/psycopg2/tests
- Skipping optional fixer: buffer
- Skipping optional fixer: idioms
- Skipping optional fixer: set_literal
- Skipping optional fixer: ws_comma
- running build_ext
- building 'psycopg2._psycopg' extension
- creating build/temp.linux-x86_64-3.8
- creating build/temp.linux-x86_64-3.8/psycopg
- 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
- In file included from psycopg/psycopgmodule.c:27:
- ./psycopg/psycopg.h:35:10: fatal error: libpq-fe.h: Нет такого файла или каталога
- 35 | #include <libpq-fe.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
- <http://initd.org/psycopg/docs/install.html>).
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- ----------------------------------------
- Rolling back uninstall of psycopg2-binary
- Moving to /home/uladzimir/.local/lib/python3.8/site-packages/psycopg2/
- from /home/uladzimir/.local/lib/python3.8/site-packages/~sycopg2
- Moving to /home/uladzimir/.local/lib/python3.8/site-packages/psycopg2_binary-2.9.2.dist-info/
- from /home/uladzimir/.local/lib/python3.8/site-packages/~sycopg2_binary-2.9.2.dist-info
- Moving to /home/uladzimir/.local/lib/python3.8/site-packages/psycopg2_binary.libs/
- from /home/uladzimir/.local/lib/python3.8/site-packages/~sycopg2_binary.libs
- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement