[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2019-01-04 Thread Xqt
Xqt added a comment. @Wesalius: btw thanks for investigating in this task :)TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Framawiki, zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper, Wesalius,

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2019-01-04 Thread Wesalius
Wesalius added a comment. Resolved with setting correct permissions to user-config.py. The file has to be only readable. The generate-user-files.py produces a 777 user-config.py file. python pwb.py generate-user-files stat --format '%a' user-config.py 777 After changing the permissions to

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2019-01-01 Thread Xqt
Xqt added a comment. I can reproduce it with the following traceback: C:\pwb\GIT\core>pwb.py touch -page:user:xqt/Test family and mylang are not set. Defaulting to family='test' and mylang='test'. Traceback (most recent call last): File "C:\pwb\GIT\core\pywikibot\login.py", line 112, in

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Wesalius
Wesalius added a comment. In T212723#4847052, @Xqt wrote: ERROR: Username for test:test is undefined. usernames['wikipedia']['cs'] = u'Wesalius' @Wesalius: Your bot is running on site test:test but you defined a user for wikipedia:cs only. How do I tell pwb to use different site then? Maybe

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread zhuyifei1999
zhuyifei1999 added a comment. I think it's loading a wrong user-config.py or something...TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: zhuyifei1999Cc: zhuyifei1999, Dvorapa, Xqt, Zoranzoki21, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Dvorapa
Dvorapa added a comment. Try to remove pywikibot.lwp file and try it again. I do not see any problem in your user-config.py at first sight. Also check if there is nothing wrong with your user-password.py. If nothing helps, you could also try to generate new user-config.py or download/clone new

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Xqt
Xqt added a comment. ERROR: Username for test:test is undefined. usernames['wikipedia']['cs'] = u'Wesalius' @Wesalius: Your bot is running on site test:test but you definded a user for wikipedia:cs only.TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Wesalius
Wesalius added a comment. # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals # This is an automatically generated file. You can find more configuration # parameters in 'config.py' file. # The family of sites to work on by default. # # ‘site.py’ imports

[Pywikipedia-bugs] [Maniphest] [Commented On] T212723: Exception - No username

2018-12-31 Thread Zoranzoki21
Zoranzoki21 added a comment. Can you provide full content of user-config.py please?TASK DETAILhttps://phabricator.wikimedia.org/T212723EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Zoranzoki21Cc: Zoranzoki21, Aklapper, Wesalius, pywikibot-bugs-list, Wenyi,