pyrasite icon indicating copy to clipboard operation
pyrasite copied to clipboard

NameError: global name 'ipc_timeout' is not defined

Open andrewkcarter opened this issue 7 years ago • 1 comments

When running with --output localterm, the ipc_timeout variable is undefined.

~/pyrasite-develop# pyrasite --output localterm --ipc-timeout 5 1 dump_stacks.py
Traceback (most recent call last):
  File "/usr/local/bin/pyrasite", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/pyrasite/main.py", line 137, in main
    timeout=ipc_timeout)
NameError: global name 'ipc_timeout' is not defined

The reference on line 137 needs to be args.ipc_timeout, not simply ipc_timeout.

andrewkcarter avatar Sep 06 '17 03:09 andrewkcarter

I made pull request for this issue: https://github.com/lmacken/pyrasite/pull/69

artms avatar Oct 06 '17 16:10 artms