I have to communate python with aurdino for this I am trying to install package pybluex but always it gave this error
LINK : fatal error LNK1181: cannot open input file 'Irprops.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x86\\link.exe' failed with exit status 1181
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SHEKHA~1\\AppData\\Local\\Temp\\pycharm-packaging\\PyBluez\\setup.py'"'"'; __file__='"'"'C:\\Users\\SHEKHA~1\\AppData\\Local\\Temp\\pycharm-packaging\\PyBluez\\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\shekhani laptop\AppData\Local\Temp\pip-record-ku9uo755\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python38-32\Include\PyBluez' Check the logs for full command output.
In my case I noticed that the Windows SDK version didn't have the 'irprops.lib' as it has been replaced according to: https://blogs.windows.com/windowsdeveloper/2019/11/19/windows-10-sdk-preview-build-19023-available-now/
Removal of IRPROPS.LIB
In this release irprops.lib has been removed from the Windows SDK. Apps that were linking against irprops.lib can switch to bthprops.lib as a drop-in replacement.
To solve it I installed a previous version of the Windows 10 SDK. If I had more time I probably would try to update the dependency to bthprops.lib ;)
This is now fixed in the github repo but it looks like they haven't updated the pip package. installing from the repo directly worked without having to downgrade
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With