Robotpy deloy error

We’re receiving a new type of python error message while trying to deploy code to a robot. We have already updated WPILib tools and our roboRio. Enclosed is the log of our issue. py -3 -m robotpy init
Traceback (most recent call last):
File “C:\Users\Team753\AppData\Local\Programs\Python\Python312\Lib\site-packages\robotpy\main.py”, line 245, in main
cmd_class = entry_point.load()
^^^^^^^^^^^^^^^^^^
File “C:\Users\Team753\AppData\Local\Programs\Python\Python312\Lib\importlib\metadata_init_.py”, line 205, in load
module = import_module(match.group(‘module’))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Team753\AppData\Local\Programs\Python\Python312\Lib\importlib_init_.py”, line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 994, in exec_module
File “”, line 488, in call_with_frames_removed
File “C:\Users\Team753\AppData\Local\Programs\Python\Python312\Lib\site-packages\pyfrc\mains\cli_sim.py”, line 9, in
import wpilib
File "C:\Users\Team753\AppData\Local\Programs\Python\Python312\Lib\site-packages\wpilib_init
.py", line 7, in
from ._wpilib import (
ImportError: generic_type: type “ADXL345_I2C” referenced unknown base type “nt::NTSendable”
Plugin error detected in ‘EntryPoint(name=‘sim’, value=‘pyfrc.mains.cli_sim:PyFrcSim’, group=‘robotpy’)’ (use --ignore-plugin-errors to ignore this)

It’s likely you have a variety of different robotpy package versions installed. Do python -m pip install -U robotpy and try again.

If that doesn’t resolve it, post the output of python -m pip list.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.