[Errno 13] when deploying to RoboRio

I was trying to deploy a simple robot code to check If the robotpy on the roborio and computer was working properly, but I got an “error 13”
I tried running as an admin, reinstalling robotpy on the rio, and multiple computers. Same error on both computers.

Does anyone have any idea on how to fix the problem?

Robot Code
#!/usr/bin/env python3 
import wpilib
import wpilib.drive
class ExampleBot(wpilib.IterativeRobot):
    def robotInit(self):
        self.motor = wpilib.VictorSP(0) 
    def teleopPeriodic(self):
        self.motor.set(.5)
if __name__ == "__main__":
    wpilib.run(ExampleBot)
Error Log
PS C:\Users\FIRSTUser\Documents\VScodeC++\Hello> py -3 robot.py deploy
20:22:33:079 INFO    : wpilib              : WPILib version 2020.1.2.2
20:22:33:079 INFO    : wpilib              : HAL version 2020.1.2.1
20:22:33:079 WARNING : wpilib              : Core component versions are not identical! This is not a supported configuration, and you may run into errors!
20:22:33:079 INFO    : wpilib              : Running with simulated HAL.
20:22:33:083 INFO    : robotpy.installer   : Finding robot for team 2081
20:22:34:008 INFO    : robotpy.installer   : -> Robot is at roboRIO-2081-FRC.local
20:22:34:008 INFO    : robotpy.installer   : Connecting to robot via SSH at roboRIO-2081-FRC.local
20:22:35:848 INFO    : paramiko.transport  : Connected (version 2.0, client OpenSSH_7.6)
20:22:35:944 INFO    : paramiko.transport  : Auth banner: b'NI Linux Real-Time (run mode)\n\nLog in with your NI-Auth credentials.\n\n'
20:22:35:944 INFO    : paramiko.transport  : Authentication (password) successful!
WPILib version on robot is 2020.1.2.2
20:22:36:410 INFO    : paramiko.transport.sftp: [chan 1] Opened sftp connection (server version 3)
py_new
make /home/lvuser\py_new
20:22:36:413 INFO    : paramiko.transport.sftp: [chan 1] sftp session closed.
Traceback (most recent call last):
  File "robot.py", line 10, in 
    wpilib.run(ExampleBot)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wpilib\_impl\main.py", line 186, in run
    retval = options.cmdobj.run(options, robot_class, **kwargs)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyfrc\mains\cli_deploy.py", line 307, in run
    controller.sftp(py_tmp_dir, deploy_dir, mkdir=not options.in_place)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotpy_installer\sshcontroller.py", line 79, in sftp
    sftp.mkdir(os.path.join(remote_path, d))
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 460, in mkdir
    self._request(CMD_MKDIR, path, attr)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 813, in _request
    return self._read_response(num)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 865, in _read_response
    self._convert_status(msg)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 896, in _convert_status
    raise IOError(errno.EACCES, text)
PermissionError: [Errno 13] Permission denied
PS C:\Users\FIRSTUser\Documents\VScodeC++\Hello> py -3 robot.py deploy
20:24:15:914 INFO    : wpilib              : WPILib version 2020.1.2.2
20:24:15:915 INFO    : wpilib              : HAL version 2020.1.2.1
20:24:15:915 WARNING : wpilib              : Core component versions are not identical! This is not a supported configuration, and you may run into errors!
20:24:15:915 INFO    : wpilib              : Running with simulated HAL.
20:24:15:919 INFO    : robotpy.installer   : Finding robot for team 2081
20:24:16:817 INFO    : robotpy.installer   : -> Robot is at roboRIO-2081-FRC.local
20:24:16:817 INFO    : robotpy.installer   : Connecting to robot via SSH at roboRIO-2081-FRC.local
20:24:18:614 INFO    : paramiko.transport  : Connected (version 2.0, client OpenSSH_7.6)
20:24:18:710 INFO    : paramiko.transport  : Auth banner: b'NI Linux Real-Time (run mode)\n\nLog in with your NI-Auth credentials.\n\n'
20:24:18:711 INFO    : paramiko.transport  : Authentication (password) successful!
WPILib version on robot is 2020.1.2.2
20:24:19:177 INFO    : paramiko.transport.sftp: [chan 1] Opened sftp connection (server version 3)
py_new
make /home/lvuser\py_new
20:24:19:179 INFO    : paramiko.transport.sftp: [chan 1] sftp session closed.
Traceback (most recent call last):
  File "robot.py", line 10, in 
    wpilib.run(aaaaa)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wpilib\_impl\main.py", line 186, in run
    retval = options.cmdobj.run(options, robot_class, **kwargs)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyfrc\mains\cli_deploy.py", line 307, in run
    controller.sftp(py_tmp_dir, deploy_dir, mkdir=not options.in_place)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\robotpy_installer\sshcontroller.py", line 79, in sftp
    sftp.mkdir(os.path.join(remote_path, d))
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 460, in mkdir
    self._request(CMD_MKDIR, path, attr)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 813, in _request
    return self._read_response(num)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 865, in _read_response
    self._convert_status(msg)
  File "C:\Users\FIRSTUser\AppData\Local\Programs\Python\Python38-32\lib\site-packages\paramiko\sftp_client.py", line 896, in _convert_status
    raise IOError(errno.EACCES, text)
PermissionError: [Errno 13] Permission denied

Thanks in advance for any help.

Looks like a path bug in robotpy-installer. I don’t have Windows, but can take a look.

Yup, it was a bug in robotpy-installer. If you upgrade to 2020.0.1, it’ll deploy correctly now.

py -m pip install -U robotpy-installer

Sorry for the inconvenience!

1 Like