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
Xonsh crashes on start, importing prompt_toolkit -> wcwidth fails #3607
Comments
I was just bitten by this as well, it resulted in an infinite login loop since i had my (and root's) default shell set to xonsh. |
Hopefully, helps out an xonsh issue on fedora? xonsh/xonsh#3607
I maintain the wcwidth library, and this line of code that is crashing has always been a part of wcwidth since the first release in 2015. I'm sorry it is causing trouble. The code in
Anyway, I will produce a new wcwidth release to pypi, 0.2.4, where the package version is hardcoded, I hope that helps. |
Thanks a bunch jquast, I can only agree with the comment in your new code about different issues popping up quite often in xonsh. However I still like it too much to leave over it :) I think this issue should remain open at least until 0.2.4 is in the fedora repos. Then I guess it won't affect anyone anymore. |
Updating to |
Sorry I couldn't help more, best of luck |
Problem seems to be that However, I was not able to find out what causes the problem to occur recently, as the |
There seems to be something wrong with Python in Fedora recently. @swedneck, if I remember correctly, has also some issues with Python paths and loading of modules. Xonsh should, however, not crash like this. A PR would be very welcome. |
…sources would expect. Fixes xonsh#3607
…sources would expect. Fixes xonsh#3607 Signed-off-by: Achim Herwig <achim.herwig@wodca.de>
…sources would expect. Fixes xonsh#3607 Signed-off-by: Achim Herwig <achim.herwig@wodca.de>
Xonsh crashes on startup with a "NotImplementedError" coming from pkg_resources during import of prompt_toolkit -> wcwidth.
The error does not occur with
xonsh --no-rc
, however usingsource .config/xonsh/rc.xsh
works fine.Using print statements I have also checked that the rc actually is fully loaded before the crash.
The error started happening after fedora updated wcwidth from 0.1.9 to 0.2.3.
As a temporary workaround, manually downgrading to 0.1.9 seems to restore working function to xonsh.
Another workaround, keeping the newer version, is to place
from wcwidth import wcwidth
in xonshrc (thus skipping xonsh's custom module loading code, I assume).xonfig
This is the xonfig when using
xonsh --no-rc
followed bysource .config/xonsh/rc.xsh
.Traceback
The text was updated successfully, but these errors were encountered: