Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with Implicit declaration of gettimeofday on macos #1397

Closed
5 tasks done
jayvdb opened this issue Dec 3, 2021 · 2 comments · Fixed by #1399
Closed
5 tasks done

Build fails with Implicit declaration of gettimeofday on macos #1397

jayvdb opened this issue Dec 3, 2021 · 2 comments · Fixed by #1399

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Dec 3, 2021

Before opening this ticket, please confirm that:

Please complete the following information:

  • OS: Darwin 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
  • Psycopg version: 2.9.2
  • Python version: 3.7 (pypy3/7.3.7)
  • PostgreSQL version: 14.1
  • pip version: 21.3.1
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 % pipenv install --skip-lock
Installing dependencies from Pipfile...
An error occurred while installing psycopg2! Will try again.
An error occurred while installing confluent-kafka! Will try again.
An error occurred while installing cryptography! Will try again.
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 16/16 — 00:04:11
Installing initially failed dependencies...
[pipenv.exceptions.InstallError]: Collecting psycopg2
[pipenv.exceptions.InstallError]:   Using cached psycopg2-2.9.2.tar.gz (380 kB)
[pipenv.exceptions.InstallError]:   Preparing metadata (setup.py): started
[pipenv.exceptions.InstallError]:   Preparing metadata (setup.py): finished with status 'done'
[pipenv.exceptions.InstallError]: Building wheels for collected packages: psycopg2
[pipenv.exceptions.InstallError]:   Building wheel for psycopg2 (setup.py): started
[pipenv.exceptions.InstallError]:   Building wheel for psycopg2 (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]:   Running setup.py clean for psycopg2
[pipenv.exceptions.InstallError]: Failed to build psycopg2
[pipenv.exceptions.InstallError]: Installing collected packages: psycopg2
[pipenv.exceptions.InstallError]:     Running setup.py install for psycopg2: started
[pipenv.exceptions.InstallError]:     Running setup.py install for psycopg2: finished with status 'error'
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:    command: /Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/setup.py'"'"'; __file__='"'"'/private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/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 /private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-wheel-4vvs36kk
[pipenv.exceptions.InstallError]:        cwd: /private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/
[pipenv.exceptions.InstallError]:   Complete output (41 lines):
[pipenv.exceptions.InstallError]:   running bdist_wheel
[pipenv.exceptions.InstallError]:   running build
[pipenv.exceptions.InstallError]:   running build_py
[pipenv.exceptions.InstallError]:   creating build
[pipenv.exceptions.InstallError]:   creating build/lib.macosx-10.7-x86_64-3.7
[pipenv.exceptions.InstallError]:   creating build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/_json.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/extras.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/errorcodes.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/tz.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/_range.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/_ipaddress.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/extensions.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/errors.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/sql.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   copying lib/pool.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:   warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:   running build_ext
[pipenv.exceptions.InstallError]:   building 'psycopg2._psycopg' extension
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-10.7-x86_64-3.7
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-10.7-x86_64-3.7/psycopg
[pipenv.exceptions.InstallError]:   gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/psycopgmodule.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/psycopgmodule.o
[pipenv.exceptions.InstallError]:   gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/green.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/green.o
[pipenv.exceptions.InstallError]:   gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/pqpath.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/pqpath.o
[pipenv.exceptions.InstallError]:   psycopg/pqpath.c:139:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
[pipenv.exceptions.InstallError]:                   PQstatus(conn->pgconn) : PQresultStatus(*pgres)));
[pipenv.exceptions.InstallError]:                   ^~~~~~~~~~~~~~~~~~~~~~
[pipenv.exceptions.InstallError]:   psycopg/pqpath.c:1828:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
[pipenv.exceptions.InstallError]:                   PQstatus(curs->conn->pgconn) : PQresultStatus(curs->pgres)));
[pipenv.exceptions.InstallError]:                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[pipenv.exceptions.InstallError]:   2 warnings generated.
[pipenv.exceptions.InstallError]:   gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/utils.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/utils.o
[pipenv.exceptions.InstallError]:   gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/bytes_format.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/bytes_format.o
[pipenv.exceptions.InstallError]:   gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/libpq_support.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/libpq_support.o
[pipenv.exceptions.InstallError]:   psycopg/libpq_support.c:56:5: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
[pipenv.exceptions.InstallError]:       gettimeofday(&tp, NULL);
[pipenv.exceptions.InstallError]:       ^
[pipenv.exceptions.InstallError]:   1 error generated.
[pipenv.exceptions.InstallError]:   error: command 'gcc' failed with exit status 1
[pipenv.exceptions.InstallError]:   ----------------------------------------
[pipenv.exceptions.InstallError]:   ERROR: Failed building wheel for psycopg2
[pipenv.exceptions.InstallError]:     ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:      command: /Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/setup.py'"'"'; __file__='"'"'/private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/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 /private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-record-j0vpw4kt/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include/site/python3.7/psycopg2
[pipenv.exceptions.InstallError]:          cwd: /private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/
[pipenv.exceptions.InstallError]:     Complete output (43 lines):
[pipenv.exceptions.InstallError]:     running install
[pipenv.exceptions.InstallError]:     /Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
[pipenv.exceptions.InstallError]:       setuptools.SetuptoolsDeprecationWarning,
[pipenv.exceptions.InstallError]:     running build
[pipenv.exceptions.InstallError]:     running build_py
[pipenv.exceptions.InstallError]:     creating build
[pipenv.exceptions.InstallError]:     creating build/lib.macosx-10.7-x86_64-3.7
[pipenv.exceptions.InstallError]:     creating build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/_json.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/extras.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/errorcodes.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/tz.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/_range.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/_ipaddress.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/extensions.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/errors.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/sql.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     copying lib/pool.py -> build/lib.macosx-10.7-x86_64-3.7/psycopg2
[pipenv.exceptions.InstallError]:     warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:     running build_ext
[pipenv.exceptions.InstallError]:     building 'psycopg2._psycopg' extension
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-10.7-x86_64-3.7
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-10.7-x86_64-3.7/psycopg
[pipenv.exceptions.InstallError]:     gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/psycopgmodule.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/psycopgmodule.o
[pipenv.exceptions.InstallError]:     gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/green.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/green.o
[pipenv.exceptions.InstallError]:     gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/pqpath.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/pqpath.o
[pipenv.exceptions.InstallError]:     psycopg/pqpath.c:139:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
[pipenv.exceptions.InstallError]:                     PQstatus(conn->pgconn) : PQresultStatus(*pgres)));
[pipenv.exceptions.InstallError]:                     ^~~~~~~~~~~~~~~~~~~~~~
[pipenv.exceptions.InstallError]:     psycopg/pqpath.c:1828:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
[pipenv.exceptions.InstallError]:                     PQstatus(curs->conn->pgconn) : PQresultStatus(curs->pgres)));
[pipenv.exceptions.InstallError]:                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[pipenv.exceptions.InstallError]:     2 warnings generated.
[pipenv.exceptions.InstallError]:     gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/utils.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/utils.o
[pipenv.exceptions.InstallError]:     gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/bytes_format.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/bytes_format.o
[pipenv.exceptions.InstallError]:     gcc -pthread -arch x86_64 -DNDEBUG -O2 -fPIC -DPSYCOPG_VERSION=2.9.2 (dt dec pq3 ext lo64) -DPSYCOPG_DEBUG=1 -DPG_VERSION_NUM=140001 -DHAVE_LO64=1 -DPSYCOPG_DEBUG=1 -I/Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include -I/usr/local/Cellar/pypy3/7.3.7/libexec/include -I. -I/usr/local/include -I/usr/local/include/postgresql/server -I/usr/local/Cellar/icu4c/69.1/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -c psycopg/libpq_support.c -o build/temp.macosx-10.7-x86_64-3.7/psycopg/libpq_support.o
[pipenv.exceptions.InstallError]:     psycopg/libpq_support.c:56:5: error: implicit declaration of function 'gettimeofday' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
[pipenv.exceptions.InstallError]:         gettimeofday(&tp, NULL);
[pipenv.exceptions.InstallError]:         ^
[pipenv.exceptions.InstallError]:     1 error generated.
[pipenv.exceptions.InstallError]:     error: command 'gcc' failed with exit status 1
[pipenv.exceptions.InstallError]:     ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/setup.py'"'"'; __file__='"'"'/private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-install-4a3mpn5l/psycopg2_22e2deb4b099430cb53a468b9030ab46/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 /private/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/pip-record-j0vpw4kt/install-record.txt --single-version-externally-managed --compile --install-headers /Users/jayvdb/.local/share/virtualenvs/backend-jwlq0EAt/include/site/python3.7/psycopg2 Check the logs for full command output.
ERROR: Couldn't install package: psycopg2
 Package installation failed...
  ☤  ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 2/3 — 00:00:17
jayvdb added a commit to jayvdb/psycopg2 that referenced this issue Dec 3, 2021
@dvarrazzo
Copy link
Member

Thank you for the reports and for the patches!

macOS has been worked so far. How you got idea why this is required now?

dvarrazzo pushed a commit that referenced this issue Dec 3, 2021
@jayvdb
Copy link
Contributor Author

jayvdb commented Dec 3, 2021

My guess is this is either clang vs gcc, or a quirk of pypy3 wrt compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants