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 failure: poetry #281034

Closed
l0b0 opened this issue Jan 14, 2024 · 6 comments
Closed

Build failure: poetry #281034

l0b0 opened this issue Jan 14, 2024 · 6 comments
Labels
0.kind: build failure A package fails to build

Comments

@l0b0
Copy link
Contributor

l0b0 commented Jan 14, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run nix-build -A pkgs.poetry on current nixos-unstable (9b19f5e)

Build log

this derivation will be built:
  /nix/store/pbxs5lrhhwb9yvhw7ys9cpk0mhi4a1b9-python3.11-poetry-1.7.1.drv
building '/nix/store/pbxs5lrhhwb9yvhw7ys9cpk0mhi4a1b9-python3.11-poetry-1.7.1.drv'...
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
unpacking source archive /nix/store/majy4dqb6xkvr7xah3ipwl7ibzbhv57h-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/vcs/git/test_system.py
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
* Getting build dependencies for wheel...
* Building wheel...
Successfully built poetry-1.7.1-py3-none-any.whl
Finished creating a wheel...
/build/source/dist /build/source
Unpacking to: unpacked/poetry-1.7.1...OK
Repacking wheel as ./poetry-1.7.1-py3-none-any.whl...creating './poetry-1.7.1-py3-none-any.whl' and adding 'unpacked/poetry-1.7.1' to it
adding 'poetry/__main__.py'
adding 'poetry/__version__.py'
adding 'poetry/exceptions.py'
adding 'poetry/factory.py'
adding 'poetry/locations.py'
adding 'poetry/poetry.py'
adding 'poetry/py.typed'
adding 'poetry/config/__init__.py'
adding 'poetry/config/config.py'
adding 'poetry/config/config_source.py'
adding 'poetry/config/dict_config_source.py'
adding 'poetry/config/file_config_source.py'
adding 'poetry/config/source.py'
adding 'poetry/console/__init__.py'
adding 'poetry/console/application.py'
adding 'poetry/console/command_loader.py'
adding 'poetry/console/exceptions.py'
adding 'poetry/console/commands/__init__.py'
adding 'poetry/console/commands/about.py'
adding 'poetry/console/commands/add.py'
adding 'poetry/console/commands/build.py'
adding 'poetry/console/commands/check.py'
adding 'poetry/console/commands/command.py'
adding 'poetry/console/commands/config.py'
adding 'poetry/console/commands/env_command.py'
adding 'poetry/console/commands/export.py'
adding 'poetry/console/commands/group_command.py'
adding 'poetry/console/commands/init.py'
adding 'poetry/console/commands/install.py'
adding 'poetry/console/commands/installer_command.py'
adding 'poetry/console/commands/lock.py'
adding 'poetry/console/commands/new.py'
adding 'poetry/console/commands/publish.py'
adding 'poetry/console/commands/remove.py'
adding 'poetry/console/commands/run.py'
adding 'poetry/console/commands/search.py'
adding 'poetry/console/commands/shell.py'
adding 'poetry/console/commands/show.py'
adding 'poetry/console/commands/update.py'
adding 'poetry/console/commands/version.py'
adding 'poetry/console/commands/cache/__init__.py'
adding 'poetry/console/commands/cache/clear.py'
adding 'poetry/console/commands/cache/list.py'
adding 'poetry/console/commands/debug/__init__.py'
adding 'poetry/console/commands/debug/info.py'
adding 'poetry/console/commands/debug/resolve.py'
adding 'poetry/console/commands/env/__init__.py'
adding 'poetry/console/commands/env/info.py'
adding 'poetry/console/commands/env/list.py'
adding 'poetry/console/commands/env/remove.py'
adding 'poetry/console/commands/env/use.py'
adding 'poetry/console/commands/self/__init__.py'
adding 'poetry/console/commands/self/add.py'
adding 'poetry/console/commands/self/install.py'
adding 'poetry/console/commands/self/lock.py'
adding 'poetry/console/commands/self/remove.py'
adding 'poetry/console/commands/self/self_command.py'
adding 'poetry/console/commands/self/update.py'
adding 'poetry/console/commands/self/show/__init__.py'
adding 'poetry/console/commands/self/show/plugins.py'
adding 'poetry/console/commands/source/__init__.py'
adding 'poetry/console/commands/source/add.py'
adding 'poetry/console/commands/source/remove.py'
adding 'poetry/console/commands/source/show.py'
adding 'poetry/console/events/__init__.py'
adding 'poetry/console/events/console_events.py'
adding 'poetry/console/io/__init__.py'
adding 'poetry/console/io/inputs/__init__.py'
adding 'poetry/console/io/inputs/run_argv_input.py'
adding 'poetry/console/logging/__init__.py'
adding 'poetry/console/logging/filters.py'
adding 'poetry/console/logging/io_formatter.py'
adding 'poetry/console/logging/io_handler.py'
adding 'poetry/console/logging/formatters/__init__.py'
adding 'poetry/console/logging/formatters/builder_formatter.py'
adding 'poetry/console/logging/formatters/formatter.py'
adding 'poetry/inspection/__init__.py'
adding 'poetry/inspection/info.py'
adding 'poetry/installation/__init__.py'
adding 'poetry/installation/chef.py'
adding 'poetry/installation/chooser.py'
adding 'poetry/installation/executor.py'
adding 'poetry/installation/installer.py'
adding 'poetry/installation/wheel_installer.py'
adding 'poetry/installation/operations/__init__.py'
adding 'poetry/installation/operations/install.py'
adding 'poetry/installation/operations/operation.py'
adding 'poetry/installation/operations/uninstall.py'
adding 'poetry/installation/operations/update.py'
adding 'poetry/json/__init__.py'
adding 'poetry/json/schemas/poetry.json'
adding 'poetry/layouts/__init__.py'
adding 'poetry/layouts/layout.py'
adding 'poetry/layouts/src.py'
adding 'poetry/layouts/standard.py'
adding 'poetry/masonry/__init__.py'
adding 'poetry/masonry/api.py'
adding 'poetry/masonry/builders/__init__.py'
adding 'poetry/masonry/builders/editable.py'
adding 'poetry/mixology/__init__.py'
adding 'poetry/mixology/assignment.py'
adding 'poetry/mixology/failure.py'
adding 'poetry/mixology/incompatibility.py'
adding 'poetry/mixology/incompatibility_cause.py'
adding 'poetry/mixology/partial_solution.py'
adding 'poetry/mixology/result.py'
adding 'poetry/mixology/set_relation.py'
adding 'poetry/mixology/term.py'
adding 'poetry/mixology/version_solver.py'
adding 'poetry/mixology/solutions/__init__.py'
adding 'poetry/mixology/solutions/providers/__init__.py'
adding 'poetry/mixology/solutions/providers/python_requirement_solution_provider.py'
adding 'poetry/mixology/solutions/solutions/__init__.py'
adding 'poetry/mixology/solutions/solutions/python_requirement_solution.py'
adding 'poetry/packages/__init__.py'
adding 'poetry/packages/dependency_package.py'
adding 'poetry/packages/direct_origin.py'
adding 'poetry/packages/locker.py'
adding 'poetry/packages/package_collection.py'
adding 'poetry/plugins/__init__.py'
adding 'poetry/plugins/application_plugin.py'
adding 'poetry/plugins/base_plugin.py'
adding 'poetry/plugins/plugin.py'
adding 'poetry/plugins/plugin_manager.py'
adding 'poetry/publishing/__init__.py'
adding 'poetry/publishing/publisher.py'
adding 'poetry/publishing/uploader.py'
adding 'poetry/puzzle/__init__.py'
adding 'poetry/puzzle/exceptions.py'
adding 'poetry/puzzle/provider.py'
adding 'poetry/puzzle/solver.py'
adding 'poetry/puzzle/transaction.py'
adding 'poetry/pyproject/__init__.py'
adding 'poetry/pyproject/toml.py'
adding 'poetry/repositories/__init__.py'
adding 'poetry/repositories/abstract_repository.py'
adding 'poetry/repositories/cached_repository.py'
adding 'poetry/repositories/exceptions.py'
adding 'poetry/repositories/http_repository.py'
adding 'poetry/repositories/installed_repository.py'
adding 'poetry/repositories/legacy_repository.py'
adding 'poetry/repositories/lockfile_repository.py'
adding 'poetry/repositories/pypi_repository.py'
adding 'poetry/repositories/repository.py'
adding 'poetry/repositories/repository_pool.py'
adding 'poetry/repositories/single_page_repository.py'
adding 'poetry/repositories/link_sources/__init__.py'
adding 'poetry/repositories/link_sources/base.py'
adding 'poetry/repositories/link_sources/html.py'
adding 'poetry/repositories/link_sources/json.py'
adding 'poetry/repositories/parsers/__init__.py'
adding 'poetry/repositories/parsers/html_page_parser.py'
adding 'poetry/repositories/parsers/pypi_search_parser.py'
adding 'poetry/toml/__init__.py'
adding 'poetry/toml/exceptions.py'
adding 'poetry/toml/file.py'
adding 'poetry/utils/__init__.py'
adding 'poetry/utils/_compat.py'
adding 'poetry/utils/authenticator.py'
adding 'poetry/utils/cache.py'
adding 'poetry/utils/constants.py'
adding 'poetry/utils/dependency_specification.py'
adding 'poetry/utils/extras.py'
adding 'poetry/utils/helpers.py'
adding 'poetry/utils/password_manager.py'
adding 'poetry/utils/patterns.py'
adding 'poetry/utils/pip.py'
adding 'poetry/utils/setup_reader.py'
adding 'poetry/utils/shell.py'
adding 'poetry/utils/source.py'
adding 'poetry/utils/wheel.py'
adding 'poetry/utils/env/__init__.py'
adding 'poetry/utils/env/base_env.py'
adding 'poetry/utils/env/env_manager.py'
adding 'poetry/utils/env/exceptions.py'
adding 'poetry/utils/env/generic_env.py'
adding 'poetry/utils/env/mock_env.py'
adding 'poetry/utils/env/null_env.py'
adding 'poetry/utils/env/script_strings.py'
adding 'poetry/utils/env/site_packages.py'
adding 'poetry/utils/env/system_env.py'
adding 'poetry/utils/env/virtual_env.py'
adding 'poetry/vcs/__init__.py'
adding 'poetry/vcs/git/__init__.py'
adding 'poetry/vcs/git/backend.py'
adding 'poetry/vcs/git/system.py'
adding 'poetry/version/__init__.py'
adding 'poetry/version/version_selector.py'
adding 'poetry-1.7.1.dist-info/LICENSE'
adding 'poetry-1.7.1.dist-info/METADATA'
adding 'poetry-1.7.1.dist-info/WHEEL'
adding 'poetry-1.7.1.dist-info/entry_points.txt'
adding 'poetry-1.7.1.dist-info/RECORD'
OK
/build/source
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for poetry-1.7.1-py3-none-any.whl
  - fastjsonschema not installed
  - platformdirs<4.0.0,>=3.0.0 not satisfied by version 4.0.0
error: builder for '/nix/store/pbxs5lrhhwb9yvhw7ys9cpk0mhi4a1b9-python3.11-poetry-1.7.1.drv' failed with exit code 1;
       last 25 log lines:
       > adding 'poetry/utils/env/mock_env.py'
       > adding 'poetry/utils/env/null_env.py'
       > adding 'poetry/utils/env/script_strings.py'
       > adding 'poetry/utils/env/site_packages.py'
       > adding 'poetry/utils/env/system_env.py'
       > adding 'poetry/utils/env/virtual_env.py'
       > adding 'poetry/vcs/__init__.py'
       > adding 'poetry/vcs/git/__init__.py'
       > adding 'poetry/vcs/git/backend.py'
       > adding 'poetry/vcs/git/system.py'
       > adding 'poetry/version/__init__.py'
       > adding 'poetry/version/version_selector.py'
       > adding 'poetry-1.7.1.dist-info/LICENSE'
       > adding 'poetry-1.7.1.dist-info/METADATA'
       > adding 'poetry-1.7.1.dist-info/WHEEL'
       > adding 'poetry-1.7.1.dist-info/entry_points.txt'
       > adding 'poetry-1.7.1.dist-info/RECORD'
       > OK
       > /build/source
       > Finished executing pypaBuildPhase
       > Running phase: pythonRuntimeDepsCheckHook
       > Executing pythonRuntimeDepsCheck
       > Checking runtime dependencies for poetry-1.7.1-py3-none-any.whl
       >   - fastjsonschema not installed
       >   - platformdirs<4.0.0,>=3.0.0 not satisfied by version 4.0.0
       For full logs, run 'nix log /nix/store/pbxs5lrhhwb9yvhw7ys9cpk0mhi4a1b9-python3.11-poetry-1.7.1.drv'.

Notify maintainers

@jbaum98 @dotlambda @adisbladis

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.1.72, NixOS, 24.05 (Uakari), 24.05pre571036.9b19f5e77dd9
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.1
  • channels(root): "nixos, nixos-unstable"
  • channels(username): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Add a 👍 reaction to issues you find important.

@l0b0 l0b0 added the 0.kind: build failure A package fails to build label Jan 14, 2024
@TomaSajt
Copy link
Contributor

TomaSajt commented Jan 14, 2024

This seems to have already been fixed on master

@l0b0
Copy link
Contributor Author

l0b0 commented Jan 14, 2024

This seems to have been already fixed on master

#280522, to be precise.

Workaround: nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/48eaf250701d20017dfbd8cde3bcf53226910605.tar.gz --packages poetry

Closing.

@con-f-use
Copy link
Contributor

Just wondering, how did that make its way to unstable without the tests catching it? Poetry seems a reasonably well used and depended on package.

@TomaSajt
Copy link
Contributor

Just wondering, how did that make its way to unstable without the tests catching it? Poetry seems a reasonably well used and depended on package.

Maybe poetry-core is depended upon, but AFAIK poetry isn't used much inside nixpkgs

@arichtman
Copy link

Oh that's interesting. I found it too easy to have issues if I defined poetry as a dependency in pyproject.toml. Is there some other way people are doing it?

@dotlambda
Copy link
Member

Is there some other way people are doing it?

https://github.com/python-poetry/poetry-core/blob/main/README.md#usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

5 participants