MuhammadShuaib added a comment.

Thanks! It seems to me that pywikibot is not able to find your user-config.py.

What is the path of your user-config.py ? (it normally should be the same directory as pwb.py or in ~/.pywikibot)

Yes, user-config.py and pwb.py are already in the same directory.

You could try setting the PYWIKIBOT2_DIR environment variable (export PYWIKIBOT2_DIR=/absolute/path/to/your/user-config/directory) and see if it helps (you should do this in your cron script).

I am running script via jsub command, how to do this in cron?

Has this problem occurred recently or is it the first time you're running this script through the cron job?

Recently I switched from compat to core branch and faced this problem.


TASK DETAIL
https://phabricator.wikimedia.org/T188246

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: MuhammadShuaib
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

Reply via email to