nix-community/pypi2nix

Error when running pypi2nix command: backoff==1.10.0

Opened this issue · 0 comments

I am using pypi2nix for the first time.

A module which does not exist in nix packages and I would like to add is backoff. My understanding is that the first step to do that is to create a nix expression via the pypi2nix module.

I ran: pypi2nix -e backoff==1.10.0 and after some updates to the /nix/store I received the following error:

created 255 symlinks in user environment
  ERROR: Command errored out with exit status 1:
   command: /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/bin/python3.7 /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/tmp_g4q9f9t/pip-build-env-7tnmxbmz/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=0.12'
       cwd: None
  Complete output (50 lines):
  Collecting poetry>=0.12
    Downloading poetry-1.0.5.tar.gz (165 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/bin/python3.7 /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp_g4q9f9t/tmpk9yxfkuo
         cwd: /tmp/tmp_g4q9f9t/pip-install-co8dpgiv/poetry
    Complete output (36 lines):
    Traceback (most recent call last):
      File "/nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
        main()
      File "/nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
        return hook(config_settings)
      File "/tmp/tmp_g4q9f9t/pip-build-env-j2b8ykp3/overlay/lib/python3.7/site-packages/intreehooks.py", line 53, in get_requires_for_build_wheel
        return self._backend.get_requires_for_build_sdist(config_settings)
      File "/tmp/tmp_g4q9f9t/pip-build-env-j2b8ykp3/overlay/lib/python3.7/site-packages/intreehooks.py", line 38, in _backend
        obj = self._module_from_dir(modname)
      File "/tmp/tmp_g4q9f9t/pip-build-env-j2b8ykp3/overlay/lib/python3.7/site-packages/intreehooks.py", line 25, in _module_from_dir
        mod = importlib.import_module(modname)
      File "/nix/store/q732h09azy7lf0j30bnnhdl15p4rxpdy-python3-3.7.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "/tmp/tmp_g4q9f9t/pip-install-co8dpgiv/poetry/poetry/masonry/__init__.py", line 10, in <module>
        from .builder import Builder
      File "/tmp/tmp_g4q9f9t/pip-install-co8dpgiv/poetry/poetry/masonry/builder.py", line 1, in <module>
        from .builders.complete import CompleteBuilder
      File "/tmp/tmp_g4q9f9t/pip-install-co8dpgiv/poetry/poetry/masonry/builders/__init__.py", line 1, in <module>
        from .complete import CompleteBuilder
      File "/tmp/tmp_g4q9f9t/pip-install-co8dpgiv/poetry/poetry/masonry/builders/complete.py", line 6, in <module>
        from poetry.factory import Factory
      File "/tmp/tmp_g4q9f9t/pip-install-co8dpgiv/poetry/poetry/factory.py", line 10, in <module>
        from clikit.api.io.io import IO
    ModuleNotFoundError: No module named 'clikit'
    ----------------------------------------
  ERROR: Command errored out with exit status 1: /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/bin/python3.7 /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp_g4q9f9t/tmpk9yxfkuo Check the logs for full command output.
  WARNING: You are using pip version 20.0.dev0; however, version 20.1.1 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/bin/python3.7 /nix/store/zkppv237vmhn74yx39k3n1rmrpjbhccn-python3-3.7.7-env/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/tmp_g4q9f9t/pip-build-env-7tnmxbmz/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'poetry>=0.12' Check the logs for full command output.
WARNING: You are using pip version 20.0.dev0; however, version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
ERROR: Collecting backoff==1.10.0
ERROR:   Downloading backoff-1.10.0.tar.gz (13 kB)
ERROR:   Saved /tmp/tmp_g4q9f9t/download/backoff-1.10.0.tar.gz
ERROR:   Installing build dependencies: started