Skip to content

Cannot download the database using hmg_db_downloader.py #1

@uuwuyi

Description

@uuwuyi

Hi,

I used the csv file downloaded from the database website (quick search > download as csv > download complete csv) as the input for the downloader script. But it returned an error.

--> HMgDB Downloader - v.1

Would you like to fetch processed files from MG-RAST when raw data is not available? Please type Yes[default]/No:  Yes

 -> Trying processed MGRast data if raw data is not available

 -> Using input file: hmgdb_selected_dataset_all_col_20201130_015732.csv
Traceback (most recent call last):
  File "hmgdb_downloader.py", line 344, in <module>
    main()
  File "hmgdb_downloader.py", line 315, in main
    sra_list, mgrast_list = get_input_file(infile)
  File "hmgdb_downloader.py", line 48, in get_input_file
    l=f.readline()
  File "/home/yw14n20/.conda/envs/main/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5400: ordinal not in range(128)

I run this command line on Linux. python3 hmgdb_downloader.py -o /scratch/yw14n20/db/hmgdb -i hmgdb_selected_dataset_all_col_20201130_015732.csv

Your help will be greatly appreciated! Thank you!

Best regards,
Yi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions