You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: I'm encountering the following error when trying to encode a string with the gbk codec: UnicodeEncodeError: 'gbk' codec can't encode character '\u2081' in position 7091: illegal multibyte sequence
The running log is here
‘File D:\mycoding\python\SciAgentsDiscovery\ScienceDiscovery\utils.py:511, in research_generation(G, embedding_tokenizer, embedding_model, node_embeddings, generate, generate_graph_expansion, randomness_factor, num_random_waypoints, shortest_path, second_hop, data_dir, save_files, verbatim, keyword_1, keyword_2)
508 res_data['synbio_priority'] = synbio_priority
510 output_pdf_path = f"{data_dir}/output_"
--> 511 fname=markdown_to_pdf(complete_doc, output_pdf_path)
513 df = pd.DataFrame([res_data])
514 df_total = pd.concat([df_total, df], ignore_index=True)
File D:\mycoding\python\SciAgentsDiscovery\ScienceDiscovery\utils.py:100, in markdown_to_pdf(markdown_text, output_pdf_path)
98 # Save the Markdown text to a .md file
99 with open(output_md_path, 'w') as md_file:
--> 100 md_file.write(markdown_text)
102 pdfkit.from_string(full_html, output_pdf_path)
104 return output_pdf_path
’
The text was updated successfully, but these errors were encountered:
Description: I'm encountering the following error when trying to encode a string with the gbk codec:
UnicodeEncodeError: 'gbk' codec can't encode character '\u2081' in position 7091: illegal multibyte sequence
The running log is here
‘File D:\mycoding\python\SciAgentsDiscovery\ScienceDiscovery\utils.py:511, in research_generation(G, embedding_tokenizer, embedding_model, node_embeddings, generate, generate_graph_expansion, randomness_factor, num_random_waypoints, shortest_path, second_hop, data_dir, save_files, verbatim, keyword_1, keyword_2)
508 res_data['synbio_priority'] = synbio_priority
510 output_pdf_path = f"{data_dir}/output_"
--> 511 fname=markdown_to_pdf(complete_doc, output_pdf_path)
513 df = pd.DataFrame([res_data])
514 df_total = pd.concat([df_total, df], ignore_index=True)
File D:\mycoding\python\SciAgentsDiscovery\ScienceDiscovery\utils.py:100, in markdown_to_pdf(markdown_text, output_pdf_path)
98 # Save the Markdown text to a .md file
99 with open(output_md_path, 'w') as md_file:
--> 100 md_file.write(markdown_text)
102 pdfkit.from_string(full_html, output_pdf_path)
104 return output_pdf_path
’
The text was updated successfully, but these errors were encountered: