SIPp / pysipp

SIPp for Humans - launch multiple agents with Python
GNU General Public License v2.0
179 stars 55 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '-sn': '-sn' #71

Closed 1273082756 closed 1 year ago

1273082756 commented 3 years ago

import pysipp pysipp.client(auth_username='xxx', auth_password='xxx')()

The following problems occur

FileNotFoundError: [Errno 2] No such file or directory: '-sn': '-sn'

1273082756 commented 3 years ago

Python 3.6.8 (default, Aug 24 2020, 17:57:11) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information.

import pysipp pysipp.client(auth_username='xxx', auth_password='xxx')()

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.6/site-packages/pysipp/agent.py", line 75, in call raise_exc=raise_exc, *kwargs File "/usr/local/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in call return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/local/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/local/lib/python3.6/site-packages/pluggy/manager.py", line 87, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/local/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/local/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/local/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(args) File "/usr/local/lib/python3.6/site-packages/pysipp/init.py", line 236, in pysipp_run_protocol block=block, timeout=timeout File "/usr/local/lib/python3.6/site-packages/pysipp/launch.py", line 67, in call stderr=sp.PIPE File "/usr/lib64/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '-sn': '-sn'

kontsaki commented 3 years ago

hey @1273082756 do have you sipp installed on the machine running the snippet?

pablodz commented 2 years ago

Need to compile sipp and add the bin to PATH. Similar to #77

goodboy commented 1 year ago

Yes this is duplicate of #77.