urlparse import Faillure
Robert Hancock
hancock.robert at gmail.com
Fri Oct 10 01:47:58 EDT 2008
Python 2.5.2 (r252:60911, Aug 28 2008, 23:51:17)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import CGIHTTPServer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/CGIHTTPServer.py", line 28, in
<module>
import urllib
File "/usr/local/lib/python2.5/urllib.py", line 30, in <module>
from urlparse import urljoin as basejoin
File "/usr/local/lib/python2.5/urlparse.py", line 3, in <module>
See RFC 1808: "Relative Uniform Resource Locators", by R.
Fielding,
ImportError: cannot import name urlparse
>>>
urlparse.py
"""Parse (absolute and relative) URLs.
See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding,
UC Irvine, June 1995.
"""
__all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag",
"urlsplit", "urlunsplit"]
It points to the third line of the comment. Any ideas on how to
proceed with the debugging?
More information about the Python-list
mailing list