Page MenuHomePhabricator
Paste P14332

Pywikibot - AttributeError: module 'pywikibot' has no attribute 'handleArgs' - "db_hostname" present in our user-config.py
ActivePublic

Authored by valerio.bozzolan on Feb 12 2021, 9:20 AM.
"db_hostname" present in our user-config.py is no longer a supported
configuration variable and should be removed. Please inform the
maintainers if you depend on it.
_ConfigurationDeprecationWarning)
Traceback (most recent call last):
File "/shared/pywikipedia/core/pwb.py", line 363, in <module>
if not main():
File "/shared/pywikipedia/core/pwb.py", line 358, in main
file_package)
File "/shared/pywikipedia/core/pwb.py", line 75, in run_python_file
main_mod.__dict__)
File "datiwikipedie.py", line 64, in <module>
main()
File "datiwikipedie.py", line 58, in main
pywikibot.handleArgs()
File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core/pywikibot/tools/__init__.py", line 1733, in __getattr__
return getattr(self._module, attr)
AttributeError: module 'pywikibot' has no attribute 'handleArgs'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>