| MuhammadShuaib added a comment. |
In T188246#4006645, @zhuyifei1999 wrote:In T188246#4005253, @MuhammadShuaib wrote:python pwb.py replace -fix:correct-ur -transcludes:Infobox_settlement -lang:ur -family:wikipedia -always
I assume this is tool khanamalumat.
Yes it us khanamalumat, but I am facing the same problem in my another tools.shuaib-bot in core branch.
Yes, I am sure.
I see three user-config.py-s:
04:54:52 0 ✓ zhuyifei1999@tools-bastion-02: ~$ ls -l /data/project/khanamalumat/{,compat/,core/}user-config.py -rw-r--r-- 1 tools.khanamalumat tools.khanamalumat 1217 Feb 26 06:25 /data/project/khanamalumat/compat/user-config.py -rw-r--r-- 1 tools.khanamalumat tools.khanamalumat 1217 Feb 26 06:20 /data/project/khanamalumat/core/user-config.py -rw-r--r-- 1 nadwi tools.khanamalumat 1217 Feb 26 05:23 /data/project/khanamalumat/user-config.pyNote that when jsub executes a script it sets your current directory to your home directory unless otherwise specified. However, all these files are identical, so something weird is going on. (Also please see T188323)
This issue is indeed reproduce-able:
04:52:03 0 ✓ zhuyifei1999@tools-bastion-02: /data/project/khanamalumat$ python -i core/pwb.py No handlers could be found for logger "pywiki" Wrapper script to use Pywikibot in 'directory' mode. Run scripts using: python pwb.py <name_of_script> <options> and it will use the package directory to store all user files, will fix up search paths so the package does not need to be installed, etc. >>> import pywikibot >>> pywikibot.config.family u'test' >>>Investigating
Yes, there are three, one is for compat and second for core and now I removed the third one.
TASK DETAIL
EMAIL PREFERENCES
To: zhuyifei1999, MuhammadShuaib
Cc: Dalba, zhuyifei1999, matej_suchanek, Aklapper, pywikibot-bugs-list, MuhammadShuaib, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
Cc: Dalba, zhuyifei1999, matej_suchanek, Aklapper, pywikibot-bugs-list, MuhammadShuaib, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
