Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The issue could mainly be the path for you shell and your shell script. It could also be that the environment that you are running in your shell maybe different from the one that you are using in your python script. Check this: extra_env=env</p> <p>If you are still unable to zero in on issue you can debug further with following options:</p> <p>You might want to use some debugging in your script to see the exact error. Using sys.exc_info() would be a good option to see stack details.</p> <p>you could use this piece of code in your exception block:</p> <pre><code>import sys tb = sys.exc_info()[2] lst = format_list(extract_stack()) for l in lst: print l, </code></pre> <p>or you could just use:</p> <pre><code>import traceback traceback.print_exc() </code></pre> <p>much cleaner :)</p> <p>Refer to: <a href="http://docs.python.org/library/traceback.html" rel="nofollow">traceback</a>, <a href="http://docs.python.org/library/sys.html" rel="nofollow">sys</a></p> <p>You can also run a python debugger to debug run_commands is executing as expected. Simply put these lines of code in your try block and you will get into the interactive python debugger mode.</p> <pre><code>try: import pdb pdb.set_trace() self.agent.run_commands(cmd, pwd=self.agent.test_dir, extra_env=env) </code></pre> <p>you can later type help in python debugger mode to see all options available. Refer: <a href="http://docs.python.org/library/pdb.html?highlight=pdb#module-pdb" rel="nofollow">pdb</a></p> <p>You could also use inspect module: <a href="http://docs.python.org/library/inspect.html?highlight=inspect#module-inspect" rel="nofollow">inspect module</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload