trouble installing rpio i get a wierd error and I don't fully undestand it please help

Hello I am trying to use servos with raspberry pi using pycharm. I get this error when I try to install the rpio package

Collecting RPIO==0.10.0
Using cached RPIO-0.10.0.tar.gz (37 kB)
Building wheels for collected packages: RPIO
Building wheel for RPIO (setup.py): started
Building wheel for RPIO (setup.py): finished with status 'error'
Running setup.py clean for RPIO
Failed to build RPIO
Installing collected packages: RPIO
Running setup.py install for RPIO: started
Running setup.py install for RPIO: finished with status 'error'

ERROR: Command errored out with exit status 1:
command: 'C:\Users\John Ostler\PycharmProjects\pythonProject\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\John Ostler\\AppData\\Local\\Temp\\pip-install-hsveugeu\\rpio_d58182c414f24615b4c085e7cd4883b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\John Ostler\\AppData\\Local\\Temp\\pip-install-hsveugeu\\rpio_d58182c414f24615b4c085e7cd4883b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\John Ostler\AppData\Local\Temp\pip-wheel-e_addjyi'
cwd: C:\Users\John Ostler\AppData\Local\Temp\pip-install-hsveugeu\rpio_d58182c414f24615b4c085e7cd4883b7\
Complete output (16 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\RPIO
copying source\RPIO\Exceptions.py -> build\lib.win-amd64-3.9\RPIO
copying source\RPIO\_RPIO.py -> build\lib.win-amd64-3.9\RPIO
copying source\RPIO\__init__.py -> build\lib.win-amd64-3.9\RPIO
creating build\lib.win-amd64-3.9\RPIO\PWM
copying source\RPIO\PWM\__init__.py -> build\lib.win-amd64-3.9\RPIO\PWM
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'RPIO._GPIO' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for RPIO
ERROR: Command errored out with exit status 1:
command: 'C:\Users\John Ostler\PycharmProjects\pythonProject\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\John Ostler\\AppData\\Local\\Temp\\pip-install-hsveugeu\\rpio_d58182c414f24615b4c085e7cd4883b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\John Ostler\\AppData\\Local\\Temp\\pip-install-hsveugeu\\rpio_d58182c414f24615b4c085e7cd4883b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\John Ostler\AppData\Local\Temp\pip-record-4rueo0m8\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\John Ostler\PycharmProjects\pythonProject\venv\include\site\python3.9\RPIO'
cwd: C:\Users\John Ostler\AppData\Local\Temp\pip-install-hsveugeu\rpio_d58182c414f24615b4c085e7cd4883b7\
Complete output (16 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\RPIO
copying source\RPIO\Exceptions.py -> build\lib.win-amd64-3.9\RPIO
copying source\RPIO\_RPIO.py -> build\lib.win-amd64-3.9\RPIO
copying source\RPIO\__init__.py -> build\lib.win-amd64-3.9\RPIO
creating build\lib.win-amd64-3.9\RPIO\PWM
copying source\RPIO\PWM\__init__.py -> build\lib.win-amd64-3.9\RPIO\PWM
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'RPIO._GPIO' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\John Ostler\PycharmProjects\pythonProject\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\John Ostler\\AppData\\Local\\Temp\\pip-install-hsveugeu\\rpio_d58182c414f24615b4c085e7cd4883b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\John Ostler\\AppData\\Local\\Temp\\pip-install-hsveugeu\\rpio_d58182c414f24615b4c085e7cd4883b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\John Ostler\AppData\Local\Temp\pip-record-4rueo0m8\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\John Ostler\PycharmProjects\pythonProject\venv\include\site\python3.9\RPIO' Check the logs for full command output.

 

I see i need c++ version 14 or greater i have istalled ms build tools i dont know why that error is showing please help thanks.

1 comment
Comment actions Permalink

Hi, as the error message indicates, please try to install C++ Build Tools

0

Please sign in to leave a comment.