You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2022/11/03 00:56:00 UTC

[jira] [Updated] (PROTON-2645) pip install fails on Windows

     [ https://issues.apache.org/jira/browse/PROTON-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher updated PROTON-2645:
------------------------------------
    Description: 
Running {{pip install python-qpid-proton}} fails on windows:
{noformat}
(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>
{noformat}

  was:
Running {{pip install python-qpid-proton}} fails on windows:
{noformat}
(py3-qpid) PS C:\Users\andrew> pip uninstall python-qpid-proton
Found existing installation: python-qpid-proton 0.38.0.dev4
Uninstalling python-qpid-proton-0.38.0.dev4:
  Would remove:
    c:\users\andrew\documents\py3-qpid\lib\site-packages\_cproton.cp39-win_amd64.pyd
    c:\users\andrew\documents\py3-qpid\lib\site-packages\cproton.py
    c:\users\andrew\documents\py3-qpid\lib\site-packages\proton\*
    c:\users\andrew\documents\py3-qpid\lib\site-packages\python_qpid_proton-0.38.0.dev4.dist-info\*
Proceed (Y/n)? y
  Successfully uninstalled python-qpid-proton-0.38.0.dev4
(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>
{noformat}


> pip install fails on Windows
> ----------------------------
>
>                 Key: PROTON-2645
>                 URL: https://issues.apache.org/jira/browse/PROTON-2645
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: proton-c-0.37.0
>         Environment: Windows - tested with VS 2022 python 3.7 and 3.9
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Blocker
>             Fix For: proton-c-0.38.0
>
>
> Running {{pip install python-qpid-proton}} fails on windows:
> {noformat}
> (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>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org