LucaVirusTasks icon indicating copy to clipboard operation
LucaVirusTasks copied to clipboard

Error in "python fetch_checkpoints.py"

Open permia opened this issue 1 year ago • 1 comments

While installing the Lucavirustasks, at the step "python fetch_checkpoints.py". There is one error.

Reading ../model_manifest/binary_class.csv...
Traceback (most recent call last):
  File "./LucaVirusTasks/src/fetch_checkpoints.py", line 135, in <module>
    main()
  File "./LucaVirusTasks/src/fetch_checkpoints.py", line 81, in main
    binary_checkpoints = read_model_manifest(binary_class_path)
  File "./LucaVirusTasks/src/fetch_checkpoints.py", line 30, in read_model_manifest
    dataset_name = row['dataset_name']
KeyError: 'dataset_name'

permia avatar Jun 24 '25 15:06 permia

<U+FEFF>dataset_name,task_type,model_type.. Ah, I see the issue now! Your CSV file has a Byte Order Mark (BOM) at the beginning, which is causing Python's CSV reader to not properly recognize the column names. The <U+FEFF> at the start of your file is a BOM character, often added by some text editors (like Excel on Windows).

Save the CSV Without BOM Open the file in a text editor like VS Code, Notepad++, or Sublime Text.

Ensure it's saved as UTF-8 without BOM.

If using Excel, try exporting the CSV again with "UTF-8 (no BOM)" encoding.

permia avatar Jun 25 '25 01:06 permia