question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failing to detect xonsh shell because of `python` process name prefix.

See original GitHub issue

I’m having issues with xonsh on arch linux 5.5.0.

Shellingham fails to detect the xonsh process as it comes with a python prefix as it’s a python program:

$ ps -ww -o "pid=" -o "ppid=" -o "args="                                                                              
   1633    1624 python /usr/bin/xonsh

I’ve investigated shellingham’s code and it seems like the first argument is taken to determine the shell process which in this case is python, where the second argument is the correct one in this case (/usr/bin/xonsh).

It seems that python prefix here is unatural but I can’t debug why my machine persists on attaching it. Might be an issue with qtile environment. Thus I’m not sure whether upstream changes are warranted.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eli-schwartzcommented, Mar 9, 2020

This is probably because I have python-setproctitle installed, and xonsh avoids saying dependencies are actually required (I’m not sure why) so this can be silently ignored.

https://github.com/xonsh/xonsh/pull/654

1reaction
uranusjrcommented, Feb 12, 2020

Released as 1.3.2. Thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial - xonsh 0.13.4 documentation
xonsh is a shell language and command prompt. Unlike other shells, xonsh is based on Python, with additional syntax added that makes calling...
Read more >
should there be an alternative to env vars for configuring ...
While reviewing PR #495 I saw yet another environment variable being introduced to control how xonsh behaves. This bothers me.
Read more >
Xonsh: Bringing Python Data Science to your Shell - YouTube
Xonsh is an interactive, cross-platform Python /Unix Shell hybrid language that makes it easy to switch between Python operations and command ...
Read more >
Using xonsh as python shell - Emacs Stack Exchange
I suggest you use for interactive xonsh sessions shell-mode instead. ... in Emacs set explicit-shell-file-name to your xonsh executable.
Read more >
anaconda - Conda activate not working? - Stack Overflow
Did you check your env folder? Mine was empty because i didnt provide a python version. If its empty gets activated but theres...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found