Robotpy test hanging in pyfrc_test.py::test_autonomous

Hi,

We’re seeing

 robotpy test -- --no-header -vvv -s

Hang in:

pyfrc_test.py::test_autonomous

pyfrc_test.py::test_autonomous <- .venv\Lib\site-packages\pyfrc\tests\basic.py Not loading CameraServerShared

INITIALIZATION

Entering robot:robotInit
Server started on sprout at 10.0.1.33:5805 in thread { self.serverThread.name}
[Auto] New Modes Selected: None Wait 0.0s, Do Nothing
Exit robot:robotInit

********** Robot program startup complete **********

Stepping through the python code, it seems like the simulation time is not advancing.

My pyproject.toml:

#
# Use this configuration file to control what RobotPy packages are installed
# on your RoboRIO
#

[tool.robotpy]

# Version of robotpy this project depends on
robotpy_version = "2025.1.1.1"

# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]
robotpy_extras = [
    # "all"
    "apriltag",
    # "commands2"
    "cscore",
    # "navx"
    # "pathplannerlib"
    # "phoenix5",
    "phoenix6",
    # "playingwithfusion"
    "rev",
    # "romi"
    # "sim"
]

# Other pip packages to install
requires = [
    "photonlibpy==2025.0.0b8",
    "debugpy==1.8.11",
    "numpy==2.1.3",
    "phoenix6==25.1.0"
]

The source code is here:

-Thanks for your help!!!

-Mike
Spires FRC 9106

There’s a bug in REV’s code that causes this: [BUG]: Tests (`stepTiming()`) hang when 1 Spark Max is instantiated · Issue #72 · robotpy/robotpy-rev · GitHub

Thanks!

Appears the rev bug is still unresolved as this is persisting in robotpy 2025.2.1.0

We are also still seeing the rev bug in 2025.2.1.0

Since it’s a rev bug, you should be looking for updates to robotpy-rev

robotpy-rev 2025.0.1 has a fix for this.

… but you can’t install that yet because rev has a bug in their release. Maybe tomorrow, sorry.