-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
- Poetry version: 1.6.1
- Python version: 3.11.5
- OS version and name: macOS 13.5.2, M1
- pyproject.toml: https://gist.github.com/itsjamie/afb445e5b450f4bd745537b784c9f5d8
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Package operations: 5 installs, 0 updates, 0 removals, 126 skipped
• Installing aeneas (1.7.3.0): Pending...
• Installing aeneas (1.7.3.0): Preparing...
• Installing aeneas (1.7.3.0): Failed
Stack trace:
8 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/executor.py:286 in _execute_operation
284│
285│ try:
→ 286│ result = self._do_execute_operation(operation)
287│ except EnvCommandError as e:
288│ if e.e.returncode == -2:
7 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/executor.py:386 in _do_execute_operation
384│ return 0
385│
→ 386│ result: int = getattr(self, f"_execute_{method}")(operation)
387│
388│ if result != 0:
6 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/executor.py:511 in _execute_install
509│
510│ def _execute_install(self, operation: Install | Update) -> int:
→ 511│ status_code = self._install(operation)
512│
513│ self._save_url_reference(operation)
5 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/executor.py:549 in _install
547│ archive = self._download_link(operation, Link(package.source_url))
548│ else:
→ 549│ archive = self._download(operation)
550│
551│ operation_message = self.get_operation_message(operation)
4 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/executor.py:753 in _download
751│ self._yanked_warnings.append(message)
752│
→ 753│ return self._download_link(operation, link)
754│
755│ def _download_link(self, operation: Install | Update, link: Link) -> Path:
3 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/executor.py:800 in _download_link
798│ self._write(operation, message)
799│
→ 800│ archive = self._chef.prepare(archive, output_dir=output_dir)
801│
802│ # Use the original archive to provide the correct hash.
2 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/chef.py:101 in prepare
99│ return self._prepare(archive, destination=destination, editable=editable)
100│
→ 101│ return self._prepare_sdist(archive, destination=output_dir)
102│
103│ def _prepare(
1 ~/Library/Application Support/pypoetry/lib/python3.11/site-packages/poetry/installation/chef.py:185 in _prepare_sdist
183│ destination.mkdir(parents=True, exist_ok=True)
184│
→ 185│ return self._prepare(
186│ sdist_dir,
187│ destination,
ChefBuildError
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
[ERRO] You must install numpy before installing aeneas
[INFO] Try the following command:
[INFO] $ sudo pip install numpy
at ~/Library/Application Support/pypoetry/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 aeneas (1.7.3.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "aeneas (==1.7.3.0)"'.
Issue
As indicated above, I found that setting LIBRARY_PATH=/opt/homebrew/lib was a requirement for pip wheel --use-pep517 "aeneas (==1.7.3.0)"' to succeed due to /opt/homebrew/lib not being passed via the aeneas build.
However, setting that here, building this still doesn't succeed.
The error comes from the following:
https://github.com/readbeyond/aeneas/blob/v1.7.3/setup.py#L188-L195
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged