Skip to content

Swift CLI errors due to missing runtime dependency #20

@eahlberg

Description

@eahlberg

Hi,

The Swift CLI errors at runtime:

$ "$(nix build github:cobaltcore-dev/openstack-nix#python-swiftclient --print-out-paths --no-link)/bin/swift"
Traceback (most recent call last):
  File "/nix/store/hpvpnp495qyzljsk0rbidk9i2ig7yv5s-python3.12-python-swiftclient-4.6.0/bin/.swift-wrapped", line 6, in <module>
    from swiftclient.shell import main
  File "/nix/store/hpvpnp495qyzljsk0rbidk9i2ig7yv5s-python3.12-python-swiftclient-4.6.0/lib/python3.12/site-packages/swiftclient/__init__.py", line 19, in <module>
    from .client import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/hpvpnp495qyzljsk0rbidk9i2ig7yv5s-python3.12-python-swiftclient-4.6.0/lib/python3.12/site-packages/swiftclient/client.py", line 22, in <module>
    from urllib3.exceptions import HTTPError as urllib_http_error
ModuleNotFoundError: No module named 'urllib3'

Looks like propagagedBuildInputs should be propagatedBuildInputs here:
https://github.com/cobaltcore-dev/openstack-nix/blob/main/packages/python-swiftclient.nix#L29

If you'd like I'll open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions