This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot set pypilot to IMU only
#13
I am afraid chatGPT does not provide any solution (as usual...), it just catch the error so that the program does not break and at the end proposes a default user or "handle differently" but we need to get your current user and "pi" is not an option because you may been using a custom user:

except KeyError: # PKEXEC_UID not set
# Additional fallback logic here if necessary
self.user = 'pi' # Fallback to a default user or handle differently

The problem is that PKEXEC_UID is not set in your system and I have never seen that. You will have more errors on other scripts for sure.

I have seen similar errors when you mix compiled python packages and debian python packages. I would use a new SD with a fresh install to see if the same error occurs before and after installing the extra packages you installed.
Reply


Messages In This Thread
Cannot set pypilot to IMU only - by MigGat - 2024-03-30, 12:08 PM
RE: Cannot set pypilot to IMU only - by Sailoog - 2024-03-30, 12:13 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-03-30, 12:20 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-03-31, 03:47 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-02, 05:06 PM
RE: Cannot set pypilot to IMU only - by Sailoog - 2024-04-02, 05:55 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-02, 10:32 PM
RE: Cannot set pypilot to IMU only - by Sailoog - 2024-04-03, 11:16 AM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-02, 10:46 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-03, 10:19 AM
RE: Cannot set pypilot to IMU only - by ironman - 2024-04-03, 10:48 AM
RE: Cannot set pypilot to IMU only - by Sailoog - 2024-04-03, 11:12 AM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-03, 11:37 AM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-03, 03:48 PM
RE: Cannot set pypilot to IMU only - by PaddyB - 2024-04-03, 03:58 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-03, 04:07 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-04, 04:43 PM
RE: Cannot set pypilot to IMU only - by PaddyB - 2024-04-04, 04:47 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-04, 04:55 PM
RE: Cannot set pypilot to IMU only - by PaddyB - 2024-04-04, 05:46 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-04, 05:54 PM
RE: Cannot set pypilot to IMU only - by MigGat - 2024-04-04, 07:22 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)