With my current installation of Pywikipediabot, whenever I run replace.py and choose edit, it aborts with an error. I'm running on Debian (Linux) and I have python-tk installed. (I had it working on a previous computer. From memory, it also had python-tk installed, and it was either running Debian or Ubuntu - can't recall).<br>
<br>At the message: <br><b>Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in [b]rowser, [a]ll, [q]uit) </b><br><br>I enter: <b>e</b><br><br>And I get this output: <br><br>Traceback (most recent call last):<br>
File "replace.py", line 808, in <module><br> main()<br> File "replace.py", line 799, in main<br> bot.run()<br> File "replace.py", line 428, in run<br> as_edited = editor.edit(original_text)<br>
File "/home/PATH/editarticle.py", line 121, in edit<br> pywikibot.ui.editText(text, jumpIndex=jumpIndex,<br>AttributeError: 'module' object has no attribute 'ui'<br><br><br>The relevant line in editarticle.py is<br>
<br>120 return self.restoreLinebreaks(<br>121 pywikibot.ui.editText(text, jumpIndex=jumpIndex,<br>122 highlight=highlight))<br><br><br>Any suggestions? Thanks.<br clear="all">
<br>-- <br>Chris Watkins<br><br>Appropedia.org - Sharing knowledge to build rich, sustainable lives.<br><br>