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.

.ipy: Exit status from missing ! executable

See original GitHub issue

Is it possible to read exit status from command in .ipy script for error reporting?

#!/usr/bin/env ipython

res = !mediainfo

From this output I can only see SList object with text about missing command that is too specific for underlying shell to parse. Is it possible to store exit status there somehow?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
takluyvercommented, May 27, 2018

It sticks a variable _exit_code in the namespace.

0reactions
techtonikcommented, Jun 17, 2018

subprocess.run() is not convenient to use IPython as a shell replacement, so I opened #11194 for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`res = !foo` doesn't set `_exit_code` · Issue #11194 · ipython ...
It is convenient to use IPython as a shell replacement. However, the handling of exit codes is not consistent. _exit_code is set when...
Read more >
My Steam game is missing an executable. How do I fix this?
Completely exit Steam. 2. Navigate to your Steam installation folder (~C:\Program Files\Steam). 3. Delete the 'appcache' folder.
Read more >
Steam Missing Executable | How To Fix - Player Assist
The first and easiest method to fix a missing executable is to verify the integrity of the game files. Open your Steam Library,...
Read more >
Fix: Failed to start game (missing executable) - Appuals.com
Solution 1: Verifying integrity of game files and repairing library. Missing executable means there is a file missing from your game's directory ...
Read more >
Failed to Start Game (Missing Executable) - Steam Support
This error is seen when a game file is missing or is being blocked by another program. Here are some troubleshooting steps to...
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