Having trouble configuring our roboRIO to read python code using robotpy. I went through the downloading and installing process here:
https://robotpy.readthedocs.io/en/stable/install/robot.html
but nothing has worked. When I run the command: py -3 -m robotpy_installer install-robotpy
I get the return of this:
16:47:04:326 INFO : robotpy.installer : RobotPy Installer 2020.0.2
16:47:04:327 INFO : robotpy.installer : -> caching files at C:\Users\first\Desktop\2020 Robot
16:47:05:222 INFO : robotpy.installer : Finding robot for team 1566
16:47:05:237 INFO : robotpy.installer : -> Robot is at 10.15.66.2
16:47:05:238 INFO : robotpy.installer : Connecting to robot via SSH at 10.15.66.2
16:47:06:416 INFO : paramiko.transport : Connected (version 2.0, client OpenSSH_7.4)
16:47:06:609 INFO : paramiko.transport : Auth banner: b'NI Linux Real-Time (run mode)\n\nLog in with your NI-Auth credentials.\n\n'
16:47:06:610 INFO : paramiko.transport : Authentication (password) successful!
IMAGEVERSION = "FRC_roboRIO_2019_v12"
-> ERROR: installer requires RoboRIO image 2020_v10! Use --ignore-image-version to force install
16:47:06:910 ERROR : robotpy.installer : Command (IV=$(grep IMAGEVERSION /etc/natinst/share/scs_imagemetadata.ini); echo $IV; [ "$IV" == 'IMAGEVERSION = "FRC_roboRIO_2020_v10"' ] || (echo '-> ERROR: installer
requires RoboRIO image 2020_v10! Use --ignore-image-version to force install' && /bin/false)) && echo 'set -e
PACKAGES=()
DO_INSTALL=0
if ! opkg list-installed | grep -F "python38 - 3.8.1-r0"; then
PACKAGES+=("http://localhost:35581/opkg_cache/python38_3.8.1-r0_cortexa9-vfpv3.ipk")
DO_INSTALL=1
else
echo "python38 already installed"
fi
if ! opkg list-installed | grep -F "python38-robotpy-wpiutil - 2020.3.2.0"; then
PACKAGES+=("http://localhost:35581/opkg_cache/python38-robotpy-wpiutil_2020.3.2.0_cortexa9-vfpv3.ipk")
DO_INSTALL=1
else
echo "python38-robotpy-wpiutil already installed"
fi
if ! opkg list-installed | grep -F "python38-robotpy-hal - 2020.3.2.0"; then
PACKAGES+=("http://localhost:35581/opkg_cache/python38-robotpy-hal_2020.3.2.0_cortexa9-vfpv3.ipk")
DO_INSTALL=1
else
echo "python38-robotpy-hal already installed"
fi
if ! opkg list-installed | grep -F "python38-pyntcore - 2020.3.2.0"; then
PACKAGES+=("http://localhost:35581/opkg_cache/python38-pyntcore_2020.3.2.0_cortexa9-vfpv3.ipk")
DO_INSTALL=1
else
echo "python38-pyntcore already installed"
fi
if ! opkg list-installed | grep -F "python38-wpilib - 2020.3.2.3"; then
PACKAGES+=("http://localhost:35581/opkg_cache/python38-wpilib_2020.3.2.3_cortexa9-vfpv3.ipk")
DO_INSTALL=1
else
echo "python38-wpilib already installed"
fi
if [ "${DO_INSTALL}" == "0" ]; then
echo "No packages to install."
else
opkg install ${PACKAGES[@]}
fi' > install_opkg.sh && bash install_opkg.sh && rm install_opkg.sh && ([ -x /usr/local/bin/pip3 ] || exit 87) && /usr/local/bin/pip3 install --no-index --find-links=http://localhost:35581/pip_cache/ --pre --upgra
de --no-deps pynetworktables robotpy-wpilib-utilities returned non-zero error status 1
I realize it says I have to update to image 2020 for the roboRIO but I cannot locate where the 2020 image is. The imaging tool only updates up to 2019.