Page MenuHomePhabricator

articlequality makefile has hardcoded path
Open, LowPublic

Description

awight@ores-misc-01:~/ores-deploy/submodules/articlequality$ make
./utility extract_labelings \
  /mnt/data/xmldatadumps/public/frwiki/20151202/frwiki-20151202-pages-meta-history*.xml*.bz2 > datasets/frwiki.labelings.20151202.json
/home/awight/ores-deploy/.venv/lib/python3.5/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)
Traceback (most recent call last):
  File "./utility", line 4, in <module>
    articlequality.main()
  File "/home/awight/ores-deploy/submodules/articlequality/articlequality/articlequality.py", line 50, in main
    module.main(sys.argv[2:])
  File "/home/awight/ores-deploy/submodules/articlequality/articlequality/utilities/extract_labelings.py", line 58, in main
    run(dump_paths, threads, output, verbose=verbose, extractor=extractor)
  File "/home/awight/ores-deploy/submodules/articlequality/articlequality/utilities/extract_labelings.py", line 84, in run
    for labeling in label_events:
  File "/home/awight/ores-deploy/.venv/lib/python3.5/site-packages/mwxml/map/map.py", line 43, in map
    paths = [mwtypes.files.normalize_path(path) for path in paths]
  File "/home/awight/ores-deploy/.venv/lib/python3.5/site-packages/mwxml/map/map.py", line 43, in <listcomp>
    paths = [mwtypes.files.normalize_path(path) for path in paths]
  File "/home/awight/ores-deploy/.venv/lib/python3.5/site-packages/mwtypes/files/functions.py", line 70, in normalize_path
    raise FileNotFoundError("No such file: {0}".format(path))
FileNotFoundError: No such file: /mnt/data/xmldatadumps/public/frwiki/20151202/frwiki-20151202-pages-meta-history*.xml*.bz2
Makefile:121: recipe for target 'datasets/frwiki.labelings.20151202.json' failed