Last modified: 2014-06-07 03:59:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57167, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55167 - missing attribute page._pageid after Site.loadinfo(page)
missing attribute page._pageid after Site.loadinfo(page)
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:36 UTC by Kunal Mehta (Legoktm)
Modified: 2014-06-07 03:59 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:36:42 UTC
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\!
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:36:44 UTC
a simple example for that is the following command line:
pwb.py interwiki -auto -page:"Liste der Episoden von White Collar" -lang:de
Comment 2 Kunal Mehta (Legoktm) 2013-10-05 04:36:46 UTC
Cannot reproduce this bug.
Comment 3 Kunal Mehta (Legoktm) 2013-10-05 04:36:47 UTC
- **status**: open --> open-works-for-me
Comment 4 Kunal Mehta (Legoktm) 2013-10-05 04:36:49 UTC
- **status**: open-works-for-me --> pending-works-for-me

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links