Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

KeyError: 'Unknown environment variable: $SHELL' #13

Closed
asmeurer opened this issue Jul 1, 2017 · 6 comments
Closed

KeyError: 'Unknown environment variable: $SHELL' #13

asmeurer opened this issue Jul 1, 2017 · 6 comments

Comments

@asmeurer
Copy link

asmeurer commented Jul 1, 2017

See regro/rever#22. I am getting this error

Traceback (most recent call last):
  File "/opt/conda/lib/python3.6/site-packages/xonsh/__amalgam__.py", line 13063, in run
    r = self.f(self.args, sp_stdin, sp_stdout, sp_stderr, spec)
  File "/opt/conda/lib/python3.6/site-packages/xonsh/__amalgam__.py", line 12885, in proxy_two
    return f(args, stdin)
  File "/opt/conda/lib/python3.6/site-packages/xontrib/xonda.xsh", line 92, in _xonda
    _activate(args[1])
  File "/opt/conda/lib/python3.6/site-packages/xontrib/xonda.xsh", line 70, in _activate
    $SHELL)
  File "/opt/conda/lib/python3.6/site-packages/xonsh/__amalgam__.py", line 16621, in __getitem__
    raise KeyError(e.format(key))
KeyError: 'Unknown environment variable: $SHELL'
@gforsyth
Copy link
Owner

gforsyth commented Jul 1, 2017

Hey @asmeurer -- see #14 for a fix

@gforsyth
Copy link
Owner

Fixed in #14

@pyeguy
Copy link

pyeguy commented Nov 12, 2017

hmm still getting this on windows 10 :

installed from github repo w/ xip install .

$ conda activate hifan
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
  File "C:\Users\camer\Anaconda3\lib\site-packages\xonsh\__amalgam__.py", line 13063, in run
    r = self.f(self.args, sp_stdin, sp_stdout, sp_stderr, spec)
  File "C:\Users\camer\Anaconda3\lib\site-packages\xonsh\__amalgam__.py", line 12885, in proxy_two
    return f(args, stdin)
  File "C:\Users\camer\Anaconda3\lib\site-packages\xontrib\xonda.xsh", line 92, in _xonda
    _deactivate()
  File "C:\Users\camer\Anaconda3\lib\site-packages\xontrib\xonda.xsh", line 70, in _activate
    print("No environment '{}' found".format(env_name))
  File "C:\Users\camer\Anaconda3\lib\site-packages\xonsh\__amalgam__.py", line 16621, in __getitem__
    raise KeyError(e.format(key))
KeyError: 'Unknown environment variable: $SHELL'

@pyeguy
Copy link

pyeguy commented Nov 12, 2017

hmm actually seems to be only in combination with a autoxsh script...

@gforsyth
Copy link
Owner

Hey @pyeguy -- sorry, that's because I never put out a new release after adding a fix. Doing that now.

@gforsyth
Copy link
Owner

Hey @pyeguy -- if you upgrade xonda it should stop complaining about $SHELL but let me know if it doesn't. Thanks.

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

No branches or pull requests

3 participants