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

bpython depends on which #56941

Closed
memberbetty opened this issue Mar 6, 2019 · 9 comments · Fixed by #89439
Closed

bpython depends on which #56941

memberbetty opened this issue Mar 6, 2019 · 9 comments · Fixed by #89439

Comments

@memberbetty
Copy link
Contributor

Issue description

File "/nix/store/80qva2zal82njkg4zvb7xg94mnikqksd-python3-3.6.8/lib/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'which': 'which'

Steps to reproduce

Create a pure nix shell with python36Packages.bpython and execute bpython.

Technical details

18.09.

@dotlambda
Copy link
Member

We should patch the call of which in https://github.com/bpython/bpython/blob/0.17.1-release/bpython/clipboard.py using substituteAll.
cc maintainer @flokli

@flokli
Copy link
Contributor

flokli commented Mar 12, 2019

@dotlambda it also tries to also call out to at least xclip (on Linux), pbcopy (on Darwin), and less - should we patch these in, too?

@dotlambda
Copy link
Member

I don't think so as bpython shouldn't depend on X.

@memberbetty
Copy link
Contributor Author

On Linux it should have xclip in its dependencies. Otherwise --pure is still going to fail.

The whole point of being able to run something via nix-shell --pure is that all dependencies are in, and if you have to know about random run-time dependencies that are not obvious, some advantages are nullified.

@dotlambda
Copy link
Member

However, the whole point of bpython calling which is to make the dependency on xclip optional. It will hence not fail without it.

@memberbetty
Copy link
Contributor Author

Fair point, but I prefer to have programs that are fully featured by default. People that run on limited platforms can make a more complicated expression optimized for their use cases.

@dotlambda
Copy link
Member

@memberbetty If you do the PR, I won't reject patching in the path to xclip.

@stale
Copy link

stale bot commented Jun 3, 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 3, 2020
flokli added a commit to flokli/nixpkgs that referenced this issue Jun 3, 2020
This is used to detect the presence of xclip and other clipboard
handling tools.

Fixes NixOS#56941.
@flokli
Copy link
Contributor

flokli commented Jun 3, 2020

I prefered not dragging in xclip and all its dependencies by default and opened #89439. On systems with xclip in $PATH, this should do the right thing - PTAL.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants