bug: robot server fails to start on robot with httpapiv2 because it relies on typing_extensions #5275
Labels
bug
robot server
Affects the `robot-server` project
robot-svcs
Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience).
Overview
#5208 imports
typing_extensions
at runtime, buttyping_extensions
is a dev dependency only for static type analysis and not present on robots. This means that the robot server crashes on start when http apiv2 is enabled.Like in https://github.com/Opentrons/opentrons/blob/edge/api/src/opentrons/hardware_control/dev_types.py if possible
typing_extensions
should be imported in a failure-tolerant way and types dependent on it should be in string annotations and only checked statically.If not possible to keep
typing_extensions
to only static use, we should add it to the buildroot config.Traceback (reversed order from
journalctl -r
):The text was updated successfully, but these errors were encountered: