Skip to content

FileNotFoundError: [Errno 2] No such file or directory: './latex/power.json' when running data_loader.py #3

@99starman

Description

@99starman

Hello,

While following the example in the README (downloading the wiki_corpus dataset), I encountered the following error:

>>> python data_loader.py -d power --save_dir ./css_data/wiki_corpus
Downloading wiki-corpus to C:\Users\yangs\.convokit\downloads\wiki-corpus
Downloading wiki-corpus from http://zissou.infosci.cornell.edu/convokit/datasets/wiki-corpus/wiki-corpus.zip (238.4MB)... Done
Traceback (most recent call last):
  File "E:\...\LLMs_for_CSS\data_loader.py", line 276, in <module>
    main(args.dataset, args.save_dir)
  File "E:\...\LLMs_for_CSS\data_loader.py", line 254, in main
    convokit_process(dataset, save_dir)
  File "E:\...\LLMs_for_CSS\data_loader.py", line 242, in convokit_process
    export_latex(
  File "E:\...\LLMs_for_CSS\latex_prompt_exporter.py", line 36, in export_latex
    text_file = open(filename, "w")
                ^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './latex/power.json'

There doesn't seem to be a latex folder in the same directory as latex_prompt_exporter.py, or perhaps my ConvoKit is not properly installed? Also tried some other datasets from convokit and received similar errors.

Here's the output from pip:

Name: convokit
Version: 2.5.3
Summary: ConvoKit
Home-page: https://github.com/CornellNLP/ConvoKit
Author: Jonathan P. Chang, Caleb Chiam, Liye Fu, Andrew Wang, Justine Zhang, Cristian Danescu-Niculescu-Mizil
Author-email: [email protected]
License:
Location: E:\python\Lib\site-packages
Editable project location: E:\...\LLMs_for_CSS\ConvoKit
Requires: clean-text, dill, dnspython, joblib, matplotlib, msgpack-numpy, nltk, pandas, pymongo, pyyaml, scikit-learn, scipy, spacy, tqdm, unidecode
Required-by:

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions