I'm getting a weird bug whenever I try to turn off the development server. With enough mashing of CTRL+D and CTRL+C it eventually turns off, but I think this is also preventing me from being able to use the debug functionality of the server as well (need to fully stop and start it every time for any changes to be reflected). The error I get is:
[psiTurk server:on mode:sdbx #HITs:0]$ server off
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/cmd2/cmd2.py", line 1581, in onecmd_plus_hooks
stop = self.onecmd(statement, add_to_history=add_to_history)
File "/usr/local/lib/python3.9/site-packages/cmd2/cmd2.py", line 1977, in onecmd
stop = func(statement)
File "/usr/local/lib/python3.9/site-packages/psiturk/psiturk_shell.py", line 71, in helper_fn
return func(self, opt)
File "/usr/local/lib/python3.9/site-packages/psiturk/psiturk_shell.py", line 573, in do_server
self.server_off()
File "/usr/local/lib/python3.9/site-packages/psiturk/psiturk_shell.py", line 165, in server_off
self.server.shutdown()
File "/usr/local/lib/python3.9/site-packages/psiturk/experiment_server_controller.py", line 141, in shutdown
psiturk_master_procs = [p for p in psutil.process_iter(
File "/usr/local/lib/python3.9/site-packages/psiturk/experiment_server_controller.py", line 141, in <listcomp>
psiturk_master_procs = [p for p in psutil.process_iter(
File "/usr/local/lib/python3.9/site-packages/psutil/__init__.py", line 1571, in process_iter
File "/usr/local/lib/python3.9/site-packages/psutil/__init__.py", line 639, in as_dict
ret = meth()
File "/usr/local/lib/python3.9/site-packages/psutil/__init__.py", line 774, in exe
exe = self._proc.exe()
File "/usr/local/lib/python3.9/site-packages/psutil/_psosx.py", line 338, in wrapper
return fun(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/psutil/_psosx.py", line 417, in exe
return cext.proc_exe(self.pid)
FileNotFoundError: [Errno 2] No such file or directory
EXCEPTION of type 'FileNotFoundError' occurred with message: '[Errno 2] No such file or directory'