Hi,
I'm trying to move some of my scripts to PAWS. Without realizing, I logged in to PAWS with my normal username, not my bot username, so when I try to change the username from user-config.py, I get the error:
pywikibot.exceptions.NoUsername: Logged in on wikipedia:ro via OAuth as Strainu, but expect as Strainubot
Is there any way I can change the username or do I need to create another notebook? If the latter, how can I easily move my files between notebooks?
Thanks, Strainu
Hi Strainu,
I don't think there's a very simple solution to this, but there are two main options: - hack around the oauth login to not use the paws oauth data, or - download and copy all files
I think the latter is probably the easiest solution:
- Open a terminal (new » terminal), - tar -cvjf files.tar.bz2 * - close the terminal; in the jupyterhub file tree, click on files.tar.bz2 to download it - log out, log in as correct user - upload the files.tar.bz2 file - open a terminal - tar -xvjf files.tar.bz2 - done!
Best, Merlijn
On 1 April 2017 at 10:03, Strainu strainu10@gmail.com wrote:
Hi,
I'm trying to move some of my scripts to PAWS. Without realizing, I logged in to PAWS with my normal username, not my bot username, so when I try to change the username from user-config.py, I get the error:
pywikibot.exceptions.NoUsername: Logged in on wikipedia:ro via OAuth as Strainu, but expect as Strainubot
Is there any way I can change the username or do I need to create another notebook? If the latter, how can I easily move my files between notebooks?
Thanks, Strainu
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
Thanks Merlijn. I tried to log in with Strainubot, it worked, but when trying to start the server, I get a 404. From what I can see on the Internet, this usually happens when the server cannot be started for some reason. Is there a way to learn more about the error or should i just log a bug?
Strainu
2017-04-02 13:45 GMT+03:00 Merlijn van Deen (valhallasw) valhallasw@arctus.nl:
Hi Strainu,
I don't think there's a very simple solution to this, but there are two main options:
- hack around the oauth login to not use the paws oauth data, or
- download and copy all files
I think the latter is probably the easiest solution:
Open a terminal (new » terminal), tar -cvjf files.tar.bz2 * close the terminal; in the jupyterhub file tree, click on files.tar.bz2 to download it log out, log in as correct user upload the files.tar.bz2 file open a terminal tar -xvjf files.tar.bz2 done!
Best, Merlijn
On 1 April 2017 at 10:03, Strainu strainu10@gmail.com wrote:
Hi,
I'm trying to move some of my scripts to PAWS. Without realizing, I logged in to PAWS with my normal username, not my bot username, so when I try to change the username from user-config.py, I get the error:
pywikibot.exceptions.NoUsername: Logged in on wikipedia:ro via OAuth as Strainu, but expect as Strainubot
Is there any way I can change the username or do I need to create another notebook? If the latter, how can I easily move my files between notebooks?
Thanks, Strainu
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
Hi Strainu,
On 3 April 2017 at 09:52, Strainu strainu10@gmail.com wrote:
Thanks Merlijn. I tried to log in with Strainubot, it worked, but when trying to start the server, I get a 404. From what I can see on the Internet, this usually happens when the server cannot be started for some reason. Is there a way to learn more about the error or should i just log a bug?
I'm not sure -- I would suggest to try again (log out/log in again), and if that doesn't work, filing a bug is probably the best option.
Best, Merlijn
I don't know what PAWS is, but I think you should be able to rescind OAuth privileges by going to [[Special:OAuthManageMyGrants]] on any wiki, and remove access for the right app. Again, I don't know if that's applicable in this situation, but it might help.
1. apr. 2017 10:13 skrev "Strainu" strainu10@gmail.com:
Hi,
I'm trying to move some of my scripts to PAWS. Without realizing, I logged in to PAWS with my normal username, not my bot username, so when I try to change the username from user-config.py, I get the error:
pywikibot.exceptions.NoUsername: Logged in on wikipedia:ro via OAuth as Strainu, but expect as Strainubot
Is there any way I can change the username or do I need to create another notebook? If the latter, how can I easily move my files between notebooks?
Thanks, Strainu
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot
2017-04-14 3:12 GMT+03:00 Jon Harald Søby jhsoby@gmail.com:
I don't know what PAWS is, but I think you should be able to rescind OAuth privileges by going to [[Special:OAuthManageMyGrants]] on any wiki, and remove access for the right app. Again, I don't know if that's applicable in this situation, but it might help.
Hi Jon,
That only disconnects the app from the account, not the account from the app :)
The correct bug seems to be https://phabricator.wikimedia.org/T140525 , see my comments there for the issue I've encountered. Hopefully Yuvipanda will have the time to look into it soon.
Strainu