Open JB0linches opened 1 year ago
can you try to replace:
"from pywikibot.config2 import usernames"
with
"from pywikibot.config import usernames"
?
Hi
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 Q1
Traceback (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 range
CRITICAL: 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
Thank you very much