datakurre / pip2nix

Freeze pip-installable packages into Nix expressions [maintainer=@datakurre]
3 stars 1 forks source link

pip2nix is broken with pip 20.1 #17

Closed datakurre closed 4 years ago

datakurre commented 4 years ago
Requirement already satisfied: pip>=18 in ./_bootstrap_env/lib/python2.7/site-packages (from pip2nix==0.9.0.dev1) (20.1)

Collecting configobj>=5

  Downloading configobj-5.0.6.tar.gz (33 kB)

Collecting click

  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)

     |████████████████████████████████| 82 kB 19 kB/s 

Collecting contexter

  Downloading contexter-0.1.4-py2-none-any.whl (7.0 kB)

Collecting jinja2

  Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)

     |████████████████████████████████| 125 kB 8.9 MB/s 

Collecting toml

  Downloading toml-0.10.1-py2.py3-none-any.whl (19 kB)

Collecting six

  Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)

Collecting MarkupSafe>=0.23

  Downloading MarkupSafe-1.1.1-cp27-cp27mu-manylinux1_x86_64.whl (24 kB)

Building wheels for collected packages: configobj

  Building wheel for configobj (setup.py) ... done

  Created wheel for configobj: filename=configobj-5.0.6-py2-none-any.whl size=34546 sha256=3a4a74e60a6fd8626d36b35fc3b3ed0cd3be1e852399a7d1057f6a627939d598

  Stored in directory: /home/travis/.cache/pip/wheels/c1/12/7a/c676d85d30d1aa17f3882dab925a777ab1f651c4072cccefd7

Successfully built configobj

Installing collected packages: six, configobj, click, contexter, MarkupSafe, jinja2, toml, pip2nix

  Running setup.py develop for pip2nix

Successfully installed MarkupSafe-1.1.1 click-7.1.2 configobj-5.0.6 contexter-0.1.4 jinja2-2.11.2 pip2nix six-1.14.0 toml-0.10.1

Traceback (most recent call last):

  File "./_bootstrap_env/bin/pip2nix", line 11, in <module>

    load_entry_point('pip2nix', 'console_scripts', 'pip2nix')()

  File "/home/travis/build/datakurre/pip2nix/_bootstrap_env/local/lib/python2.7/site-packages/click/core.py", line 829, in __call__

    return self.main(*args, **kwargs)

  File "/home/travis/build/datakurre/pip2nix/_bootstrap_env/local/lib/python2.7/site-packages/click/core.py", line 782, in main

    rv = self.invoke(ctx)

  File "/home/travis/build/datakurre/pip2nix/_bootstrap_env/local/lib/python2.7/site-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

  File "/home/travis/build/datakurre/pip2nix/_bootstrap_env/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke

    return ctx.invoke(self.callback, **ctx.params)

  File "/home/travis/build/datakurre/pip2nix/_bootstrap_env/local/lib/python2.7/site-packages/click/core.py", line 610, in invoke

    return callback(*args, **kwargs)

  File "/home/travis/build/datakurre/pip2nix/pip2nix/cli.py", line 70, in generate

    from pip2nix.main import main

  File "/home/travis/build/datakurre/pip2nix/pip2nix/main.py", line 9, in <module>

    from .generate import NixFreezeCommand

  File "/home/travis/build/datakurre/pip2nix/pip2nix/generate.py", line 25, in <module>

    from pip._internal.legacy_resolve import Resolver

ImportError: No module named legacy_resolve

The command "if [ "$MODE" == "bootstrap" ]; then ./bootstrap.sh && git --no-pager diff; fi" exited with 1.
datakurre commented 4 years ago

pip2nix is known to break on new pip releases due to its requirement to rely on pip internal API; I will fix this eventually once 20.1 gets into nixpkgs unstable. 20.0.2 works fine

datakurre commented 4 years ago

Moved issue to https://github.com/nix-community/pip2nix/issues/56