Pluggy 1.7.0 breaks scancode
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
The traceback points to plugincode/__init__.py line 182, where add_hookspecs is called on the plugincode.pre_scan module, and then into pluggy's _manager.py add_hookspecs, which raises when it finds no hook markers. Start by reproducing with pluggy 1.7.0 and comparing how plugincode/pre_scan.py marks its hookspecs against the 1.6.0 behaviour. Done means the scancode CLI runs on pluggy 1.7.0 and its plugin tests pass.
由索引模型根据 Issue 内容生成。
描述
Description
The update to pluggy 1.7.0 from a few hours ago results in the following error when trying to run scancode (in version scancode_toolkit-32.5.0-cp313):
Traceback (most recent call last):
File "/usr/local/bin/scancode", line 5, in <module>
from scancode.cli import scancode
File "/usr/local/lib/python3.13/dist-packages/scancode/cli.py", line 57, in <module>
from plugincode import pre_scan
File "/usr/local/lib/python3.13/dist-packages/plugincode/pre_scan.py", line 30, in <module>
pre_scan_plugins = PluginManager(
stage=stage, module_qname=__name__, entrypoint=entrypoint, plugin_base_class=PreScanPlugin
)
File "/usr/local/lib/python3.13/dist-packages/plugincode/__init__.py", line 182, in __init__
self.manager.add_hookspecs(sys.modules[module_qname])
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/dist-packages/pluggy/_manager.py", line 366, in add_hookspecs
raise ValueError(
f"did not find any {self.project_name!r} hooks in {module_or_class!r}"
)
ValueError: did not find any 'pre_scan' hooks in <module 'plugincode.pre_scan' from '/usr/local/lib/python3.13/dist-packages/plugincode/pre_scan.py'>
How To Reproduce
Install the latest pluggy and scancode versions:
pip3 install pyyaml pluggy==1.7.0 scancode-toolkit
and try to run scancode.
Fixing pluggy to the previous version fixes the issue:
pip3 install pyyaml pluggy==1.6.0 scancode-toolkit
- 主要语言
- Python
- 星标
- 2.7k
- 派生
- 831
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 7
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/scancode-toolkit 的其他 Issue
-
parse_maintainer_name_email returns empty name and wrong email when string has "@" but no angle brackets可能已有人在做 @pujitha24 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
aboutcode-org/scancode-toolkit#5402 ·
维护者通常 3 天内回复
-
bug: Unreachable JSON extension and format validation in validate_input_path可能已有人在做 @0Cymantek0 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
aboutcode-org/scancode-toolkit#5351 · 1 条评论 ·
维护者通常 3 天内回复
-
CycloneDX output: metadata.properties[].value emits JSON array instead of string可能已有人在做 @0Cymantek0 于 20 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
aboutcode-org/scancode-toolkit#5349 · 1 条评论 ·
维护者通常 3 天内回复
-
Duplicate 'COPYLEFT' entries in legal file classification names in legal.py and classify.py可能已有人在做 @Pradeepbeleri 于 48 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
aboutcode-org/scancode-toolkit#5319 · 2 条评论 ·
维护者通常 3 天内回复
-
Duplicate autogen.sh entry in commoncode default ignores可能已有人在做 @Daksha1611 于 51 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
aboutcode-org/scancode-toolkit#5316 ·
维护者通常 3 天内回复
查看 aboutcode-org/scancode-toolkit 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 80/100
Imbad0202/academic-research-skills#1039 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
alexgreensh/token-optimizer#297 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
superdesigndev/treg#1343 ·
维护者通常 1 天内回复
-
GitHub handle should allow underscores可能已有人在做 @PrakarshSrivastav 今天认领。 未关闭bug good-first-issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
good first issue test
难度 2/5 1-3 小时 新手友好度 85/100
ANCORATE/EncryptHome#8 ·