-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update python code from 2 to 3, update pywikbot API and use venv not locally hosted pywikibot core #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update.
I'll deploy this shortly |
Ok, I see you removed the hash bang and added the
|
I'll try following https://wikitech.wikimedia.org/wiki/Help:Toolforge/Python and manually create a venv. |
I assume that Pull the changes if you have not already. To create the venv and install the requirements, run the following: cd /data/project/qic/
python3 -m venv qic_venv
source qic_venv/bin/activate
pip install -r /data/project/qic/qic_bot/requirements.txt
Change the script to the following two lines. #!/bin/bash
/data/project/qic/qic_venv/bin/python3 /data/project/qic/qic_bot/qic2.py |
Are the errors still persistent? Did you run it around 6:30 AM to 9:30 AM (Idaho time)? It's known that API requests fail at this time frame see https://phabricator.wikimedia.org/T249035.
If you have no problem, feel free to add me to the tool. (ldap/username : eatcha) |
I added you! I'm also making the logs available at https://tools-static.wmflabs.org/qic/ You can see that as long as the bot is persistent and keeps trying it seems to work eventually. |
No description provided.