Last modified: 2013-12-06 11:05:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59971, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57971 - generate_user_files.py cannot be run for a shared repository
generate_user_files.py cannot be run for a shared repository
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Highest critical
: ---
Assigned To: Amir Ladsgroup
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-04 12:04 UTC by Merlijn van Deen (test)
Modified: 2013-12-06 11:05 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Merlijn van Deen (test) 2013-12-04 12:04:49 UTC
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'
Comment 1 Merlijn van Deen (test) 2013-12-04 12:06:26 UTC
Upped priority as this breaks user-config.py creation for all TL users that use the central pywikibot version.
Comment 2 Gerrit Notification Bot 2013-12-05 21:11:49 UTC
Change 99471 had a related patch set uploaded by Merlijn van Deen:
Bug 57971 - fix generate_user_files.py crash

https://gerrit.wikimedia.org/r/99471
Comment 3 Gerrit Notification Bot 2013-12-06 11:00:40 UTC
Change 99471 merged by jenkins-bot:
Bug 57971 - fix generate_user_files.py crash

https://gerrit.wikimedia.org/r/99471

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links