https://bugzilla.wikimedia.org/show_bug.cgi?id=73494
Bug ID: 73494 Summary: replace.py: AttributeError: 'ReplaceRobot' object has no attribute '_sites' Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: critical Priority: Unprioritized Component: Other scripts Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: martineznovo@gmail.com CC: mpaa.wiki@gmail.com Web browser: --- Mobile Platform: ---
This morning I've updated my local copy of the repository. Was about to do some maintenance replacements and got greeted with this error:
$> python pwb.py replace.py -family:AAAAAAA -filelinks:"AAAAAAA.png" "BBBBB" "CCCCC" Traceback (most recent call last): File "pwb.py", line 181, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 75, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/replace.py", line 730, in <module> main() File "scripts/replace.py", line 719, in main allowoverlap, recursive, add_cat, sleep, edit_summary) File "scripts/replace.py", line 289, in __init__ self.site = site File ".../pywikibot/core/pywikibot/bot.py", line 1073, in site if site not in self._sites: AttributeError: 'ReplaceRobot' object has no attribute '_sites' <type 'exceptions.AttributeError'>
Since I had other tasks to do, this one wasn't urgent, I left the problem. Now I've updated the repo again to see if it has been somehow fixed, but it isn't :(
There seems to be no way to run replace.py now without this error :(
Current version is f8ad9fcd1ca2a5bba830be55cf05f475f9dbdfeb