mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #596] metadata-generation-failed #439
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#439
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@miaoxiannv commented on GitHub (Feb 22, 2025):
这种问题是如何解决的
@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
condanorpoetry,uvis the best tool for the job these days and basically has replacedpip.@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 的贡献!