[Labs-l] Guidance on how to set up pywikibot cronjobs and utilise oauth
Pierre-Selim
pierre-selim at huard.info
Sat Mar 19 13:19:53 UTC 2016
>From my experience, problems with cron is often related to the fact it
doesn't run your interactive shell <
http://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables
>
Probably a problem with PYTHONPATH not being set like you expect.
2016-03-19 14:07 GMT+01:00 billinghurst <billinghurstwiki at gmail.com>:
> Since I converted my (pywikbot) bot to use oauth authentication, it is
> failing on its cronjob due to not authenticating.
>
> ERROR: OAuth authentication not supported: No module named
> requests_oauthlib
>
>
> The bot and the task runs fine when run manually, though not from
> cronjob. Ran fine previously.
>
> Can someone please either point me to some pertinent help information,
> or guide me on the changes that I need to be making to have this
> working successfully.
>
> Thanks.
> Billinghurst
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
--
Pierre-Selim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/labs-l/attachments/20160319/b823638a/attachment.html>
More information about the Labs-l
mailing list