You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I am trying to use this tool to update a wikibase deployed on localhost.
After following all the config steps, I get the following error when executing any of the import functions:
(venv) jorge@jorge-VirtualBox:~/TFM/WikibaseSync$ python import_one.py Q1Traceback (most recent call last): File "/home/jorge/TFM/WikibaseSync/import_one.py", line 4, in <module> import pywikibot File "/home/jorge/TFM/venv/lib/python3.10/site-packages/pywikibot/__init__.py", line 21, in <module> from pywikibot import config as _config File "/home/jorge/TFM/venv/lib/python3.10/site-packages/pywikibot/config.py", line 991, in <module> exec(compile(f.read(), _filename, 'exec'), _exec_globals) File "/home/jorge/TFM/WikibaseSync/user-config.py", line 1, in <module> from pywikibot.config2 import usernamesModuleNotFoundError: No module named 'pywikibot.config2'
I have installed all the requirements in requirements.txt
All my containers are running without any problems and all the endpoints and services are usable:
(venv) jorge@jorge-VirtualBox:~/TFM/WikibaseSync$ sudo docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES4fb0dd06cac1 wikibase/quickstatements:wmde.10 "/bin/bash /entrypoi…" 3 days ago Up 2 hours 0.0.0.0:8840->80/tcp, :::8840->80/tcp working_env_quickstatements_1d1b23c74e911 wikibase/wdqs:0.3.118-wmde.10 "/entrypoint.sh /run…" 3 days ago Up 2 hours working_env_wdqs-updater_1de9a077d1c86 wikibase/wdqs-frontend:wmde.10 "/entrypoint.sh ngin…" 3 days ago Up 2 hours 0.0.0.0:8834->80/tcp, :::8834->80/tcp working_env_wdqs-frontend_1a9cdd8b8c652 wikibase/wikibase-bundle:1.38.5-wmde.10 "/bin/bash /entrypoi…" 3 days ago Up 2 hours 0.0.0.0:80->80/tcp, :::80->80/tcp working_env_wikibase_18ff217c9b2ec wikibase/wikibase-bundle:1.38.5-wmde.10 "/bin/bash /jobrunne…" 3 days ago Up 2 hours 80/tcp working_env_wikibase_jobrunner_1f214a98619f2 wikibase/wdqs-proxy:wmde.10 "/bin/sh -c \"/entryp…" 3 days ago Up 2 hours 80/tcp working_env_wdqs-proxy_1dd918bea43a3 mariadb:10.9 "docker-entrypoint.s…" 3 days ago Up 2 hours 3306/tcp working_env_mysql_12428b98a8f6a wikibase/elasticsearch:6.8.23-wmde.10 "/usr/local/bin/dock…" 3 days ago Up 2 hours 9200/tcp, 9300/tcp working_env_elasticsearch_1d3e6eb687545 wikibase/wdqs:0.3.118-wmde.10 "/entrypoint.sh /run…" 3 days ago Up 2 hours 9999/tcp working_env_wdqs_1
I already tried that before posting the issue.
I still have an error with the change, but this is the output:
(venv) jorge@jorge-VirtualBox:~/TFM/WikibaseSync$ python import_one.py Q1Traceback (most recent call last): File "/home/jorge/TFM/WikibaseSync/import_one.py", line 8, in <module> wikibase_repo = wikibase.data_repository() File "/home/jorge/TFM/venv/lib/python3.10/site-packages/pywikibot/site/_apisite.py", line 1154, in data_repository return pywikibot.Site(url=url, user=self.username(), File "/home/jorge/TFM/venv/lib/python3.10/site-packages/pywikibot/__init__.py", line 1070, in Site code, fam = _code_fam_from_url(url, fam) File "/home/jorge/TFM/venv/lib/python3.10/site-packages/pywikibot/__init__.py", line 987, in _code_fam_from_url name = urlparse(url).netloc.split('.')[-2]IndexError: list index out of rangeCRITICAL: Exiting due to uncaught exception <class 'IndexError'>
Hello. I am trying to use this tool to update a wikibase deployed on localhost.
After following all the config steps, I get the following error when executing any of the import functions:
I have installed all the requirements in requirements.txt
It seems pywikibot is correctly installed even though it says the module config2 does not exist.
Can it be that Im doing something wrong with the configuration? Im currently running a wikibase instance in docker with the following configuration:
wikibase URL = http://localhost:80
SPARQL Endpoint = http://localhost:8834/proxy/wdqs/bigdata/namespace/wdq/sparql
API= http://localhost:80/api.php
Entity URIs = http://wikibase.svc/entity
All my containers are running without any problems and all the endpoints and services are usable:
In the application.config.ini I have:
In the user-config.py, which is whereI seem to have the problem, I have:
And finally my user-password.py looks something like this
(u'admin', BotPassword(u'WikibaseUpdater', u'<the random letters and numbers you get when you create the bot on special pages>'))
Thank you very much
The text was updated successfully, but these errors were encountered: