#7944·flower

[错误]: 应用程序目录中的文件名中包含逗号会导致崩溃

作者: Meorge创建于 2026年8月20日更新于 2026年9月4日

By inserting a print statement at the beginning of flwr/cli/install.py's _verify_hashes() function, like so:

python
def _verify_hashes(list_content: str, tmpdir: Path) -> bool:
    """Verify file hashes based on the CONTENT manifest.
    Parameters
    ----------
    list_content : str
        Content of the CONTENT manifest file with hash information.
    tmpdir : Path
        Temporary directory containing extracted files.
    Returns
    -------
    bool
        True if all file hashes match, False otherwise.
    """
    print(list_content)
    for line in list_content.strip().split("\n"):
        rel_path, hash_expected, _ = line.split(",")
        ...

I get the following output:

pyproject.toml,c5e8e8a32506881f7953dd9fbaf43a922496602bf9108166b6c5a08cb214934f,6616
1787181290,m=0.0.json,1ac825665498132980a7657679318e9bad4abd3e2f2e641c5fc91524a56479d4,18424
LICENSE,cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30,90864
README.md,26a0b7e105439ff9defd2edbf5fbe992398f7e4cf75b9521149fd192f32c9c03,24816
pytorchexample/__init__.py,060758d3c3c2868215a6bf658db65f601f5ed8fba8a699c2093e028a49cd2763,176
pytorchexample/client_app.py,39bc02f25e78b41e49d65f41ab4df98c559dd744cbe2af683ddebb235c432818,28464
…

内容来源: flwrlabs/flower