Bugs item #1933132, was opened at 2008-04-03 11:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1933132...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Paul Tap (paultap) Assigned to: Nobody/Anonymous (nobody) Summary: pagefromfile.py fails with error in wikipedia.py
Initial Comment: I'm trying to append a bit of text to an existing file (actually wanted to create a new one), but the script pagefromfile.py fails with the following output:
python pagefromfile.py -appendbottom -file:/tmp/Testpage.xml Checked for running processes. 1 processes currently running, including the current process. Pywikipediabot (r5177 (wikipedia.py), Apr 02 2008, 14:48:54) Python 2.5.2 (r252:60911, Mar 12 2008, 13:36:25) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu4)]
Hond <<<
Getting page [[Hond]] Page Hond already exists, appending on bottom! Getting information for site PaulIen:en Password for user Filebot on PaulIen:en: Logging in to PaulIen:en as Filebot Should be logged in now Getting information for site PaulIen:en Traceback (most recent call last): File "pagefromfile.py", line 296, in <module> main() File "pagefromfile.py", line 292, in main bot.run() File "pagefromfile.py", line 124, in run self.put(title, contents) File "pagefromfile.py", line 174, in put page.put(contents, comment = comment, minorEdit = self.minor) File "/home/paul/bin/PaulIen/pywikipedia/wikipedia.py", line 1174, in put sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = False) File "/home/paul/bin/PaulIen/pywikipedia/wikipedia.py", line 1098, in _getActionUser if not self.site().isAllowed(action, sysop): File "/home/paul/bin/PaulIen/pywikipedia/wikipedia.py", line 3897, in isAllowed return right in self._rights[index] TypeError: argument of type 'NoneType' is not iterable
When running in debug mode, this error does not occur, but the script complains about missing start/end tags (looks like another problem to me though).
I've tested upload.py with an image file and that works fine. Just to isolate the problem and to make sure that the filebot is working somehow.
Additional info (from the version page):
* MediaWiki: 1.11.1 * PHP: 5.2.5 (apache2handler) * MySQL: 5.0.51a
pywikipedia svn update: Updated to revision 5177.
Regards,
Paul Tap
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1933132...