Skip to content

Error when trying to install #48

@magick93

Description

@magick93

I'm trying to install and am getting the following:

pip install jsonschema2db
Collecting jsonschema2db
  Downloading JSONSchema2DB-1.0.1.tar.gz (9.3 kB)
Collecting change_case==0.5.2
  Downloading change_case-0.5.2.tar.gz (8.6 kB)
Collecting iso8601==0.1.12
  Downloading iso8601-0.1.12-py3-none-any.whl (12 kB)
Collecting psycopg2==2.7.2
  Downloading psycopg2-2.7.2.tar.gz (424 kB)
     |████████████████████████████████| 424 kB 2.1 MB/s 
Using legacy 'setup.py install' for jsonschema2db, since package 'wheel' is not installed.
Using legacy 'setup.py install' for change-case, since package 'wheel' is not installed.
Using legacy 'setup.py install' for psycopg2, since package 'wheel' is not installed.
Installing collected packages: psycopg2, iso8601, change-case, jsonschema2db
    Running setup.py install for psycopg2 ... error
    ERROR: Command errored out with exit status 1:
     command: /home/my/git/org/project/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcwybtty/psycopg2_52abc9dbdf814e2782da1e740c8439e5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcwybtty/psycopg2_52abc9dbdf814e2782da1e740c8439e5/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-6ez1jgky/install-record.txt --single-version-externally-managed --compile --install-headers /home/my/git/org/project/venv/include/site/python3.9/psycopg2
         cwd: /tmp/pip-install-fcwybtty/psycopg2_52abc9dbdf814e2782da1e740c8439e5/
    Complete output (89 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.9
    creating build/lib.linux-x86_64-3.9/psycopg2
    copying lib/extensions.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/sql.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/_json.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/errorcodes.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/tz.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/psycopg1.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/extras.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/_range.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/pool.py -> build/lib.linux-x86_64-3.9/psycopg2
    copying lib/__init__.py -> build/lib.linux-x86_64-3.9/psycopg2
    creating build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/testutils.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_quote.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_async.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/testconfig.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_cancel.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_sql.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_async_keyword.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_fast_executemany.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_replication.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_dates.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_transaction.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_copy.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/dbapi20.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_lobject.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_green.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_connection.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/__init__.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_ipaddress.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_notify.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_module.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_cursor.py -> build/lib.linux-x86_64-3.9/psycopg2/tests
    copying tests/test_with.py -> build/lib.linux-x86_64-3.9/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.9
    creating build/temp.linux-x86_64-3.9/psycopg
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_asis.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_asis.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_binary.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_binary.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_datetime.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_datetime.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_list.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_list.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_pboolean.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_pboolean.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_pdecimal.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_pdecimal.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_pfloat.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_pfloat.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_pint.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_pint.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/adapter_qstring.c -o build/temp.linux-x86_64-3.9/psycopg/adapter_qstring.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/bytes_format.c -o build/temp.linux-x86_64-3.9/psycopg/bytes_format.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/connection_int.c -o build/temp.linux-x86_64-3.9/psycopg/connection_int.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/connection_type.c -o build/temp.linux-x86_64-3.9/psycopg/connection_type.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/cursor_int.c -o build/temp.linux-x86_64-3.9/psycopg/cursor_int.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/cursor_type.c -o build/temp.linux-x86_64-3.9/psycopg/cursor_type.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/diagnostics_type.c -o build/temp.linux-x86_64-3.9/psycopg/diagnostics_type.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/error_type.c -o build/temp.linux-x86_64-3.9/psycopg/error_type.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/green.c -o build/temp.linux-x86_64-3.9/psycopg/green.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/libpq_support.c -o build/temp.linux-x86_64-3.9/psycopg/libpq_support.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/lobject_int.c -o build/temp.linux-x86_64-3.9/psycopg/lobject_int.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/lobject_type.c -o build/temp.linux-x86_64-3.9/psycopg/lobject_type.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/microprotocols.c -o build/temp.linux-x86_64-3.9/psycopg/microprotocols.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/microprotocols_proto.c -o build/temp.linux-x86_64-3.9/psycopg/microprotocols_proto.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/notify_type.c -o build/temp.linux-x86_64-3.9/psycopg/notify_type.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/pqpath.c -o build/temp.linux-x86_64-3.9/psycopg/pqpath.o -Wdeclaration-after-statement
    x86_64-linux-gnu-gcc -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.2 (dt dec pq3 ext lo64)" -DPG_VERSION_NUM=130600 -DHAVE_LO64=1 -I/home/my/git/org/project/venv/include -I/usr/include/python3.9 -I. -I/usr/include/postgresql -I/usr/include/postgresql/13/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.9/psycopg/psycopgmodule.o -Wdeclaration-after-statement
    psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’:
    psycopg/psycopgmodule.c:685:18: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’}
      685 |     while (interp->next)
          |                  ^~
    psycopg/psycopgmodule.c:686:24: error: invalid use of incomplete typedef ‘PyInterpreterState’ {aka ‘struct _is’}
      686 |         interp = interp->next;
          |                        ^~
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/my/git/org/project/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fcwybtty/psycopg2_52abc9dbdf814e2782da1e740c8439e5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fcwybtty/psycopg2_52abc9dbdf814e2782da1e740c8439e5/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-6ez1jgky/install-record.txt --single-version-externally-managed --compile --install-headers /home/my/git/org/project/venv/include/site/python3.9/psycopg2 Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions