Yeni sürüm psycopg2 güncellemesi yapacaksınız ama aşağıdaki gibi bir hata ile kurulum sırasında karşılaşıyorsanız.
Updating dependencies
Resolving dependencies... (2.6s)
Package operations: 0 installs, 1 update, 0 removals
• Updating psycopg2 (2.9.6 -> 2.9.7): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-311
creating build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/_json.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/extras.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/errorcodes.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/tz.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/_range.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/_ipaddress.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/__init__.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/extensions.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/errors.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/sql.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
copying lib/pool.py -> build/lib.macosx-13-arm64-cpython-311/psycopg2
running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.macosx-13-arm64-cpython-311
creating build/temp.macosx-13-arm64-cpython-311/psycopg
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_asis.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_asis.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_binary.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_binary.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_datetime.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_datetime.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_list.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_list.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_pboolean.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pboolean.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_pdecimal.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pdecimal.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_pfloat.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pfloat.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_pint.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pint.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/adapter_qstring.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_qstring.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/aix_support.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/aix_support.o
In file included from psycopg/aix_support.c:29:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/bytes_format.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/bytes_format.o
In file included from psycopg/bytes_format.c:82:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/column_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/column_type.o
In file included from psycopg/column_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/connection_int.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/connection_int.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/connection_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/connection_type.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/conninfo_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/conninfo_type.o
In file included from psycopg/conninfo_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/cursor_int.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/cursor_int.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/cursor_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/cursor_type.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/diagnostics_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/diagnostics_type.o
In file included from psycopg/diagnostics_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/error_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/error_type.o
In file included from psycopg/error_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/green.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/green.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/libpq_support.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/libpq_support.o
In file included from psycopg/libpq_support.c:30:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/lobject_int.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/lobject_int.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/lobject_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/lobject_type.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/microprotocols.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/microprotocols.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/microprotocols_proto.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/microprotocols_proto.o
In file included from psycopg/microprotocols_proto.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/notify_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/notify_type.o
In file included from psycopg/notify_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/pqpath.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/pqpath.o
psycopg/pqpath.c:139:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
PQstatus(conn->pgconn) : PQresultStatus(*pgres)));
^~~~~~~~~~~~~~~~~~~~~~
psycopg/pqpath.c:1723:11: warning: code will never be executed [-Wunreachable-code]
ret = 1;
^
psycopg/pqpath.c:1828:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
PQstatus(curs->conn->pgconn) : PQresultStatus(curs->pgres)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/psycopgmodule.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/psycopgmodule.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/replication_connection_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/replication_connection_type.o
In file included from psycopg/replication_connection_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/replication_cursor_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/replication_cursor_type.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/replication_message_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/replication_message_type.o
In file included from psycopg/replication_message_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/solaris_support.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/solaris_support.o
In file included from psycopg/solaris_support.c:29:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/typecast.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/typecast.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/utils.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/utils.o
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/win32_support.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/win32_support.o
In file included from psycopg/win32_support.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:69:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...)
^
1 warning generated.
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk "-DPSYCOPG_VERSION=2.9.7 (dt dec pq3 ext lo64)" -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=150004 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/private/var/folders/yk/l3zvp3lj4bx6ctd3_mklx6dw0000gn/T/tmpg1m2jgka/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I. -I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/libpq/include/postgresql/server -c psycopg/xid_type.c -o build/temp.macosx-13-arm64-cpython-311/psycopg/xid_type.o
clang -bundle -undefined dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_asis.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_binary.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_datetime.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_list.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pboolean.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pdecimal.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pfloat.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_pint.o build/temp.macosx-13-arm64-cpython-311/psycopg/adapter_qstring.o build/temp.macosx-13-arm64-cpython-311/psycopg/aix_support.o build/temp.macosx-13-arm64-cpython-311/psycopg/bytes_format.o build/temp.macosx-13-arm64-cpython-311/psycopg/column_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/connection_int.o build/temp.macosx-13-arm64-cpython-311/psycopg/connection_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/conninfo_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/cursor_int.o build/temp.macosx-13-arm64-cpython-311/psycopg/cursor_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/diagnostics_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/error_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/green.o build/temp.macosx-13-arm64-cpython-311/psycopg/libpq_support.o build/temp.macosx-13-arm64-cpython-311/psycopg/lobject_int.o build/temp.macosx-13-arm64-cpython-311/psycopg/lobject_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/microprotocols.o build/temp.macosx-13-arm64-cpython-311/psycopg/microprotocols_proto.o build/temp.macosx-13-arm64-cpython-311/psycopg/notify_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/pqpath.o build/temp.macosx-13-arm64-cpython-311/psycopg/psycopgmodule.o build/temp.macosx-13-arm64-cpython-311/psycopg/replication_connection_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/replication_cursor_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/replication_message_type.o build/temp.macosx-13-arm64-cpython-311/psycopg/solaris_support.o build/temp.macosx-13-arm64-cpython-311/psycopg/typecast.o build/temp.macosx-13-arm64-cpython-311/psycopg/utils.o build/temp.macosx-13-arm64-cpython-311/psycopg/win32_support.o build/temp.macosx-13-arm64-cpython-311/psycopg/xid_type.o -L/opt/homebrew/opt/libpq/lib -lpq -lssl -lcrypto -o build/lib.macosx-13-arm64-cpython-311/psycopg2/_psycopg.cpython-311-darwin.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
at /opt/homebrew/Cellar/poetry/1.6.1/libexec/lib/python3.11/site-packages/poetry/installation/chef.py:147 in _prepare
143│
144│ error = ChefBuildError("\\n\\n".join(message_parts))
145│
146│ if error is not None:
→ 147│ raise error from None
148│
149│ return path
150│
151│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with psycopg2 (2.9.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "psycopg2 (==2.9.7)"'.
Bu hatanın çözümü aşağıdaki gibidir, hataya psycopg2 için yeni sürümde openssl’in de yeni bir sürümle derlenmesinden kaynaklanmaktadır.
Garanti çözüm için aşağıdaki adımları uygulamanız yeterlidir.
brew reinstall libpq
brew reinstall openssl
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib -L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include -I/opt/homebrew/opt/openssl@3/include"
Bu adımlardan hemen sonra sorununuz düzelecek, tekrar başka bir zamanda almamak adına aşağıdaki satırları bashrc
veya zshrc
dosyanıza tanımlayabilirsiniz.