[Pywikipedia-l] [ pywikipediabot-Support Requests-1868291 ] PageFromFile.py parameters

SourceForge.net noreply at sourceforge.net
Tue Jan 15 16:22:53 UTC 2008


Support Requests item #1868291, was opened at 2008-01-10 12:07
Message generated for change (Settings changed) made by rotemliss
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1868291&group_id=93107

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: None
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: PageFromFile.py parameters

Initial Comment:
Great bot

but "-force" & "-safe" doesnt work !! when it finds that a page exists, it gives me an error and doesnt continue, this is quite annoying, especially if i had 1000 articles, of which 250 exist, it means that i have to restart it manually and change the source UTF8 file not to include the pages already added.

any ideas?


let me know. 

[[:w:ar:User:Lord_Anubis]]

email: AnubisWP at googlemail.com 



----------------------------------------------------------------------

Comment By: Rotem Liss (rotemliss)
Date: 2008-01-13 19:16

Message:
Logged In: YES 
user_id=1327030
Originator: NO

This means you have an edit conflict. As of r4870, the bot shouldn't stop
when such errors occur, but show a message and continue. Make sure you
update the bot to the latest SVN version, your version seems to be a little
old.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-01-10 14:05

Message:
Logged In: NO 

Ok, this is the error i get:

Creating page [[ar:Bell]]
Traceback (most recent call last):
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 170,
 in <module>
    main()
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 134,
 in main
    findpage(text)
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 127,
 in findpage
    findpage(t[location.end()+1:])
  File "U:\Programming and websites\WIKI\pywikipedia\pagefromfile.py",
line 126,
 in findpage
    page.put(contents, comment = commenttext, minorEdit = False)
  File "U:\Programming and websites\WIKI\pywikipedia\wikipedia.py", line
948, in
 put
    return self.putPage(newtext, comment, watchArticle, minorEdit,
newPage, self
.site().getToken(sysop = sysop), sysop = sysop)
  File "U:\Programming and websites\WIKI\pywikipedia\wikipedia.py", line
1039, i
n putPage
    raise EditConflict(u'An edit conflict has occured.')
wikipedia.EditConflict: An edit conflict has occured.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=1868291&group_id=93107



More information about the Pywikipedia-l mailing list