Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm having this issue while running any example in the SITL. #1193

Open
septi00 opened this issue Jun 20, 2023 · 2 comments
Open

I'm having this issue while running any example in the SITL. #1193

septi00 opened this issue Jun 20, 2023 · 2 comments

Comments

@septi00
Copy link

septi00 commented Jun 20, 2023

File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_psosx.py", line 346, in wrapper
return fun(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_common.py", line 480, in wrapper
raise raise_from(err, None)
^^^^^^^^^^^^^^^^^^^^^
File "", line 3, in raise_from
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_common.py", line 478, in wrapper
return fun(self)
^^^^^^^^^
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_psosx.py", line 373, in _get_kinfo_proc
ret = cext.proc_kinfo_oneshot(self.pid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ProcessLookupError: [Errno 3] assume no such process (originated from sysctl(kinfo_proc), len == 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/init.py", line 361, in _init
self.create_time()
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/init.py", line 719, in create_time
self._create_time = self._proc.create_time()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_psosx.py", line 346, in wrapper
return fun(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_psosx.py", line 471, in create_time
return self._get_kinfo_proc()[kinfo_proc_map['ctime']]
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/_psosx.py", line 351, in wrapper
raise NoSuchProcess(self.pid, self._name)
psutil.NoSuchProcess: process no longer exists (pid=23916)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/user/PycharmProjects/pythonProject/venv/dronekit-python/examples/set_attitude_target/set_attitude_target.py", line 190, in
sitl.stop()
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/dronekit_sitl/init.py", line 388, in stop
kill(self.p.pid)
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/dronekit_sitl/init.py", line 33, in kill
process = psutil.Process(proc_pid)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/init.py", line 332, in init
self._init(pid)
File "/Users/user/PycharmProjects/pythonProject/venv/lib/python3.11/site-packages/psutil/init.py", line 373, in _init
raise NoSuchProcess(pid, msg='process PID not found')
psutil.NoSuchProcess: process PID not found (pid=23916)

This exact one occure while runnig the: set_attitude_target.py example

@hamishwillee
Copy link
Contributor

This could be a SITL and Python3 issue. Do you have the same error if you connect to a normal simulator instance?

@TongBingda
Copy link

I think this may be due to a problem with your Python environment, have you tried Python 3.8 and below and tried to run your py file directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants