Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pybluex python bluetooth module installation error error in pycharm

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.
like image 527
Engr Talha Avatar asked Oct 22 '25 19:10

Engr Talha


2 Answers

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 ;)

like image 139
Talk2 Avatar answered Oct 25 '25 08:10

Talk2


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

like image 44
zeitoon Avatar answered Oct 25 '25 07:10

zeitoon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!