urllib2.URLError: <urlopen error unknown url type: http

Coonay flankw at gmail.com
Fri Mar 13 02:35:04 EDT 2009


i update via http proxy

cmd>set HTTP_PROXY=http://cache.mycompany.com:3128
cmd>python appcfg.py update myapp


URLError: <urlopen error [Errno 10061] No connection could be made
because the t
arget machine actively refused it>
Traceback (most recent call last):
  File "C:\Program Files\Google\google_appengine\appcfg.py", line 60,
in <module
>
    run_file(__file__, globals())
  File "C:\Program Files\Google\google_appengine\appcfg.py", line 57,
in run_fil
e
    execfile(script_path, globals_)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1976, in <module>
    main(sys.argv)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1967, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1418, in Run
    self.action(self)
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1879, in __call__
    return method()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1669, in Update
    lambda path: open(os.path.join(basepath, path), "rb"))
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1213, in DoUpload
    missing_files = self.Begin()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appcfg.p
y", line 1009, in Begin
    version=self.version, payload=self.config.ToYAML())
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 312, in Send
    self._Authenticate()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 344, in _Authenticate
    super(HttpRpcServer, self)._Authenticate()
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 233, in _Authenticate
    auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File "C:\Program Files\Google\google_appengine\google\appengine\tools
\appengin
e_rpc.py", line 177, in _GetAuthToken
    response = self.opener.open(req)
  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
    response = self._open(req, data)
  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
    '_open', req)
  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1138, in https_open
    return self.do_open(httplib.HTTPSConnection, req)
  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1105, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10061] No connection could be
made becau
se the target machine actively refused it>

D:\workspace\python>
















On Mar 11, 4:08 pm, Chris Rebert <c... at rebertia.com> wrote:
> On Tue, Mar 10, 2009 at 11:34 PM, Coonay <fla... at gmail.com> wrote:
> > i use python2.6
>
> > File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
> >    response = self._open(req, data)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 401, in _open
> >    '_open', req)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
> > _call_chain
> >    result = func(*args)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 690, in <lambda>
> >    meth(r, proxy, type))
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 713, in proxy_open
> >    return self.parent.open(req)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 383, in open
> >    response = self._open(req, data)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 406, in _open
> >    'unknown_open', req)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 361, in
> > _call_chain
> >    result = func(*args)
> >  File "C:\PROGRA~1\Python26\lib\urllib2.py", line 1163, in
> > unknown_open
> >    raise URLError('unknown url type: %s' % type)
> > urllib2.URLError: <urlopen error unknown url type: "http>
>
> A. Please include the *entire* traceback, in the future
> B. Please include a snippet of the code you're using, in the future
> C. A bit less curt of a missive would also be appreciated
>
> That all said, judging by the error message, it appears that the URL
> you're trying to open has a double-quote (") as its first character,
> which is obviously not permissible.
> I can't be completely sure however, since you neglected to include the
> entire traceback or any of your actual code.
>
> Cheers,
> Chris
>
> --
> I have a blog:http://blog.rebertia.com




More information about the Python-list mailing list