python3-wiimote icon indicating copy to clipboard operation
python3-wiimote copied to clipboard

Unable to install cwiid onto my lego ev3dev robot

Open DigitalRookie4 opened this issue 6 years ago • 1 comments

I have tried installing cwiid onto my computer and by using sudo apt-get install python-cwiid. which appears to come from debian I installed it on my computer's debian terminal that I downloaded. It successfully downloaded it but when I put import cwiid into python 3 on my computer it gave off the error No module named 'cwiid'. Then I tried using pip install cwiid on my command prompt and this MASSIVE error came up: (sorry about the format it is due to the ->""" <- . I think they sort of glitched by what format github thinks three speech marks is)

Collecting cwiid Using cached https://files.pythonhosted.org/packages/fa/e8/d0f03c60bbdc583a7fa37a126e9b20055fb3752861820c25bd212dc62756/cwiid-3.0.0.tar.gz Building wheels for collected packages: cwiid Building wheel for cwiid (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-wyh6vuju' --python-tag cp37 cwd: C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid Complete output (5 lines): running bdist_wheel running build running build_ext building 'cwiid' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ERROR: Failed building wheel for cwiid Running setup.py clean for cwiid Failed to build cwiid Installing collected packages: cwiid Running setup.py install for cwiid ... error ERROR: Command errored out with exit status 1: command: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-blsu2x3j\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid Complete output (5 lines): running install running build running build_ext building 'cwiid' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/ ERROR: Command errored out with exit status 1: 'c:\users\user\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-5u62qkij\cwiid\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-blsu2x3j\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output. WARNING: You are using pip version 19.2.2, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

DigitalRookie4 avatar Aug 31 '19 14:08 DigitalRookie4

libcwiid depends on libbluetooth (BlueZ), which is not available on windows. libcwiid and the cwiid module will never successfully compile on windows.

You might be able to install it directly on to your ev3dev, but I'm not going to begin to speculate how to do binary modules on ev3dev+python.

AstraLuma avatar Mar 28 '20 18:03 AstraLuma