Problems with deploying Python code and numpy

We are using the most recent version of robotpy, 2025.0.0b2, and all of its requirements. In sim, everything works great. However, after doing a robotpy sync, I tried to do a deploy. Then, I got the error saying:
ERROR: No matching distribution found for numpy and ERROR: Could not find a version that satisfies the requirement numpy(from versions: none)

Any help is greatly appreciated!

Could you share your code?

I mean sure, but it runs in fine in sim. It really seems to be a problem with packages.

1 Like

Your pyproject.toml looks right. Try running robotpy sync again and pasting the output here?

Another thing to try – it should put the files in ~/wpilib/2025/robotpy/pip_cache/… so see if there’s a numpy wheel there. You might try just deleting all the files there, then run robotpy sync again and see if it does it correctly. Might be a bug in the installer sync code.

2 Likes

I deleted the pip_cache and reran robotpy sync. I then proceded to do the exact same thing. My pip_cache does indeed have a wheel for numpy. This is my deploy:

`C:\Users\First\miniconda3\envs\frc2025\python.exe -m robotpy deploy --skip-tests --ignore-image-version --no-verify
17:11:46:697 INFO : deploy : Robot project requirements:
17:11:46:698 INFO : deploy : - robotpy[apriltag,cscore,rev,sim]==2025.0.0b2
17:11:46:698 INFO : deploy : - photonlibpy==2025.0.0b5
17:11:46:698 INFO : deploy : - robotpy-commands-v2~=2025.0.0b1
17:11:46:698 INFO : deploy : - numpy
17:11:46:698 INFO : deploy : - robotpy-rev==2025.0.0b1.post1
17:11:46:698 INFO : deploy : - black==24.1.1; platform_machine != “roborio”
17:11:46:698 INFO : deploy : - coverage==7.4.1; platform_machine != “roborio”
17:11:46:698 INFO : deploy : - ast-selector==0.2.0; platform_machine != “roborio”
17:11:46:699 INFO : deploy : - asttokens==2.4.1; platform_machine != “roborio”
17:11:46:699 INFO : deploy : - robotpy-pathplannerlib==2025.0.0b5
17:11:46:699 WARNING : deploy : Not checking to see if they are installed on RoboRIO
17:11:46:699 INFO : robotpy.installer : Settings loaded from C:\Users\First\Desktop\clone\FRC2024.wpilib\wpilib_preferences.json
17:11:46:700 INFO : robotpy.installer : Finding robot for team 5528
17:11:46:709 INFO : robotpy.installer : → Robot is at 10.55.28.2
17:11:46:709 INFO : robotpy.installer : Connecting to robot via SSH at 10.55.28.2
17:11:46:845 INFO : paramiko.transport : Connected (version 2.0, client OpenSSH_8.3)
17:11:46:978 INFO : paramiko.transport : Auth banner: b’NI Linux Real-Time (run mode)\n\nLog in with your NI-Auth credentials.\n\n’
17:11:46:978 INFO : paramiko.transport : Authentication (password) successful!
17:11:46:978 INFO : robotpy.installer : RobotPy Installer 2025.0.0b1
17:11:46:979 INFO : robotpy.installer : → caching files at C:\Users\First\wpilib\2025\robotpy
17:11:47:077 INFO : robotpy.installer : Clearing FRC C++/Java user programs if present
17:11:48:939 WARNING : deploy : Project requirements not installed on RoboRIO
17:11:48:940 WARNING : deploy : - robotpy==2025.0.0b2 (found 2024.3.2.2)
17:11:48:940 WARNING : deploy : - photonlibpy==2025.0.0b5 (found 2024.3.1)
17:11:48:940 WARNING : deploy : - robotpy-commands-v2~=2025.0.0b1 (found 2024.3.1)
17:11:48:940 WARNING : deploy : - robotpy-rev==2025.0.0b1.post1 (found 2024.2.3)
17:11:48:940 WARNING : deploy : - robotpy-pathplannerlib==2025.0.0b5 (not found)
17:11:48:940 WARNING : deploy : - robotpy-wpiutil==2025.0.0b2 (found 2024.3.2.1)
17:11:48:940 WARNING : deploy : - robotpy-wpinet==2025.0.0b2 (found 2024.3.2.1)
17:11:48:940 WARNING : deploy : - robotpy-wpimath==2025.0.0b2 (found 2024.3.2.1)
17:11:48:941 WARNING : deploy : - pyntcore==2025.0.0b2 (found 2024.3.2.1)
17:11:48:941 WARNING : deploy : - robotpy-hal==2025.0.0b2 (found 2024.3.2.1)
17:11:48:941 WARNING : deploy : - wpilib==2025.0.0b2 (found 2024.3.2.1)
17:11:48:941 WARNING : deploy : - robotpy-wpilib-utilities<2026.0.0,>=2025.0.0b1 (found 2024.1.0)
17:11:48:941 WARNING : deploy : - robotpy-apriltag==2025.0.0b2 (found 2024.3.2.1)
17:11:48:941 WARNING : deploy : - numpy==2.1.3 (found 1.25.2+r2)
17:11:48:941 WARNING : deploy : - robotpy-cscore==2025.0.0b2 (found 2024.3.2.1)
17:11:48:941 WARNING : deploy : - numpy==2.1.3 (found 1.25.2+r2)
17:11:48:941 WARNING : deploy : - robotpy-rev<2026.0.0,>=2025.0.0b1.post1 (found 2024.2.3)

Deployer has detected that the packages installed on your RoboRIO do not match
the requirements in pyproject.toml. The installer will now:

  • Uninstall ALL Python packages from the RoboRIO
  • Install required packages on the RoboRIO

If you do not wish to do this, specify --no-install as a deploy argument, or answer ‘n’.

Continue with uninstall + install? [y/n]y
17:11:53:173 INFO : paramiko.transport : Connected (version 2.0, client OpenSSH_8.3)
17:11:53:333 INFO : paramiko.transport : Auth banner: b’NI Linux Real-Time (run mode)\n\nLog in with your NI-Auth credentials.\n\n’
17:11:53:333 INFO : paramiko.transport : Authentication (password) successful!
17:11:53:435 INFO : robotpy.installer : → RoboRIO 2 image version: 2024_v2.2
17:11:53:508 INFO : robotpy.installer : → RoboRIO disk usage 495.0M/3.4G (15% full)
17:11:53:585 INFO : robotpy.installer : → RoboRIO memory 99.9M/509.9M (80% full)
17:11:53:677 INFO : deploy : Clearing existing packages on RoboRIO before install (specify --no-uninstall to not do this)
17:11:53:790 INFO : paramiko.transport.sftp: [chan 4] Opened sftp connection (server version 3)
17:11:53:800 INFO : paramiko.transport.sftp: [chan 4] sftp session closed.
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-wpiutil 2024.3.2.1
Uninstalling robotpy-wpiutil-2024.3.2.1:
Successfully uninstalled robotpy-wpiutil-2024.3.2.1
Found existing installation: numpy 1.25.2+r2
Uninstalling numpy-1.25.2+r2:
Successfully uninstalled numpy-1.25.2+r2
Found existing installation: robotpy-hal 2024.3.2.1
Uninstalling robotpy-hal-2024.3.2.1:
Successfully uninstalled robotpy-hal-2024.3.2.1
Found existing installation: robotpy-wpimath 2024.3.2.1
Uninstalling robotpy-wpimath-2024.3.2.1:
Successfully uninstalled robotpy-wpimath-2024.3.2.1
Found existing installation: robotpy-cli 2024.0.0
Uninstalling robotpy-cli-2024.0.0:
Successfully uninstalled robotpy-cli-2024.0.0
Found existing installation: photonlibpy 2024.3.1
Uninstalling photonlibpy-2024.3.1:
Successfully uninstalled photonlibpy-2024.3.1
Found existing installation: robotpy-wpinet 2024.3.2.1
Uninstalling robotpy-wpinet-2024.3.2.1:
Successfully uninstalled robotpy-wpinet-2024.3.2.1
Found existing installation: robotpy-openblas 0.3.24+r3
Uninstalling robotpy-openblas-0.3.24+r3:
Successfully uninstalled robotpy-openblas-0.3.24+r3
Found existing installation: wpilib 2024.3.2.1
Uninstalling wpilib-2024.3.2.1:
Successfully uninstalled wpilib-2024.3.2.1
Found existing installation: typing_extensions 4.12.2
Uninstalling typing_extensions-4.12.2:
Successfully uninstalled typing_extensions-4.12.2
Found existing installation: robotpy-commands-v2 2024.3.1
Uninstalling robotpy-commands-v2-2024.3.1:
Successfully uninstalled robotpy-commands-v2-2024.3.1
Found existing installation: robotpy-cscore 2024.3.2.1
Uninstalling robotpy-cscore-2024.3.2.1:
Successfully uninstalled robotpy-cscore-2024.3.2.1
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
WARNING: Skipping pyntcore as it is not installed.
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-opencv-core 4.8.0+r2
Uninstalling robotpy-opencv-core-4.8.0+r2:
Successfully uninstalled robotpy-opencv-core-4.8.0+r2
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-libgfortran5 12.1.0+r5
Uninstalling robotpy-libgfortran5-12.1.0+r5:
Successfully uninstalled robotpy-libgfortran5-12.1.0+r5
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-wpilib-utilities 2024.1.0
Uninstalling robotpy-wpilib-utilities-2024.1.0:
Successfully uninstalled robotpy-wpilib-utilities-2024.1.0
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-rev 2024.2.3
Uninstalling robotpy-rev-2024.2.3:
Successfully uninstalled robotpy-rev-2024.2.3
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-apriltag 2024.3.2.1
Uninstalling robotpy-apriltag-2024.3.2.1:
Successfully uninstalled robotpy-apriltag-2024.3.2.1
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy 2024.3.2.2
Uninstalling robotpy-2024.3.2.2:
Successfully uninstalled robotpy-2024.3.2.2
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Found existing installation: robotpy-opencv 4.8.0+r2
Uninstalling robotpy-opencv-4.8.0+r2:
Successfully uninstalled robotpy-opencv-4.8.0+r2
17:12:04:577 INFO : deploy : Installing project requirements on RoboRIO:
17:12:04:578 INFO : deploy : - robotpy[apriltag,cscore,rev,sim]==2025.0.0b2
17:12:04:578 INFO : deploy : - photonlibpy==2025.0.0b5
17:12:04:578 INFO : deploy : - robotpy-commands-v2~=2025.0.0b1
17:12:04:578 INFO : deploy : - numpy
17:12:04:579 INFO : deploy : - robotpy-rev==2025.0.0b1.post1
17:12:04:579 INFO : deploy : - black==24.1.1; platform_machine != “roborio”
17:12:04:579 INFO : deploy : - coverage==7.4.1; platform_machine != “roborio”
17:12:04:579 INFO : deploy : - ast-selector==0.2.0; platform_machine != “roborio”
17:12:04:579 INFO : deploy : - asttokens==2.4.1; platform_machine != “roborio”
17:12:04:580 INFO : deploy : - robotpy-pathplannerlib==2025.0.0b5
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
WARNING: Ignoring invalid distribution ~yntcore (/usr/local/lib/python3.12/site-packages)
Looking in links: http://localhost:44701/pip_cache/
Ignoring black: markers ‘platform_machine != “roborio”’ don’t match your environment
Ignoring coverage: markers ‘platform_machine != “roborio”’ don’t match your environment
Ignoring ast-selector: markers ‘platform_machine != “roborio”’ don’t match your environment
Ignoring asttokens: markers ‘platform_machine != “roborio”’ don’t match your environment
Collecting robotpy[apriltag,cscore,rev,sim]==2025.0.0b2
Downloading http://localhost:44701/pip_cache/robotpy-2025.0.0b2-py3-none-any.whl (2.5 kB)
Collecting photonlibpy==2025.0.0b5
Downloading http://localhost:44701/pip_cache/photonlibpy-2025.0.0b5-py3-none-any.whl (50 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.0/51.0 kB 17.0 MB/s eta 0:00:00
Collecting robotpy-commands-v2~=2025.0.0b1
Downloading http://localhost:44701/pip_cache/robotpy_commands_v2-2025.0.0b1-py3-none-any.whl (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 kB 22.1 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy
ERROR: installing packages: Command ‘/home/admin/rpip --no-cache-dir --disable-pip-version-check install --no-index --root-user-action=ignore --find-links http://localhost:44701/pip_cache/ --upgrade --upgrade-strategy=eager ‘robotpy[apriltag,cscore,rev,sim]==2025.0.0b2’ photonlibpy==2025.0.0b5 ‘robotpy-commands-v2~=2025.0.0b1’ numpy robotpy-rev==2025.0.0b1.post1 ‘black==24.1.1; platform_machine != “roborio”’ ‘coverage==7.4.1; platform_machine != “roborio”’ ‘ast-selector==0.2.0; platform_machine != “roborio”’ ‘asttokens==2.4.1; platform_machine != “roborio”’ robotpy-pathplannerlib==2025.0.0b5’ returned non-zero error status 1

If ‘no matching distribution found’, run ‘python -m robotpy sync’ to download your
project requirements from the internet (or --no-install to ignore).`

oh that’s funny. I think you have the 2024 robotpy-installer installed, you need the beta version. We’ll need to fix it so that isn’t possible in the future.

This should be fixed in robotpy-installer 2024.2.4 and 2025.0.0b3

1 Like