Page MenuHomePhabricator

Localize checkimages.py for meta
Closed, ResolvedPublic

Description

I tried to run the script on Meta-Wiki. It gave me this error message:

Your project is not supported by this script.
You have to edit the script and add it!

So I did, with the result:

Your project is not supported by this script.
You have to edit the script and add it!

I added de -debug option to the script, the result is as follows:

F:\MWDEV\pywikibot-core>pwb.py checkimages -commons -duplicatereport -debug
WARNING: F:\MWDEV\pywikibot-core\pywikibot\version.py:101: DeprecationWarning: pywikibot.version.getversion_svn is deprecated; use getversion_svn_setuptools instead.
  (tag, rev, date, hsh) = vcs_func(_program_dir)

--- Logging error ---
[...]

WARNING: F:\MWDEV\pywikibot-core\pywikibot\version.py:252: DeprecationWarning: pywikibot.version.svn_rev_info is deprecated; use getversion_svn_setuptools instead.
  tag, rev, date = svn_rev_info(_program_dir)

--- Logging error ---
[...]
WARNING: F:\MWDEV\pywikibot-core\pywikibot\throttle.py:228: ResourceWarning: unclosed file <_io.TextIOWrapper name='F:\\MWDEV\\pywikibot-core\\throttle.ctrl' mode='r' encoding='cp1252'>
  f = open(self.ctrlfilename, 'w')

F:\MWDEV\pywikibot-core>

I omited parts of the error message because it contained private machine data. If they're relevant, please ask me in private for them and I'll provide them.

Thank you.

Event Timeline

I have tried to investigate this issue and it looks, that You don't have setuptools installed on You system.

Could You please provide a little more informations? How have You installed Your pywikibot instance?

Could You also privde result of trying to import setuptools in python inrepreter?

You may ignore the deprecation warning. On the other hand there is a bug task and a bug fix for it already.

The other part: checkimages is not localized for meta yet.

You may ignore the deprecation warning. On the other hand there is a bug task and a bug fix for it already.

You mean, there's already a fix for the deprecation warning?

The other part: checkimages is not localized for meta yet.

Shall I open a separate task for that?

Removing myself as assignee.

The task for the deprecation warning is T132292 I guess. You may try that patch (and review it)

Xqt renamed this task from checkimages.py: DeprecationWarning: pywikibot.version.svn_rev_info is deprecated; use getversion_svn_setuptools instead to Localize checkimages..py for meta.Nov 15 2016, 11:47 AM
Xqt triaged this task as Low priority.
Xqt added a project: good first task.
Xqt renamed this task from Localize checkimages..py for meta to Localize checkimages.py for meta.Nov 15 2016, 11:47 AM

Change 321829 had a related patch set uploaded (by Magul):
Add meta.wikimedia to checkimages

https://gerrit.wikimedia.org/r/321829

@MarcoAurelio I've just made a code review request for addition of meta to checkimages.py.

I have added Your bot account as possible account that will run this script on meta and pointed log page to https://meta.wikimedia.org/wiki/User:MABot/Report

Change 321829 merged by jenkins-bot:
Add meta.wikimedia to checkimages

https://gerrit.wikimedia.org/r/321829

Xqt removed a project: Patch-For-Review.