cannot install on Python 3.8, 3.9, 3.10, 3.11 on macOS
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- macos, python
- 领域
- build-system
调研方向
从 setup.py 和 Python 3.11 的安装日志开始,重点关注构建 wheel 时 setuptools 和 cffi 失败的情况。在受影响的 macOS Python 版本上重现安装,并与 Python 3.12 和 3.13 上成功的安装进行比较。当 brotlipy 能够在 Python 3.8 到 3.11 上成功安装时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
A log of the process from 3.13, 3.12, and 3.11; all lower versions look like 3.11.
↪ Thu Sep 19 11:52:23 PDT 2024 (★ clear) (1 seconds elapsed)
glyph@arabella:~ 🐚 🔑 ⮐
★ mktmpenv -p python3.13
↩ Thu Sep 19 11:52:29 PDT 2024
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-713b143ec48affd/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-713b143ec48affd/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-713b143ec48affd/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-713b143ec48affd/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-713b143ec48affd/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
↪ Thu Sep 19 11:52:30 PDT 2024 (★ mktmpenv -p python3.13) (1 seconds elapsed)
glyph@arabella:~ 🏰 tmp-713b143ec48affd 🐚 🔑 ⮐
★ pip install brotlipy
↩ Thu Sep 19 11:52:35 PDT 2024
Looking in indexes: http://127.0.0.1:3141/root/plus/+simple/
Collecting brotlipy
Using cached brotlipy-0.7.0-cp313-cp313-macosx_10_13_universal2.whl
Collecting cffi>=1.0.0 (from brotlipy)
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/098/4a4925a435b1d/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl (178 kB)
Collecting pycparser (from cffi>=1.0.0->brotlipy)
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/c37/02b6d3dd8c7ab/pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: pycparser, cffi, brotlipy
Successfully installed brotlipy-0.7.0 cffi-1.17.1 pycparser-2.22
↪ Thu Sep 19 11:52:36 PDT 2024 (★ pip install brotlipy) (1 seconds elapsed)
glyph@arabella:~ 🏰 tmp-713b143ec48affd 🐚 🔑 ⮐
★ deactivate
↩ Thu Sep 19 11:52:38 PDT 2024
Removing temporary environment: tmp-713b143ec48affd
Removing tmp-713b143ec48affd...
↪ Thu Sep 19 11:52:39 PDT 2024 (★ deactivate) (1 seconds elapsed)
glyph@arabella:~ 🐚 🔑 ⮐
★ mktmpenv -p python3.12
↩ Thu Sep 19 11:52:44 PDT 2024
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-eb3293cafc81ff3/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-eb3293cafc81ff3/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-eb3293cafc81ff3/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-eb3293cafc81ff3/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-eb3293cafc81ff3/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
↪ Thu Sep 19 11:52:45 PDT 2024 (★ mktmpenv -p python3.12) (1 seconds elapsed)
glyph@arabella:~ 🏰 tmp-eb3293cafc81ff3 🐚 🔑 ⮐
★ pip install brotlipy
↩ Thu Sep 19 11:52:48 PDT 2024
Looking in indexes: http://127.0.0.1:3141/root/plus/+simple/
Collecting brotlipy
Using cached brotlipy-0.7.0-cp312-cp312-macosx_10_9_universal2.whl
Collecting cffi>=1.0.0 (from brotlipy)
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/733/e99bc2df47476/cffi-1.17.1-cp312-cp312-macosx_11_0_arm64.whl (178 kB)
Collecting pycparser (from cffi>=1.0.0->brotlipy)
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/c37/02b6d3dd8c7ab/pycparser-2.22-py3-none-any.whl (117 kB)
Installing collected packages: pycparser, cffi, brotlipy
Successfully installed brotlipy-0.7.0 cffi-1.17.1 pycparser-2.22
↪ Thu Sep 19 11:52:49 PDT 2024 (★ pip install brotlipy) (1 seconds elapsed)
glyph@arabella:~ 🏰 tmp-eb3293cafc81ff3 🐚 🔑 ⮐
★ mktmpenv -p python3.11
↩ Thu Sep 19 11:52:58 PDT 2024
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-76ec862361048ed/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-76ec862361048ed/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-76ec862361048ed/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-76ec862361048ed/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-76ec862361048ed/bin/get_env_details
Removing temporary environment: tmp-eb3293cafc81ff3
Removing tmp-eb3293cafc81ff3...
This is a temporary environment. It will be deleted when you run 'deactivate'.
↪ Thu Sep 19 11:52:59 PDT 2024 (★ mktmpenv -p python3.11) (1 seconds elapsed)
glyph@arabella:~ 🏰 tmp-76ec862361048ed 🐚 🔑 ⮐
★ pip install brotlipy
↩ Thu Sep 19 11:53:01 PDT 2024
Looking in indexes: http://127.0.0.1:3141/root/plus/+simple/
Collecting brotlipy
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/36d/ef0b859beaf21/brotlipy-0.7.0.tar.gz (413 kB)
Preparing metadata (setup.py) ... done
Collecting cffi>=1.0.0 (from brotlipy)
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/30c/5e0cb5ae493c0/cffi-1.17.1-cp311-cp311-macosx_11_0_arm64.whl (178 kB)
Collecting pycparser (from cffi>=1.0.0->brotlipy)
Downloading http://127.0.0.1:3141/root/pypi/%2Bf/c37/02b6d3dd8c7ab/pycparser-2.22-py3-none-any.whl (117 kB)
Building wheels for collected packages: brotlipy
Building wheel for brotlipy (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py:88: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/pip-install-eg6osp5g/brotlipy_0f5c7469ab0142fab4bd5eacb492d28d/setup.py", line 9, in <module>
setup(
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py", line 110, in setup
_install_setup_requires(attrs)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py", line 83, in _install_setup_requires
_fetch_build_eggs(dist)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py", line 88, in _fetch_build_eggs
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/dist.py", line 615, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/installer.py", line 39, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 890, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 926, in _resolve_dist
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1256, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1292, in obtain
return installer(requirement) if installer else None
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/installer.py", line 107, in _fetch_build_egg_no_warn
wheel.install_as_egg(dist_location)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/wheel.py", line 122, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/wheel.py", line 130, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/wheel.py", line 175, in _convert_metadata
os.rename(dist_info, egg_info)
OSError: [Errno 66] Directory not empty: '/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/pip-install-eg6osp5g/brotlipy_0f5c7469ab0142fab4bd5eacb492d28d/.eggs/cffi-1.17.1-py3.11-macosx-10.9-universal2.egg/cffi-1.17.1.dist-info' -> '/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/pip-install-eg6osp5g/brotlipy_0f5c7469ab0142fab4bd5eacb492d28d/.eggs/cffi-1.17.1-py3.11-macosx-10.9-universal2.egg/EGG-INFO'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for brotlipy
Running setup.py clean for brotlipy
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py:88: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/pip-install-eg6osp5g/brotlipy_0f5c7469ab0142fab4bd5eacb492d28d/setup.py", line 9, in <module>
setup(
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py", line 110, in setup
_install_setup_requires(attrs)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py", line 83, in _install_setup_requires
_fetch_build_eggs(dist)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/__init__.py", line 88, in _fetch_build_eggs
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/dist.py", line 615, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/installer.py", line 39, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 890, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 926, in _resolve_dist
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1256, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1292, in obtain
return installer(requirement) if installer else None
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/installer.py", line 107, in _fetch_build_egg_no_warn
wheel.install_as_egg(dist_location)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/wheel.py", line 122, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/wheel.py", line 130, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "/Users/glyph/.virtualenvs/tmp-76ec862361048ed/lib/python3.11/site-packages/setuptools/wheel.py", line 175, in _convert_metadata
os.rename(dist_info, egg_info)
OSError: [Errno 66] Directory not empty: '/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/pip-install-eg6osp5g/brotlipy_0f5c7469ab0142fab4bd5eacb492d28d/.eggs/cffi-1.17.1-py3.11-macosx-10.9-universal2.egg/cffi-1.17.1.dist-info' -> '/private/var/folders/yl/ndrrqv712fs02p5sdtxhml7h0000gn/T/pip-install-eg6osp5g/brotlipy_0f5c7469ab0142fab4bd5eacb492d28d/.eggs/cffi-1.17.1-py3.11-macosx-10.9-universal2.egg/EGG-INFO'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for brotlipy
Failed to build brotlipy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (brotlipy)
↪ Thu Sep 19 11:53:05 PDT 2024 (★ pip install brotlipy) (4 seconds elapsed)
glyph@arabella:~ 🏰 tmp-76ec862361048ed 🐚 🔑 🛑 1 ⮐
★
- 主要语言
- Python
- 星标
- 154
- 派生
- 34
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 3
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-hyper/brotlicffi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
python-hyper/brotlicffi#217 ·
-
难度 3/5 1-2 天 新手友好度 42/100
python-hyper/brotlicffi#215 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
python-hyper/brotlicffi#209 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
python-hyper/brotlicffi#203 ·
-
难度 3/5 1-2 天 新手友好度 38/100
python-hyper/brotlicffi#197 · 1 条评论 · 2 个 reaction ·
查看 python-hyper/brotlicffi 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
zostera/django-bootstrap4#894 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
use-agent-os/agent-os#3276 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
zilliztech/memsearch#759 ·