You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm applying alignai sdk (0.2.1) but I met an issue below when installing pendulum (2.1.2).
MacOS M3 Pro, sonoma 14.1
Poetry 1.8.3
Python 3.12
It seems to me that python 3.12 is not compatible with pendulum 2.1.2, but with ^3.0.0.
In python 3.11 both the alignai sdk and the pendulum are successfully installed. python-pendulum/pendulum#454 (comment)
Error Message
$ poetry add alignai
Using version ^0.2.1 for alignai
Updating dependencies
Resolving dependencies... (0.5s)
Package operations: 2 installs, 0 updates, 0 removals
- Installing pendulum (2.1.2): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
Traceback (most recent call last):
File "/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpslig436n/pendulum-2.1.2/build.py", line 5, in<module>
from distutils.command.build_ext import build_ext
ModuleNotFoundError: No module named 'distutils'
Traceback (most recent call last):
File "/Users/ithwang/.local/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in<module>main()
File "/Users/ithwang/.local/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ithwang/.local/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel
return_build_backend().build_wheel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpmat_d3y3/.venv/lib/python3.12/site-packages/poetry/core/masonry/api.py", line 58, in build_wheel
return WheelBuilder.make_in(
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpmat_d3y3/.venv/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 88, in make_in
wb.build(target_dir=directory)
File "/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpmat_d3y3/.venv/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 123, in build
self._build(zip_file)
File "/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpmat_d3y3/.venv/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 172, in _build
self._run_build_script(self._package.build_script)
File "/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpmat_d3y3/.venv/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 262, in _run_build_script
subprocess.check_call([self.executable.as_posix(), build_script])
File "/opt/homebrew/Cellar/[email protected]/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/private/var/folders/qq/p3vc32jn7hd4191jwd7hhsgm0000gn/T/tmpmat_d3y3/.venv/bin/python', 'build.py']' returned non-zero exit status 1.
at ~/.local/pipx/venvs/poetry/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 pendulum (2.1.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pendulum (==2.1.2)"'.
Hi, I'm applying alignai sdk (0.2.1) but I met an issue below when installing pendulum (2.1.2).
It seems to me that python 3.12 is not compatible with pendulum 2.1.2, but with ^3.0.0.
In python 3.11 both the alignai sdk and the pendulum are successfully installed.
python-pendulum/pendulum#454 (comment)
Error Message
Environment Details
The text was updated successfully, but these errors were encountered: