Package Details: python-curl-cffi 0.10.0-1

Git Clone URL: https://aur.archlinux.org/python-curl-cffi.git (read-only, click to copy)
Package Base: python-curl-cffi
Description: Python FFI binding for curl-impersonate
Upstream URL: https://github.com/lexiforest/curl_cffi
Licenses: MIT
Submitter: WSDMatty
Maintainer: Neurognostic
Last Packager: Neurognostic
Votes: 10
Popularity: 2.00
First Submitted: 2023-06-22 09:25 (UTC)
Last Updated: 2025-03-17 17:31 (UTC)

Latest Comments

« First ‹ Previous 1 2

simona commented on 2024-07-28 15:42 (UTC)

same error

lmat commented on 2024-07-28 14:08 (UTC)

Thank you for fixing PKGBUILD. I had the same error and now it works for me.

simona commented on 2024-07-13 19:02 (UTC)

ERROR Backend subprocess exited when trying to invoke build_wheel

dllud commented on 2024-07-12 12:12 (UTC) (edited on 2024-07-12 12:13 (UTC) by dllud)

As AKSoo correctly points out:

1) Nebulosa's PKGBUILD works.

2) It is possible to create the symlink inside package() to keep it all nice and tidy. Example:

# Fix certificates
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
ln -s /etc/ca-certificates/extracted/tls-ca-bundle.pem "${pkgdir}/usr/lib/python${python_version}/site-packages/curl_cffi/cacert.pem"

Here's a PKGBUILD with all changes: https://gist.github.com/dllud/d301640a88abf7d736344243c45ecfcc

WSDMatty: could you please incorporate this? In case you no longer have the time, could you please disown the package so someone else (perhaps Nebulosa) can step in?

Maxr1998 commented on 2024-07-02 08:50 (UTC)

0.6.X is unsupported due to bugs, so the latest version yt-dlp works with is 0.5.10: https://github.com/yt-dlp/yt-dlp/issues/9682#issuecomment-2053765564 https://github.com/yt-dlp/yt-dlp/issues/9682#issuecomment-2054160311

Maybe it'd make sense to create a separate package for the yt-dlp version of this package pinned to 0.5.10, so this version can theoretically be updated to the latest version for other use cases.

AKSoo commented on 2024-06-13 05:40 (UTC)

@Nebulosa Your PKGBUILD is much cleaner and actually works. I think you could just create the symlink without sudo during install since it happens in fakeroot. And maybe also add ca-certificates as dependency.

Wish you could maintain this package!

Nebulosa commented on 2024-05-21 17:34 (UTC) (edited on 2024-05-21 17:35 (UTC) by Nebulosa)

Here updated PKGBUILD with fixed issues below.

Also works with version 0.6.4, but yt-dlp doesn't see any of versions 0.6.x:

$ yt-dlp --list-impersonate-targets --no-config
[info] Available impersonate targets
Client   OS   Source
---------------------------------------
Chrome   -    curl_cffi (not available)
Edge     -    curl_cffi (not available)
Safari   -    curl_cffi (not available)

Any suggestions?

tniin commented on 2024-05-19 18:36 (UTC) (edited on 2024-05-19 18:37 (UTC) by tniin)

Build is not working for me: build/temp.linux-x86_64-cpython-312/curl_cffi._wrapper.c:929:10: error: implicit declaration of function ‘curl_easy_impersonate’; did you mean ‘curl_easy_perform’? [-Wimplicit-function-declaration]

Kiri0 commented on 2024-03-29 07:01 (UTC)

https://github.com/yifeikong/curl_cffi/blob/main/LICENSE The license should be "MIT"

AKSoo commented on 2023-11-29 13:46 (UTC)

Does not run because the package is missing /usr/lib/python3.11/python3.11/site-packages/curl_cffi/cacert.pem