Skip to content
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

[提问] 最近更新的curl_cffi导致无法安装? #882

Closed
Yang-qwq opened this issue Feb 2, 2025 · 3 comments
Closed

[提问] 最近更新的curl_cffi导致无法安装? #882

Yang-qwq opened this issue Feb 2, 2025 · 3 comments
Labels
question 这啥呀这是,我不到啊

Comments

@Yang-qwq
Copy link

Yang-qwq commented Feb 2, 2025

Python 版本: 3.13.1

模块版本: 17.0.0

运行环境: Windows


疑似是最近更新了curl_cffi的版本导致的无法安装,日志如下:

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting bilibili-api-python
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/20/60/0b2dcc00d38cbaeea814c213b145b10d278d56722c1e88de58e63461961d/bilibili_api_python-17.0.0-py3-none-any.whl (371 kB)
Collecting beautifulsoup4~=4.12.3 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b1/fe/e8c672695b37eecc5cbf43e1d0638d88d66ba3a44c4d321c796f4e59167f/beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Collecting colorama~=0.4.6 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting lxml~=5.3.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7d/db/214290d58ad68c587bd5d6af3d34e56830438733d0d0856c0275fde43652/lxml-5.3.0-cp313-cp313-win_amd64.whl (3.8 MB)
Collecting pyyaml~=6.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl (156 kB)
Collecting brotli~=1.1.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7e/c1/ec214e9c94000d1c1974ec67ced1c970c148aa6b8d8373066123fc3dbf06/Brotli-1.1.0-cp313-cp313-win_amd64.whl (358 kB)
Collecting qrcode~=8.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/74/ab/df8d889fd01139db68ae9e5cb5c8f0ea016823559a6ecb427582d52b07dc/qrcode-8.0-py3-none-any.whl (45 kB)
Collecting APScheduler~=3.11.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d0/ae/9a053dd9229c0fde6b1f1f33f609ccff1ee79ddda364c756a924c6d8563b/APScheduler-3.11.0-py3-none-any.whl (64 kB)
Collecting rsa~=4.9 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/49/97/fa78e3d2f65c02c8e1268b9aba606569fe97f6c8f7c2d74394553347c145/rsa-4.9-py3-none-any.whl (34 kB)
Collecting pillow~=11.1.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3b/ad/285c556747d34c399f332ba7c1a595ba245796ef3e22eae190f5364bb62b/pillow-11.1.0-cp313-cp313-win_amd64.whl (2.6 MB)
Collecting yarl~=1.18.3 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f5/d5/688db678e987c3e0fb17867970700b92603cadf36c56e5fb08f23e822a0c/yarl-1.18.3-cp313-cp313-win_amd64.whl (315 kB)
Collecting pycryptodomex~=3.21.0 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5b/be/7c991840af1184009fc86267160948350d1bf875f153c97bb471ad944e40/pycryptodomex-3.21.0-cp36-abi3-win_amd64.whl (1.8 MB)
Collecting qrcode_terminal~=0.8 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/96/62/2422c088b7219db9f78c912418254db9896d1b20ab15e83aae2821419a65/qrcode-terminal-0.8.tar.gz (1.7 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting PyJWT~=2.10.1 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/ad/689f02752eeec26aed679477e80e632ef1b682313be70793d798c1d5fc8f/PyJWT-2.10.1-py3-none-any.whl (22 kB)
Collecting curl_cffi~=0.8.1b9 (from bilibili-api-python)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5f/5d/feb1b1b2376077f63f7e8b0f004e2c70f268c4b151c299e3a008233bdfb4/curl_cffi-0.8.1b9.tar.gz (143 kB)
  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
  ╰─> [73 lines of output]
      Using ./lib64 to store libcurl-impersonate
      Downloading libcurl-impersonate-chrome from https://github.com/lexiforest/curl-impersonate/releases/download/v0.8.2/libcurl-impersonate-v0.8.2.x86_64-win32.tar.gz...
      Traceback (most recent call last):
        File "C:\Users\yang_\.virtualenvs\yangs-mirai-bot\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "C:\Users\yang_\.virtualenvs\yangs-mirai-bot\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\yang_\.virtualenvs\yangs-mirai-bot\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 16, in <module>
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
          _setup_distribution = dist = klass(attrs)
                                       ~~~~~^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\dist.py", line 319, in __init__
          _Distribution.__init__(self, dist_attrs)
          ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 290, in __init__
          self.finalize_options()
          ~~~~~~~~~~~~~~~~~~~~~^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\dist.py", line 681, in finalize_options
          ep(self)
          ~~^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\setuptools\dist.py", line 701, in _finalize_setup_keywords
          ep.load()(self, ep.name, value)
          ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 216, in cffi_modules
          add_cffi_module(dist, cffi_module)
          ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 49, in add_cffi_module
          execfile(build_file_name, mod_vars)
          ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\yang_\AppData\Local\Temp\pip-build-env-8tpsfoer\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 25, in execfile
          exec(code, glob, glob)
          ~~~~^^^^^^^^^^^^^^^^^^
        File "scripts/build.py", line 114, in <module>
          download_libcurl()
          ~~~~~~~~~~~~~~~~^^
        File "scripts/build.py", line 69, in download_libcurl
          urlretrieve(url, file)
          ~~~~~~~~~~~^^^^^^^^^^^
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 214, in urlretrieve
          with contextlib.closing(urlopen(url, data)) as fp:
                                  ~~~~~~~^^^^^^^^^^^
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 189, in urlopen
          return opener.open(url, data, timeout)
                 ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 495, in open
          response = meth(req, response)
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 604, in http_response
          response = self.parent.error(
              'http', request, response, code, msg, hdrs)
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 533, in error
          return self._call_chain(*args)
                 ~~~~~~~~~~~~~~~~^^^^^^^
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 466, in _call_chain
          result = func(*args)
        File "C:\Program Files\Python313\Lib\urllib\request.py", line 613, in http_error_default
      urllib.error.HTTPError: HTTP Error 404: Not Found
      [end of output]

  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.

我去原仓库看了下,这个版本确实没有windows的产物

@Yang-qwq Yang-qwq added the question 这啥呀这是,我不到啊 label Feb 2, 2025
@Nemo2011
Copy link
Owner

Nemo2011 commented Feb 2, 2025

可以直接忽略这项依赖,或者用 dev 分支版本安装。

@Lumin-exdo
Copy link

Lumin-exdo commented Feb 2, 2025

可以直接忽略这项依赖,或者用 dev 分支版本安装。

我也遇到这问题,安装dev就成功了。预计会修复吗?

@lexiforest
Copy link

抱歉啊, 前几个版本 Windows 没 build 出来, curl_cffi 更新到 0.9.0b2 就好了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 这啥呀这是,我不到啊
Projects
None yet
Development

No branches or pull requests

4 participants