homepage

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.

classification
Title: a problem of urllib using open_local_file
Type: Stage:
Components: Windows Versions: Python 2.4
process
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:
-------------------->3----------------->3-------
Traceback (most recent call last):
 File "main.py", line 57, in uploadproc
 UNNAMED_toplev.main (self.liststore.get_value
(iter, i))
 File "C:\Work\unnamed\UNNAMED_toplev.py", line 59, in
main
 toplev_main (doc, TARGET_FILE)
 File "C:\Work\unnamed\UNNAMED_toplev.py", line 51, in
toplev_main
 doc.documentElement.appendChild
(UNNAMED_filehash.GetSHA1Info (doc, filepath
))
 File "C:\Work\unnamed\UNNAMED_filehash.py", line 19,
in GetSHA1Info
 file = urllib.urlopen (filepath)
 File "C:\Python24\lib\urllib.py", line 77, in urlopen
 return opener.open(url)
 File "C:\Python24\lib\urllib.py", line 185, in open
 return getattr(self, name)(url)
 File "C:\Python24\lib\urllib.py", line 421, in open_file
 return self.open_local_file(url)
 File "C:\Python24\lib\urllib.py", line 435, in
open_local_file
 raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] No such file or directory:
'\\C:\\pse_signature.psr'
-------------------->3----------------->3-------
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 
user_id=1188172
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 
user_id=1188172
I should add that the problem was not in urllib itself, but
nturl2path.
History
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

AltStyle によって変換されたページ (->オリジナル) /