robotpy/robotpy-commands-v1

ModuleNotFoundError: No module named 'wpilib.command.subsystem'

Closed this issue · 6 comments

Can't import the subsystem class when working with the examples/command-based robot.

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.

You need to do from wpilib.command import Subsystem

I found that out with some fiddling, is that what the syntax was in previous years and the examples were just out of date?

It's always been documented as wpilib.command.Subsystem.

Code hadn't been modified since 2016, I can definitely see that being an issue. Easy enough fix though.

In previous years, both worked. It's really annoying to make both work this year, so I'd rather not bother fixing it.