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

env: illegal option -- 0 #28

Open
toddkaufmann opened this issue Dec 8, 2021 · 0 comments
Open

env: illegal option -- 0 #28

toddkaufmann opened this issue Dec 8, 2021 · 0 comments

Comments

@toddkaufmann
Copy link

This occurs when the remote host is OSX, and maybe other flavors of BSD, which have env which do not support the -0 flag.
image

This seems to confuse jupyter about the cell's status (note [*]like it's still running)
as well as return code, though it does execute subsequent cells.

One fix (using gnu's env from brew) is:

  1. brew install coreutils
  2. echo PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:/usr/bin:/bin:/usr/sbin:/sbin . ~/.ssh/environment
  3. Uncomment the line PermitUserEnvironment yes from /etc/ssh/sshd_config,
    or sshd will ignore this file.
  4. execute %login cell in your notebook again to get a new sshd connection and realize the new environment changes.

After this all is fine:
image
Hopes this helps anyone else encountering the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant