Skip to content
Advertisement

pip install python-qpid-proton: how to fix errors on windows?

While running pip install python-qpid-proton I got the following errors:

  1. error: Microsoft Visual C++ 14.0 or greater is required.
    I fixed this by installing Visual Studio Build Tools 2022 and Visual Studio Professional 2022

  2. fatal error C1083: Cannot open compiler generated file
    This error appears apparently if the path is too long. Therefore I changed the path of the Temp folder to a shorter path. I have done this by creating a new folder under C:WindowsTEMP and changed setting the following environmental variables:
    TEMP=C:TEMP and TMP=C:TEMP

  3. After these two steps I get a different error. Has someone an idea how to solve this? Maybe there is also a different way to install python-qpid-proton on windows? I would appreciate that a lot…

The error comes after a lot of warnings in this form

JavaScript

Then there are the errors:

JavaScript

Advertisement

Answer

I fixed the last error by using Python 3.9 instead of Python 3.10. Apparently python-qpid-proton 0.37.0 is only compatible with Python 3.9.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement