Last modified: 2014-07-24 18:39:14 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 T57308, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55308 - Fullurl in imageharvest.py does not work
Fullurl in imageharvest.py does not work
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 05:02 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-24 18:39 UTC (History)
1 user (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 05:02:02 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/897/
Reported by: dasch88
Created on: 2009-04-04 09:54:06
Subject: Fullurl in imageharvest.py does not work
Original description:
When I have a page where the picturelinks are given as fullurl they are appended to the pageurl 

Skript progess:
python imageharvest.py http://commons.wikimedia.org/wiki/User:DaSch/Bot-Export
Checked for running processes. 1 processes currently running, including the current process.
What text should be added at the end of the description of each image from this url? \[\[Import::04.04.2009\]\] \[\[Kategorie:Commons-Import\]\]
Include image http://commons.wikimedia.org/wiki/User:DaSch/http://commons.wikipedia.org/apple-touch-icon.png? \(\[y\]es, \[N\]o, \[s\]top\) N
Include image http://commons.wikimedia.org/wiki/User:DaSch/http://upload.wikimedia.org/wikipedia/commons/1/1b/electoralcollege1789.svg? \(\[y\]es, \[N\]o, \[s\]top\) y
Give the description of this image: 1789
Reading file http://commons.wikimedia.org/wiki/User:DaSch/http://upload.wikimedia.org/wikipedia/commons/1/1b/electoralcollege1789.svg
Traceback \(most recent call last\):
File "imageharvest.py", line 117, in <module>
main\(url,image\_url\)
File "imageharvest.py", line 95, in main
uploadBot.run\(\)
File "/root/pywecowi/upload.py", line 296, in run
return self.upload\_image\(\)
File "/root/pywecowi/upload.py", line 119, in upload\_image
file = uo.open\(self.url\)
File "/usr/lib/python2.5/urllib.py", line 190, in open
return getattr\(self, name\)\(url\)
File "/usr/lib/python2.5/urllib.py", line 338, in open\_http
return self.http\_error\(url, fp, errcode, errmsg, headers\)
File "/usr/lib/python2.5/urllib.py", line 355, in http\_error
return self.http\_error\_default\(url, fp, errcode, errmsg, headers\)
File "/root/pywecowi/wikipedia.py", line 6954, in http\_error\_default
raise PageNotFound\(u'Page %s could not be retrieved. Check your family file ?' % url\)
wikipedia.PageNotFound: Page //commons.wikimedia.org/wiki/User:DaSch/http://upload.wikimedia.org/wikipedia/commons/1/1b/electoralcollege1789.svg could not be retrieved. Check your family file ?

Version:
Pywikipedia \[http\] trunk/pywikipedia \(r6569, Apr 03 2009, 16:17:41\)
Python 2.5.2 \(r252:60911, Jul 31 2008, 17:28:52\) 
\[GCC 4.2.3 \(Ubuntu 4.2.3-2ubuntu7\)\]
Comment 1 Amir Ladsgroup 2014-07-24 18:39:14 UTC
I wasn't able to reproduce the and since it was reported FIVE years ago, It's probably fixed

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


Navigation
Links