FRC4564 / Xbox

Python class to support xbox 360 controller under Linux on RaspberryPi
129 stars 35 forks source link

Even Sample code doesn't work #10

Closed RushilRobotics closed 5 years ago

RushilRobotics commented 5 years ago

Traceback (most recent call last): File "C:\Users\shahr\Downloads\Xbox-master\Xbox-master\sample.py", line 21, in joy = xbox.Joystick() File "C:\Users\shahr\Downloads\Xbox-master\Xbox-master\xbox.py", line 44, in init self.proc = subprocess.Popen(['xboxdrv','--no-uinput','--detach-kernel-driver'], stdout=subprocess.PIPE, bufsize=0) File "C:\Users\shahr\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 775, in init restore_signals, start_new_session) File "C:\Users\shahr\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1178, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

FRC4564 commented 5 years ago

This Python class requires xboxdrv to function, which is a Linux-only application. Based on you traceback, you are attempting to run this on a Windows machine. You'll need to find an alternative solution for using the Xbox controller under Windows.