Open MrClon opened 4 months ago
Same here on OSX 14.5 (Sonoma)
python 3.12, poetry 1.8.3
gcc -v
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
➜ poetry install
Installing dependencies from lock file
Package operations: 63 installs, 0 updates, 0 removals
- Installing screen (1.0.1): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
running build
running build_py
creating build
creating build/lib.macosx-14.0-arm64-cpython-312
creating build/lib.macosx-14.0-arm64-cpython-312/screen
copying screen/old_str_util.py -> build/lib.macosx-14.0-arm64-cpython-312/screen
copying screen/compat.py -> build/lib.macosx-14.0-arm64-cpython-312/screen
copying screen/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/screen
running build_ext
building 'screen.str_util' extension
creating build/temp.macosx-14.0-arm64-cpython-312
creating build/temp.macosx-14.0-arm64-cpython-312/source
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/xt/1kj60tqd4p38zv53gvkt0q040000gn/T/tmpm0z43jrf/.venv/include -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c source/str_util.c -o build/temp.macosx-14.0-arm64-cpython-312/source/str_util.o
source/str_util.c:484:16: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ustr = PyUnicode_AS_UNICODE(text);
^
source/str_util.c:484:14: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
ustr = PyUnicode_AS_UNICODE(text);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
source/str_util.c:663:16: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ustr = PyUnicode_AS_UNICODE(text);
^
source/str_util.c:663:14: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
ustr = PyUnicode_AS_UNICODE(text);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
source/str_util.c:755:16: error: call to undeclared function 'PyUnicode_AS_UNICODE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ustr = PyUnicode_AS_UNICODE(text);
^
source/str_util.c:755:14: error: incompatible integer to pointer conversion assigning to 'Py_UNICODE *' (aka 'int *') from 'int' [-Wint-conversion]
ustr = PyUnicode_AS_UNICODE(text);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
at /opt/homebrew/Cellar/poetry/1.8.3/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ 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 screen (1.0.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "screen (==1.0.1)"'.
Looks like problem with screen package which required by
excel-base
, which required bydjango-excel-response2
, which required byDjango-admin
Python 3.13.3, pip 24.0, GCC 14.1.1