ModuleNotFoundError: No module named 'wpilib.command.subsystem'
Closed this issue · 6 comments
CrispyBacon1999 commented
Can't import the subsystem class when working with the examples/command-based robot.
CrispyBacon1999 commented
Seems to be an issue with the code that was already there having an issue, but not having command based experience in past years, I don't know if it was an issue before.
virtuald commented
You need to do from wpilib.command import Subsystem
CrispyBacon1999 commented
I found that out with some fiddling, is that what the syntax was in previous years and the examples were just out of date?
auscompgeek commented
It's always been documented as wpilib.command.Subsystem.
CrispyBacon1999 commented
Code hadn't been modified since 2016, I can definitely see that being an issue. Easy enough fix though.
virtuald commented
In previous years, both worked. It's really annoying to make both work this year, so I'd rather not bother fixing it.