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

python2nix: old/wrong/missing dependency? #30887

Closed
Moredread opened this issue Oct 28, 2017 · 4 comments
Closed

python2nix: old/wrong/missing dependency? #30887

Moredread opened this issue Oct 28, 2017 · 4 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python

Comments

@Moredread
Copy link
Contributor

Issue description

python2nix doesn't work on stable-17.09.

> python2nix
Traceback (most recent call last):
  File "/nix/store/z313xd7cpglh486jd08ckxgsjrgifijm-python2nix-20140927/bin/.python2nix-wrapped", line 8, in <module>
    from python2nix import main
  File "/nix/store/z313xd7cpglh486jd08ckxgsjrgifijm-python2nix-20140927/lib/python2.7/site-packages/python2nix/__init__.py", line 5, in <module>
    from python2nix import pip_deps
  File "/nix/store/z313xd7cpglh486jd08ckxgsjrgifijm-python2nix-20140927/lib/python2.7/site-packages/python2nix/pip_deps.py", line 15, in <module>
    from pip.log import logger
ImportError: No module named log

Steps to reproduce

Run

> nix-env -i python2nix
> python2nix

Technical details

  • System: 17.09.1880.ac2bb5684c (Hummingbird)
  • Nix version: nix-env (Nix) 1.11.15
  • Nixpkgs version: 17.09.1880.ac2bb5684c
  • Sandboxing enabled: yes
@FRidh
Copy link
Member

FRidh commented Oct 28, 2017

This is an old package that, as far as I know, is no longer developed/maintained, and should therefore be removed.

@Moredread
Copy link
Contributor Author

It has recent commits though in the repo.

https://github.com/proger/python2nix

@jonafato
Copy link
Contributor

From the source repo:

Tested only with pip==1.5.6.

This version dependency on a 3.5 year old pip is the cause of the issue, and the breaking change happened just a few months after that release.

This bug and its fix should be tracked in the upstream package. The package will likely remain broken until an upstream fix is made. In the mean time, the nixpkgs manual lists a few alternate options.

ariutta added a commit to ariutta/nixpkgs that referenced this issue Dec 6, 2019
Added pip2nix, nixpkgs-pytools and poetry2nix. Removed [python2nix](https://github.com/proger/python2nix), because it's been broken [since 2017](NixOS#30887) and is [still broken](proger/python2nix#6).
@stale
Copy link

stale bot commented Jun 5, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 5, 2020
@Moredread Moredread closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python
Projects
None yet
Development

No branches or pull requests

3 participants