-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: subprocess-exited-with-error when install python package #59
Comments
Getting the same error, Bump |
It's a Cython issue with av. If you get this error there are no prebuilt binaries for your arch/platform, and the version of av is bugged so it cannot build. Looks like with any luck if we upgrade or pin down Indeed, I cannot install av 9.x or 10 but 11 installs successfully In this project we should upgrade av, py-scrcpy-client/pyproject.toml Line 19 in 4d9faa4
I really don't want to monkey patch this, so @leng-yue would you be open to upgrading it / merging a pull request from someone else? On this topic, the av situation as to what, if any breaking changes there were between v9 and v11/12 appears completely undocumented. I'd just plug ^11 in and try it. |
Apparently according to av's issue a workaround is to constrain Another potential workaround is to downgrade your Python version to one for which av wheels are already built. This seems to be the most promising for now. #48 |
Can you submit a PR? I am happy to merge that |
Upgrade av as versions 9 and 10 have Cython issues and do not build. See leng-yue#59 (comment) BREAKING CHANGE: av 11 and 12 both require Python >=3.8, so we increase the minimum Python version from 3.7 to 3.8.
Upgrading av removes support for python 3.7 (and allows support for 3.11, 3.12). This inevitable breaking change made it seem like an appropriate time to try to shove the python version. It appears that I also successfully addressed the cap of python 3.10, meaning everyone could now use 3.12 if they want too (vested interest). These are commit-separated depending on what you want. The summary is Motivation is unusually high to go out of my way to get this because python.org doesn't distribute python 3.9, 3.10 binaries for windows Edit: pyenv-win and chocolatey: exist |
Upgrade av as versions 9 and 10 have Cython issues and do not build. See #59 (comment) BREAKING CHANGE: av 11 and 12 both require Python >=3.8, so we increase the minimum Python version from 3.7 to 3.8.
C:\Users\Administrator>pip install scrcpy-client[ui]
Collecting scrcpy-client[ui]
Using cached scrcpy_client-0.4.1-py3-none-any.whl.metadata (2.8 kB)
Collecting PySide6<7.0.0,>=6.3.0 (from scrcpy-client[ui])
Using cached PySide6-6.7.0-cp39-abi3-win_amd64.whl.metadata (5.5 kB)
Collecting adbutils<0.15.0,>=0.14.1 (from scrcpy-client[ui])
Using cached adbutils-0.14.1-py3-none-win_amd64.whl.metadata (918 bytes)
Collecting av<10.0.0,>=9.2.0 (from scrcpy-client[ui])
Using cached av-9.2.0.tar.gz (2.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [74 lines of output]
Compiling av\buffer.pyx because it changed.
[1/1] Cythonizing av\buffer.pyx
Compiling av\bytesource.pyx because it changed.
[1/1] Cythonizing av\bytesource.pyx
Compiling av\descriptor.pyx because it changed.
[1/1] Cythonizing av\descriptor.pyx
Compiling av\dictionary.pyx because it changed.
[1/1] Cythonizing av\dictionary.pyx
Compiling av\enum.pyx because it changed.
[1/1] Cythonizing av\enum.pyx
Compiling av\error.pyx because it changed.
[1/1] Cythonizing av\error.pyx
Compiling av\format.pyx because it changed.
[1/1] Cythonizing av\format.pyx
Compiling av\frame.pyx because it changed.
[1/1] Cythonizing av\frame.pyx
performance hint: av\logging.pyx:232:5: Exception check on 'log_callback' will always require the GIL to be acquired.
Possible solutions:
1. Declare 'log_callback' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
2. Use an 'int' return type on 'log_callback' to allow an error code to be returned.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered: