https://bugzilla.wikimedia.org/show_bug.cgi?id=68611
Bug ID: 68611 Summary: Running data_ingestion.py depends on tests/data/csv_ingestion.csv Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: pywikipedia-b...@lists.wikimedia.org Reporter: jay...@gmail.com Web browser: --- Mobile Platform: --- Running data_ingestion requires the file 'tests/data/csv_ingestion.csv' relative to CWD, which doesnt exist except when the bot operator is calling the script whilst CWD is the scripts directory. $ python pwb.py scripts/data_ingestion.py Traceback (most recent call last): File "pwb.py", line 157, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/data_ingestion.py", line 144, in <module> reader = CSVReader(open('tests/data/csv_ingestion.csv'), 'url') IOError: [Errno 2] No such file or directory: 'tests/data/csv_ingestion.csv' <type 'exceptions.IOError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort There is a test, which isnt run as part of the test suite: scripts/tests/test_data_ingestion.py And the data file does exist as: scripts/tests/data/csv_ingestion.csv -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l