Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2645

pip install fails on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • proton-c-0.37.0
    • proton-c-0.38.0
    • python-binding
    • None
    • Windows - tested with VS 2022 python 3.7 and 3.9

    Description

      Running pip install python-qpid-proton fails on windows:

      (py3-qpid) PS C:\Users\andrew> pip install python-qpid-proton
      Collecting python-qpid-proton
        Using cached python-qpid-proton-0.37.0.tar.gz (406 kB)
        Preparing metadata (setup.py) ... done
      Building wheels for collected packages: python-qpid-proton
        Building wheel for python-qpid-proton (setup.py) ... error
        error: subprocess-exited-with-error
      
        × python setup.py bdist_wheel did not run successfully.
        │ exit code: 1
        ╰─> [20 lines of output]
            running bdist_wheel
            running build
            running build_py
            running build_ext
            running configure
            Warning: command not found: pkg-config
            Building the bundled proton-c sources into the extension
            Warning: command not found: pkg-config
            Warning: Windows - only the ANONYMOUS and PLAIN mechanisms will be supported!
            creating build
            creating build\temp.win-amd64-cpython-39
            creating build\temp.win-amd64-cpython-39\Release
            creating build\temp.win-amd64-cpython-39\Release\Users
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp\pip-install-ain0y2q_
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp\pip-install-ain0y2q_\python-qpid-proton_7447c3632f834facaa5fa7f17754f697
            error: could not create 'build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp\pip-install-ain0y2q_\python-qpid-proton_7447c3632f834facaa5fa7f17754f697': The filename or extension is too long
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for python-qpid-proton
        Running setup.py clean for python-qpid-proton
      Failed to build python-qpid-proton
      Installing collected packages: python-qpid-proton
        Running setup.py install for python-qpid-proton ... error
        error: subprocess-exited-with-error
      
        × Running setup.py install for python-qpid-proton did not run successfully.
        │ exit code: 1
        ╰─> [22 lines of output]
            running install
            C:\Users\andrew\Documents\py3-qpid\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
              warnings.warn(
            running build
            running build_py
            running build_ext
            running configure
            Warning: command not found: pkg-config
            Building the bundled proton-c sources into the extension
            Warning: command not found: pkg-config
            Warning: Windows - only the ANONYMOUS and PLAIN mechanisms will be supported!
            creating build
            creating build\temp.win-amd64-cpython-39
            creating build\temp.win-amd64-cpython-39\Release
            creating build\temp.win-amd64-cpython-39\Release\Users
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp\pip-install-ain0y2q_
            creating build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp\pip-install-ain0y2q_\python-qpid-proton_7447c3632f834facaa5fa7f17754f697
            error: could not create 'build\temp.win-amd64-cpython-39\Release\Users\andrew\AppData\Local\Temp\pip-install-ain0y2q_\python-qpid-proton_7447c3632f834facaa5fa7f17754f697': The filename or extension is too long
            [end of output]
      
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: legacy-install-failure
      
      × Encountered error while trying to install package.
      ╰─> python-qpid-proton
      
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for output from the failure.
      (py3-qpid) PS C:\Users\andrew>
      

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            astitcher Andrew Stitcher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: