robotpy-wpilib icon indicating copy to clipboard operation
robotpy-wpilib copied to clipboard

`import wpilib` in repl kills interpreter

Open TheTripleV opened this issue 3 years ago • 3 comments

Importing wpilib in a repl on the roborio causes the python interpreter to be killed.

TheTripleV avatar May 21 '21 22:05 TheTripleV

Anything interesting in dmesg?

auscompgeek avatar May 22 '21 02:05 auscompgeek

Nope. It only happens as lvuser. Doesn't happen as admin though.

In both cases, it does kill and restart the robot code under a new pid.

The behavior I expected was that the robot code would be killed and the repl would stay.

TheTripleV avatar May 24 '21 11:05 TheTripleV

I think this is expected behaviour when you SSH in as lvuser. From what I've heard, the process that runs automatically as frcUserProgram has more privileges than a regular lvuser process (despite it also running as lvuser). Someone from the WPILib team could probably confirm.

auscompgeek avatar May 24 '21 13:05 auscompgeek