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
Due to some intellectual property restrictions, one of my dependencies has a dependency to a wheel file. This 2nd degree dependency is available in my current project, which is structured like so:
As mentioned, pyproject.toml references a GitHub hosted package that itself has a file reference to lib/my_wheel.whl (see example pyproject.toml below.
Running poetry export -vvv --format=requirements.txt --with=dev --without-hashes fails with
Dependency walk failed at amzi-pyras-lib (*) @ file:///home/fkluiben/git/enflex-core/lib/amzi_pyras_lib-0.7.7-py3-none-any.whl
[tool.poetry]
name = "enflex-core"version = "0.3.1"description = "Enflex Core"authors = [""]
readme = "README.md"classifiers = [
"Development Status :: 2 - Pre-Alpha",
]
packages = [
{ include = "enflex_core", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.10"pandas = "^2.1.4"pydantic = "^2.5.2"django = "^5.0.3"isodate = "^0.6.1"djangorestframework = "^3.15.1"django-filter = "^24.2"django-cors-headers = "^4.0.0"enflex-ts = {git="https://github.com/MyOrg/enflex-ts.git", branch="main"}
rpy2 = "^3.5.16"enflex-habitat-service = {git="https://github.com/MyOrg/enflex-habitat-service.git", branch="develop"} # This one is also built with poetry and it's pyproject contains `amzi-pyras-lib = {path = "lib/amzi_pyras_lib-0.7.7-py3-none-any.whl"}`isoduration = "^20.11.0"
Poetry Runtime Logs
$ poetry export -vvv --format=requirements.txt --with=dev --without-hashes
Loading configuration file /home/fkluiben/.config/pypoetry/config.toml
Warning: poetry-plugin-export will not be installed by default in a future version of Poetry.
In order to avoid a breaking change and make your automation forward-compatible, please install poetry-plugin-export explicitly. See https://python-poetry.org/docs/plugins/#using-plugins for details on how to install a plugin.
To disable this warning run 'poetry config warnings.export false'.
Source (poetry-lockfile): 1 packages found for pandas >=2.1.4,<3.0.0
Source (poetry-lockfile): 1 packages found for pydantic >=2.5.2,<3.0.0
Source (poetry-lockfile): 1 packages found for django >=5.0.3,<6.0.0
Source (poetry-lockfile): 1 packages found for isodate >=0.6.1,<0.7.0
Source (poetry-lockfile): 1 packages found for djangorestframework >=3.15.1,<4.0.0
Source (poetry-lockfile): 1 packages found for django-filter >=24.2,<25.0
Source (poetry-lockfile): 1 packages found for django-cors-headers >=4.0.0,<5.0.0
Source (poetry-lockfile): 1 packages found for enflex-ts *
Source (poetry-lockfile): 1 packages found for rpy2 >=3.5.16,<4.0.0
Source (poetry-lockfile): 1 packages found for enflex-habitat-service *
Source (poetry-lockfile): 1 packages found for isoduration >=20.11.0,<21.0.0
Source (poetry-lockfile): 1 packages found for pygments >=2.10.0
Source (poetry-lockfile): 1 packages found for black >=21.10b0
Source (poetry-lockfile): 1 packages found for coverage >=6.2
Source (poetry-lockfile): 1 packages found for darglint >=1.8.1
Source (poetry-lockfile): 1 packages found for flake8 >=4.0.1
Source (poetry-lockfile): 1 packages found for flake8-bandit >=2.1.2
Source (poetry-lockfile): 1 packages found for flake8-bugbear >=21.9.2
Source (poetry-lockfile): 1 packages found for flake8-docstrings >=1.6.0
Source (poetry-lockfile): 1 packages found for flake8-rst-docstrings >=0.2.5
Source (poetry-lockfile): 1 packages found for furo >=2021.11.12
Source (poetry-lockfile): 1 packages found for isort >=5.10.1
Source (poetry-lockfile): 1 packages found for mypy >=0.930
Source (poetry-lockfile): 1 packages found for pep8-naming >=0.12.1
Source (poetry-lockfile): 1 packages found for pre-commit >=2.16.0
Source (poetry-lockfile): 1 packages found for pre-commit-hooks >=4.1.0
Source (poetry-lockfile): 1 packages found for pytest >=6.2.5
Source (poetry-lockfile): 1 packages found for pyupgrade >=2.29.1
Source (poetry-lockfile): 1 packages found for safety >=1.10.3
Source (poetry-lockfile): 1 packages found for sphinx >=4.3.2
Source (poetry-lockfile): 1 packages found for sphinx-autobuild >=2021.3.14
Source (poetry-lockfile): 1 packages found for xdoctest >=0.15.10
Source (poetry-lockfile): 1 packages found for myst-parser >=0.16.1
Source (poetry-lockfile): 1 packages found for numpy >=1.26.4,<2.0.0
Stack trace:
13 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/cleo/application.py:327 in run
325│
326│ try:
→ 327│ exit_code = self._run(io)
328│ except BrokenPipeError:
329│ # If we are piped to another process, it may close early and send a
12 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry/console/application.py:190 in _run
188│ self._load_plugins(io)
189│
→ 190│ exit_code: int = super()._run(io)
191│ return exit_code
192│
11 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/cleo/application.py:431 in _run
429│ io.input.interactive(interactive)
430│
→ 431│ exit_code = self._run_command(command, io)
432│ self._running_command = None
433│
10 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/cleo/application.py:473 in _run_command
471│
472│ if error is not None:
→ 473│ raise error
474│
475│ return terminate_event.exit_code
9 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/cleo/application.py:457 in _run_command
455│
456│ ifcommand_event.command_should_run():
→ 457│ exit_code = command.run(io)
458│ else:
459│ exit_code = ConsoleCommandEvent.RETURN_CODE_DISABLED
8 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/cleo/commands/base_command.py:117 in run
115│ io.input.validate()
116│
→ 117│ return self.execute(io) or 0
118│
119│ def merge_application_definition(self, merge_args: bool = True) -> None:
7 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/cleo/commands/command.py:61 in execute
59│
60│ try:
→ 61│ returnself.handle()
62│ except KeyboardInterrupt:
63│ return 1
6 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry/console/commands/export.py:21 in handle
19│ style="warning",
20│ )
→ 21│ returnsuper().handle() # type: ignore[no-any-return]
22│
5 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry_plugin_export/command.py:125 in handle
123│ exporter.with_credentials(self.option("with-credentials"))
124│ exporter.with_urls(not self.option("without-urls"))
→ 125│ exporter.export(fmt, Path.cwd(), output or self.io)
126│
127│ return 0
4 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry_plugin_export/exporter.py:81 inexport
79│ raise ValueError(f"Invalid export format: {fmt}")
80│
→ 81│ getattr(self, self.EXPORT_METHODS[fmt])(cwd, output)
82│
83│ def _export_generic_txt(
3 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry_plugin_export/exporter.py:96 in _export_generic_txt
94│ )
95│
→ 96│ fordependency_packagein get_project_dependency_packages(
97│ self._poetry.locker,
98│ project_requires=root.all_requires,
2 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry_plugin_export/walker.py:97 in get_project_dependency_packages
95│ selected.append(dependency)
96│
→ 97│ forpackage, dependencyin get_project_dependencies(
98│ project_requires=selected,
99│ locked_packages=repository.packages,
1 ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry_plugin_export/walker.py:125 in get_project_dependencies
123│ )
124│
→ 125│ nested_dependencies = walk_dependencies(
126│ dependencies=project_requires,
127│ packages_by_name=packages_by_name,
RuntimeError
Dependency walk failed at amzi-pyras-lib (*) @ file:///home/fkluiben/git/enflex-core/lib/amzi_pyras_lib-0.7.7-py3-none-any.whl
at ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry_plugin_export/walker.py:155 in walk_dependencies
151│ requirement, packages_by_name, nested_dependencies
152│ )
153│
154│ if not locked_package:
→ 155│ raise RuntimeError(f"Dependency walk failed at {requirement}")
156│
157│ if requirement.extras:
158│ locked_package = locked_package.with_features(requirement.extras)
159│
The text was updated successfully, but these errors were encountered:
Description
Due to some intellectual property restrictions, one of my dependencies has a dependency to a wheel file. This 2nd degree dependency is available in my current project, which is structured like so:
As mentioned,
pyproject.toml
references a GitHub hosted package that itself has a file reference to lib/my_wheel.whl (see examplepyproject.toml
below.Running
poetry export -vvv --format=requirements.txt --with=dev --without-hashes
fails withWorkarounds
None
Poetry Installation Method
pipx
Operating System
Ubuntu 22.04.04
Poetry Version
Poetry (version 1.8.3)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: