"Device Not Connected" Runtime Error when running python script via SSH
Application: D435i connected to a NUC running Ubuntu 22.04.4 LTS deployed on a drone.
My problem is that when I SSH'd into the NUC to execute my python script I get a "Decive Not connected" runtime error. The script ran successfully, when logged into my main user. To test this I logged into my main user on the NUC and then SSH'd in at the same time and ran my script. It executed properly without the error. This made me conclude that the error was somehow related to not being logged into my main user.
I attempted to fix this by installing all of the dependencies for that script with root permissions, but after running the script through SSH while being logged out on my main user the error returned, confirming my suspicion.
Does anyone have any insight into why this error is occurring? I would like to be able to remote into the NUC in the field and heedlessly run my script. The temporary solution is to log in after booting the drone, by plugging in a monitor and peripherals. Once logged in, I can remove the monitor and peripherals and then execute the the script remotely, from a distance.
-
Hi Martinmechanicaldesign Does it make a difference if you run your script with sudo admin power? For example, if your script was called 'test.py' then run it with the command sudo python3 test.py
Please sign in to leave a comment.
Comments
1 comment