urjitbhatia/cozgo

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

Opened this issue · 0 comments

smjure commented

Thank you for the wrapper. I followed the Usage steps, all went well including the installation of the github.com/plasma-umass/coz. When I tried to test it via your example, the following error is thrown when running coz run --- cozgo. I checked and the built cozgo file is in the folder. How to fix it, thank you.

coz run --- cozgo
Traceback (most recent call last):
  File "/usr/bin/coz", line 184, in <module>
    run_command_line()
  File "/usr/bin/coz", line 36, in run_command_line
    args.func(args)
  File "/usr/bin/coz", line 108, in _coz_run
    result = subprocess.call(args.remaining_args, env=env)
  File "/usr/lib/python3.10/subprocess.py", line 345, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cozgo'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_coz.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/coz", line 184, in <module>
    run_command_line()
  File "/usr/bin/coz", line 36, in run_command_line
    args.func(args)
  File "/usr/bin/coz", line 108, in _coz_run
    result = subprocess.call(args.remaining_args, env=env)
  File "/usr/lib/python3.10/subprocess.py", line 345, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cozgo'