https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
Web browser: --- Bug ID: 55167 Summary: missing attribut page._pagid after Site.loadinfo(page) Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1534/ Reported by: xqt Created on: 2012-11-04 11:08:35 Subject: missing attribut page._pagid after Site.loadinfo(page) Assigned to: russblau Original description: Another missing attribut:
Retrieving 50 pages from wikipedia:en. WARNING: preloadpages: Query returned unexpected title 'International law' Dump de (wikipedia) appended. Traceback (most recent call last): File "C:\Pywikipedia\rw\pwb.py", line 42, in <module> execfile(sys.argv[0]) File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2516, in <module> if __name__ == "__main__": File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2490, in main try: File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2248, in run """Start the process until finished""" File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2221, in queryStep
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2217, in oneQuery # Tell all of the subjects that the promised work is done File "C:\Pywikipedia\rw\scripts\interwiki.py", line 1224, in batchLoaded if not page.exists(): File "C:\Pywikipedia\rw\pywikibot\page.py", line 411, in exists return self.site.page_exists(self) File "C:\Pywikipedia\rw\pywikibot\site.py", line 1153, in page_exists return page._pageid > 0 AttributeError: 'Page' object has no attribute '_pageid'
and btw "en:International law" exists!
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- a simple example for that is the following command line: pwb.py interwiki -auto -page:"Liste der Episoden von White Collar" -lang:de
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Cannot reproduce this bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open --> open-works-for-me
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open-works-for-me --> pending-works-for-me
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1534
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |UNCONFIRMED CC| |info@gno.de Ever confirmed|1 |0
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Summary|missing attribut |missing attribute |page._pagid after |page._pageid after |Site.loadinfo(page) |Site.loadinfo(page)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME
--- Comment #5 from xqt info@gno.de --- Duplicate of http://sourceforge.net/p/pywikipediabot/bugs/1592/ Already fixed in https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11195
pywikipedia-bugs@lists.wikimedia.org