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

AttributeError: 'XonshSession' object has no attribute 'env' #1

Closed
anki-code opened this issue Mar 7, 2020 · 3 comments
Closed

AttributeError: 'XonshSession' object has no attribute 'env' #1

anki-code opened this issue Mar 7, 2020 · 3 comments

Comments

@anki-code
Copy link
Member

anki-code commented Mar 7, 2020

Traceback (most recent call last):
....
  File "/tmp/.mount_xonshS434io/usr/python/lib/python3.8/site-packages/xonsh/environ.py", line 386, in style_name
    env = builtins.__xonsh__.env
AttributeError: 'XonshSession' object has no attribute 'env'
Xonsh encountered an issue during launch
Failback to /bin/sh
$ 

For community:
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code
Copy link
Member Author

anki-code commented Mar 7, 2020

@anki-code
Copy link
Member Author

anki-code commented Mar 10, 2020

@seanfarley I have a great news! This issue has solved in new xonsh.AppImage build.

Now you can run xonsh scripts without errors:

xxh host
echo "print('123')" > go.xsh
xonsh go.xsh
123

Just update your build:

cd ~/.xxh/xxh/shells/
rm -rf xxh-shell-xonsh-appimage
git clone https://github.com/xxh/xxh-shell-xonsh-appimage
./xxh-shell-xonsh-appimage/build.xsh
xxh host +if

And check xxh version, the latest 0.4.5.

@seanfarley
Copy link

Cool!

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

2 participants