[GH-ISSUE #596] metadata-generation-failed #439

Closed
opened 2026-10-29 14:39:43 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @miaoxiannv on GitHub (Feb 22, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/596

(base) root@control01:/home/zhangsy/ktransformers# KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation
WARNING: Skipping /data/software/anaconda3/lib/python3.12/site-packages/ktransformers-0.2.1.post1-py3.12-linux-x86_64.egg/EGG-INFO due to invalid metadata entry 'name'
Processing /home/zhangsy/ktransformers
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
Traceback (most recent call last):
File "/data/software/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/data/software/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "/data/software/anaconda3/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 28, in
File "/data/software/anaconda3/lib/python3.12/site-packages/torch/init.py", line 2784, in
_import_device_backends()
File "/data/software/anaconda3/lib/python3.12/site-packages/torch/init.py", line 2751, in _import_device_backends
backend_extensions = entry_points(group=group_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/importlib/metadata/init.py", line 913, in entry_points
return EntryPoints(eps).select(**params)
^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/importlib/metadata/init.py", line 911, in
dist.entry_points for dist in _unique(distributions())
^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/importlib/metadata/_itertools.py", line 16, in unique_everseen
k = key(element)
^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/importlib/metadata/init.py", line 835, in _normalized_name
or super().normalized_name
^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/importlib/metadata/init.py", line 462, in normalized_name
return Prepared.normalize(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/importlib/metadata/init.py", line 762, in normalize
return re.sub(r"[-
.]+", "-", name).lower().replace('-', '
')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/software/anaconda3/lib/python3.12/re/init.py", line 186, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Originally created by @miaoxiannv on GitHub (Feb 22, 2025). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/596 (base) root@control01:/home/zhangsy/ktransformers# KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation WARNING: Skipping /data/software/anaconda3/lib/python3.12/site-packages/ktransformers-0.2.1.post1-py3.12-linux-x86_64.egg/EGG-INFO due to invalid metadata entry 'name' Processing /home/zhangsy/ktransformers Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [41 lines of output] Traceback (most recent call last): File "/data/software/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/data/software/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel self.run_setup() File "/data/software/anaconda3/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) File "<string>", line 28, in <module> File "/data/software/anaconda3/lib/python3.12/site-packages/torch/__init__.py", line 2784, in <module> _import_device_backends() File "/data/software/anaconda3/lib/python3.12/site-packages/torch/__init__.py", line 2751, in _import_device_backends backend_extensions = entry_points(group=group_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/importlib/metadata/__init__.py", line 913, in entry_points return EntryPoints(eps).select(**params) ^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/importlib/metadata/__init__.py", line 911, in <genexpr> dist.entry_points for dist in _unique(distributions()) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/importlib/metadata/_itertools.py", line 16, in unique_everseen k = key(element) ^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/importlib/metadata/__init__.py", line 835, in _normalized_name or super()._normalized_name ^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/importlib/metadata/__init__.py", line 462, in _normalized_name return Prepared.normalize(self.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/importlib/metadata/__init__.py", line 762, in normalize return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/software/anaconda3/lib/python3.12/re/__init__.py", line 186, in sub return _compile(pattern, flags).sub(repl, string, count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: expected string or bytes-like object, got 'NoneType' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
bsakaguchi 2026-10-29 14:39:43 +00:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@miaoxiannv commented on GitHub (Feb 22, 2025):

这种问题是如何解决的

<!-- gh-comment-id:2676109361 --> @miaoxiannv commented on GitHub (Feb 22, 2025): 这种问题是如何解决的
Author
Owner

@ubergarm commented on GitHub (Feb 22, 2025):

@miaoxiannv

您当前使用的是Python 3.12版本,而本项目仅针对Python
3.11进行过测试。建议您参考此指南,其中提供了最
新可运行的版本(具备完整的API支持),包含预编译的二进制.whl文件及自行编译安装的详细说明。另外,本人从未使用conda或poetry,当前uv已成为最佳选择,其功能已基本取代传统的pip工具。


You are using python 3.12 - I've only tried with python 3.11

I would suggest you look at this guide which provides the newest working version with full API support including prebuilt binary .whl files as well as how to install it yourself. Also I never use conda nor poetry, uv is the best tool for the job these days and basically has replaced pip.

<!-- gh-comment-id:2676301490 --> @ubergarm commented on GitHub (Feb 22, 2025): @miaoxiannv 您当前使用的是Python 3.12版本,而本项目仅针对Python 3.11进行过测试。建议您参考[此指南](https://github.com/ubergarm/r1-ktransformers-guide/blob/main/README.zh.md),其中提供了最 新可运行的版本(具备完整的API支持),包含预编译的二进制.whl文件及自行编译安装的详细说明。另外,本人从未使用`conda`或`poetry`,当前`uv`已成为最佳选择,其功能已基本取代传统的`pip`工具。 --- You are using python 3.12 - I've only tried with python 3.11 I would suggest you [look at this guide](https://github.com/ubergarm/r1-ktransformers-guide/blob/main/README.zh.md) which provides the newest working version with full API support including prebuilt binary .whl files as well as how to install it yourself. Also I never use `conda` nor `poetry`, `uv` is the best tool for the job these days and basically has replaced `pip`.
Author
Owner

@ErvinXie commented on GitHub (Dec 11, 2025):

This issue has been automatically closed due to inactivity for 60 days.

If you believe this issue is still relevant, please feel free to reopen it with additional information or context.

Thank you for your contribution to KTransformers!


此 issue 因超过 60 天无活动而被自动关闭。

如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。

感谢您对 KTransformers 的贡献!

<!-- gh-comment-id:3639928093 --> @ErvinXie commented on GitHub (Dec 11, 2025): This issue has been automatically closed due to inactivity for 60 days. If you believe this issue is still relevant, please feel free to reopen it with additional information or context. Thank you for your contribution to KTransformers! --- 此 issue 因超过 60 天无活动而被自动关闭。 如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。 感谢您对 KTransformers 的贡献!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#439
No description provided.