Aram reopened this task as "Open".
Aram added a comment.
Sorry for reopening. You were right. My bot wasn't attached to Commons, but
after attaching, I still faces these errors. Even I can't understand it; it's
weird!
ERROR: No username has been defined in your user config file: you have to
add in this file the following line:
usernames[Family("wikipedia")]['en']= 'AramBot' (NoUsernameError)
Traceback (most recent call last):
File "/data/project/arambot/pywikibot-core/pwb.py", line 39, in <module>
sys.exit(main())
File "/data/project/arambot/pywikibot-core/pwb.py", line 35, in main
runpy.run_path(str(path), run_name='__main__')
File "/usr/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/data/project/arambot/pywikibot-core/pywikibot/scripts/wrapper.py",
line 513, in <module>
main()
File "/data/project/arambot/pywikibot-core/pywikibot/scripts/wrapper.py",
line 497, in main
if not execute():
File "/data/project/arambot/pywikibot-core/pywikibot/scripts/wrapper.py",
line 484, in execute
run_python_file(filename, script_args, module)
File "/data/project/arambot/pywikibot-core/pywikibot/scripts/wrapper.py",
line 148, in run_python_file
main_mod.__dict__)
File "/data/project/arambot/pywikibot-core/scripts/commonscat.py", line
576, in <module>
main()
File "/data/project/arambot/pywikibot-core/scripts/commonscat.py", line
570, in main
bot.run()
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/bot.py",
line 1664, in run
self.treat(page)
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/bot.py",
line 1917, in treat
self.treat_page()
File "/data/project/arambot/pywikibot-core/scripts/commonscat.py", line
324, in treat_page
commonscatLink = self.find_commons_category(page)
File "/data/project/arambot/pywikibot-core/scripts/commonscat.py", line
427, in find_commons_category
return self.findCommonscatLink(page)
File "/data/project/arambot/pywikibot-core/scripts/commonscat.py", line
383, in findCommonscatLink
for ipageLink in page.langlinks():
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/page/_basepage.py",
line 1523, in langlinks
self._langlinks = set(self.iterlanglinks(include_obsolete=True))
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/site/_generators.py",
line 816, in pagelanglinks
source=self)
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/page/_links.py",
line 605, in langlinkUnsafe
link._site = pywikibot.Site(lang, source.family.name)
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/__init__.py",
line 266, in Site
_sites[key] = interface(code=code, fam=fam, user=user)
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/site/_apisite.py",
line 127, in __init__
self.login(cookie_only=True)
File
"/mnt/nfs/labstore-secondary-tools-project/arambot/pywikibot-core/pywikibot/site/_apisite.py",
line 416, in login
raise NoUsernameError(error_msg)
pywikibot.exceptions.NoUsernameError: No username has been defined in your
user config file: you have to add in this file the following line:
usernames[Family("wikipedia")]['en']= 'AramBot'
CRITICAL: Exiting due to uncaught exception NoUsernameError: No username
has been defined in your user config file: you have to add in this file the
following line:
usernames[Family("wikipedia")]['en']= 'AramBot'
TASK DETAIL
https://phabricator.wikimedia.org/T356782
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Aram
Cc: JJMC89, Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]