Page MenuHomePhabricator

Using scripts with package-installed pywikibot
Closed, ResolvedPublic

Description

I installed pywikibot 9.4 as package, downloaded contrib scripts and scripts/i18n to working directory. Added user_script_paths = ['scripts'] to user-config.py. When I run any contrib script I get translation error. Pywikibot searches translations in pywikibot.scripts.i18n path only.

Where is right way to use contrib scripts with package-installed pywikibot? It's problematic to use pywikibot in dir cause pywikibot is part of whole project.

Event Timeline

pywikibot-scripts will become its own package soon. But how did you installed Pywikibot 9.4 as a package. It is not published at pypi yet.

pywikibot 9.3.1
scripts 9.4

Pywikibot 9.4 is now available and you can install the scripts package directly from pypi:

pip install pywikibot-scripts

This statement will install Pywikibot 9.4 as a side package and also the scripts. You have to call the scripts via the pwb wrapper like:

pwb touch -page:Foobar

Another possibility is to use set_messages_package to set the i18n package directory.

Xqt claimed this task.

Solved with Pywikibot 9.4