https://bugzilla.wikimedia.org/show_bug.cgi?id=57971
Web browser: --- Bug ID: 57971 Summary: generate_user_files.py cannot be run for a shared repository Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Classification: Unclassified Mobile Platform: ---
https://gerrit.wikimedia.org/r/#/c/81500/ broke generate_user_files.py on Tool Labs:
$ export PYTHONPATH=/shared/pywikipedia/rewrite:/shared/pywikipedia/rewrite/externals/httplib2:/shared/pywikipedia/rewrite/scripts $ python /shared/pywikipedia/rewrite/generate_user_files.py
Your default user directory is "/home/valhallasw/.pywikibot" How to proceed? ([K]eep [c]hange) Do you want to copy user files from an existing pywikipedia installation? n Create user-config.py file? Required for running bots ([y]es, [N]o) y 1: anarchopedia 2: battlestarwiki 3: commons 4: fon 5: gentoo 6: i18n 7: incubator 8: lockwiki 9: lyricwiki 10: mediawiki 11: meta 12: oldwikivoyage 13: omegawiki 14: osm 15: southernapproach 16: species 17: strategy 18: test 19: vikidia 20: wikia 21: wikibooks 22: wikidata 23: wikimedia 24: wikinews 25: wikipedia 26: wikiquote 27: wikisource 28: wikitech 29: wikiversity 30: wikivoyage 31: wiktionary 32: wowwiki Select family of sites we are working on, just enter the number not name (default: wikipedia): Traceback (most recent call last): File "/shared/pywikipedia/rewrite/generate_user_files.py", line 330, in <module> create_user_config() File "/shared/pywikipedia/rewrite/generate_user_files.py", line 194, in create_user_config fam, mylang, mainusername = get_site_and_lang() File "/shared/pywikipedia/rewrite/generate_user_files.py", line 169, in get_site_and_lang codesds = codecs.open("pywikibot/families/%s_family.py" % fam, "r", "utf-8").read() File "/usr/lib/python2.7/codecs.py", line 881, in open file = __builtin__.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: 'pywikibot/families/wikipedia_family.py'
https://bugzilla.wikimedia.org/show_bug.cgi?id=57971
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Highest Assignee|Pywikipedia-bugs@lists.wiki |ladsgroup@gmail.com |media.org | Severity|normal |critical
pywikipedia-bugs@lists.wikimedia.org