Page MenuHomePhabricator

generate_user_files.py: Report to user_config.py not found
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce: Run python pwb.py generate_user_files

Actual Results: All is ok, but he report to user_config.py is not found

C:\Users\ZoranD\Desktop\core>python pwb.py generate_user_files
NOTE: 'user-config.py' was not found!
You can abort at any time by pressing ctrl-c

Your default user directory is "C:\Users\ZoranD\Desktop\core"
 1: commons
 2: i18n
 3: incubator
 4: lyricwiki
 5: mediawiki
 6: meta
 7: omegawiki
 8: osm
 9: outreach
10: species
11: strategy
12: test
13: vezba
14: vikidia
15: wikia
16: wikiapiary
17: wikibooks
18: wikidata
19: wikimania
20: wikimediachapter
21: wikinews
22: wikipedia
23: wikiquote
24: wikisource
25: wikitech
26: wikiversity
27: wikivoyage
28: wiktionary
29: wowwiki
Select family of sites we are working on, just enter the number or name (default
: wikipedia):

Expected Results: He should not report to user_config.py is not found when using a script to generate this file.

Event Timeline

The expected way to run them: python pwb.py <script> or python generate_user_files.py. pwb.py loads the user files and if it is not found it calls generate_user_files; if it is found it calls the script specified in the second argument. python pwb.py generate_user_files makes no sense to me.

Change 406065 had a related patch set uploaded (by Framawiki; owner: Framawiki):
[pywikibot/core@master] [bugfix] pwb.py: bad 'user-config.py' was not found

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

I've added at the same time an exception for version.py, because it looks that this file works well although no user- files are present.

What is this [BUG] near the task title ? @mmodell a new phab form ?

What is this [BUG] near the task title ? @mmodell a new phab form ?

@Framawiki Yes, form. https://phabricator.wikimedia.org/transactions/editengine/maniphest.task/view/43/

I using form because is easier to report problem.

... which is an 'experimental', and probably not recommended, feature. T176354

... which is an 'experimental', and probably not recommended, feature. T176354

Disable form

@Framawiki Please you deploy patch. I tested and I put output of command line in comments of patch.. All is ok now.

In T185647#3922331, @Zoranzoki21 wrote:

Disable form

(offtopic) that will cause T176061

Change 406065 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] pwb.py: bad 'user-config.py' was not found

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