wikipedia.NoPage problem

View: New views
3 Messages — Rating Filter:   Alert me  

wikipedia.NoPage problem

by Ganesh Krishnamurthy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

I am running a bot on Tamil wikipedia (ta.wikipedia.org). All gets are
giving me a wikipedia.NoPage error and are not picking up any text.

For example,

        self.stattext = ""
        self.statpage = wikipedia.Page(site=self.site,
title="User:Ganeshbot/Created2")
        try:
            self.stattext = self.statpage.get()
        except:
            print "Unexpected error:", sys.exc_info()[0]

            print "stat page does not exist"

The page, User:Ganeshbot/Created2 does exist. But still Python is going into
exception and returning Nopage.

I am using Windows XP sp2, IE7, Python 2.5. Please help.

Regards, Ganesh
_______________________________________________
Wikibots-l mailing list
Wikibots-l@...
http://lists.wikimedia.org/mailman/listinfo/wikibots-l

Re: wikipedia.NoPage problem

by Francesco Cosoleto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> The page, User:Ganeshbot/Created2 does exist. But still Python is
> going into
> exception and returning Nopage.
>
> I am using Windows XP sp2, IE7, Python 2.5. Please help.

Get latest version of Pywikipedia bot. You can download wikipedia.py
release that fixes NoPage problem from:
http://pywikipediabot.cvs.sourceforge.net/*checkout*/pywikipediabot/pywikipedia/wikipedia.py

Regards,
Francesco Cosoleto  |  http://cosoleto.free.fr


_______________________________________________
Wikibots-l mailing list
Wikibots-l@...
http://lists.wikimedia.org/mailman/listinfo/wikibots-l

Re: wikipedia.NoPage problem

by Ganesh Krishnamurthy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Francesco,

I got the latest version from CVS. That fixed it! Thanks a lot.

Regards,

Ganesh


On 1/30/07, Francesco Cosoleto <francesco.cosoleto@...> wrote:

>
> > The page, User:Ganeshbot/Created2 does exist. But still Python is
> > going into
> > exception and returning Nopage.
> >
> > I am using Windows XP sp2, IE7, Python 2.5. Please help.
>
> Get latest version of Pywikipedia bot. You can download wikipedia.py
> release that fixes NoPage problem from:
>
> http://pywikipediabot.cvs.sourceforge.net/*checkout*/pywikipediabot/pywikipedia/wikipedia.py
>
> Regards,
> Francesco Cosoleto  |  http://cosoleto.free.fr
>
>
> _______________________________________________
> Wikibots-l mailing list
> Wikibots-l@...
> http://lists.wikimedia.org/mailman/listinfo/wikibots-l
>
_______________________________________________
Wikibots-l mailing list
Wikibots-l@...
http://lists.wikimedia.org/mailman/listinfo/wikibots-l