This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: a problem of urllib using open_local_file
Type: Stage:
Components: Windows Versions: Python 2.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, weongyo
Priority: normal Keywords:

Created on 2005-12-12 02:10 by weongyo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg27047 - (view) Author: Weongyo Jeong (weongyo) Date: 2005-12-12 02:10
Hello. I'm sorry for my short english.

I'm using python 2.4 on my windows system.  But I have
a problem.  see below:

Traceback (most recent call last):
  File "", line 57, in uploadproc
    UNNAMED_toplev.main (self.liststore.get_value
(iter, i))
  File "C:\Work\unnamed\", line 59, in
    toplev_main (doc, TARGET_FILE)
  File "C:\Work\unnamed\", line 51, in
(UNNAMED_filehash.GetSHA1Info (doc, filepath
  File "C:\Work\unnamed\", line 19,
in GetSHA1Info
    file = urllib.urlopen (filepath)
  File "C:\Python24\lib\", line 77, in urlopen
  File "C:\Python24\lib\", line 185, in open
    return getattr(self, name)(url)
  File "C:\Python24\lib\", line 421, in open_file
    return self.open_local_file(url)
  File "C:\Python24\lib\", line 435, in
    raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory:

i made a simple GUI program with pygtk and do drag and
drop a file from windows file explorer. It printed
"file:///C:/pse_signature.psr" which is a type of
"text/uri-list".  But urllib can't process it.

Is it a problem of urllib?  I read a article which
reported a same problem with my case in python 2.2.

that "file:///C:/pse_signature.psr" string made by
windows. not me.

why this problem don't be fixed? are there any reasons?

thanks for reading.
msg27048 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-12-15 21:59
Logged In: YES 

Fixed in r41705,41706. Thanks for the report!
msg27049 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-12-15 22:00
Logged In: YES 

I should add that the problem was not in urllib itself, but
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42680
2009-04-29 12:05:27ocean-citylinkissue5861 dependencies
2005-12-12 02:10:23weongyocreate