Schönen guten Abend!<br><br>I have a nice script that should complete a certain kind of blocking which is usual: blocks the user, puts a template on the user page, redirects the talk page to the user page and protects both pages.<br>
<br>This script ran previously without an error, but yesterday it failed, tough I was so happy to use it instead of doing manually the whole process. The message is:<br><span style="font-family: courier new,monospace;">C:\Program Files\Pywikipedia>p baz.py</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "baz.py", line 190, in <module></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> main()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "baz.py", line 184, in main</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> bot.run()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> File "baz.py", line 82, in run</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> if user.block(expiry='infinite', reason=blockmessage):</span><br style="font-family: courier new,monospace;"><b><span style="font-family: courier new,monospace;"> File "C:\Program Files\Pywikipedia\userlib.py", line 384, in block</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> raise UserActionRefuse('You don\'t have permission to block')</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">userlib.UserActionRefuse: You don't have permission to block</span><br style="font-family: courier new,monospace;">
</b><br>I have the almost latest pywiki, but the bot was tested with an end-July version (8362). Since then two things have changed:<br>*I updated pywiki to 8656 this weekend.<br>*I installed Python 3.1.2 as default, and I run my pywiki scripts with<span style="font-family: courier new,monospace;"> p something.py</span>, as described in thread "Two Pythons on one Windows". I suppose, once I started a script under Python, the imported modules don't need to specify the path of Python to use.<br>
User-config.py is the same except that I added new lines for a Wikia-wiki.<br><br>Which of these could cause my problem?<br clear="all"><br>-- <br>Bináris<br>