當我點擊我的項目的Deploy按鈕時,它給了我以下錯誤:文件「C:\ Python27 \ lib \ httplib.py」,行721,在_set_hostport中 raise InvalidURL(「nonnumeric port:'%s' 「%host [i + 1:]) httplib.InvalidURL:非數字端口:'端口'。當我嘗試部署時,Google App Engine會拋出此InvalidURL(「非數值端口:'%s'」%host [i + 1:])異常。我如何解決它?
我以前已經成功部署了這個項目,所以我試着恢復文件,以便在正常工作時擁有相同的文件。看起來沒有骰子。儘管如此,這只是一個刺拳 - 完整的曲線顯示了這個從Google App Engine的文件開始,而不是我的。
任何人都知道我可以如何部署我的項目?
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 171, in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\appcfg.py", line 167, in run_file
execfile(script_path, globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4191, in <module>
main(sys.argv)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 4182, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2579, in Run
self.action(self)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3927, in __call__
return method()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3040, in Update
updatecheck.CheckForUpdates()
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 596, in CheckForUpdates
runtime=self.config.runtime)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", line 383, in Send
f = self.opener.open(req)
File "C:\Python27\lib\urllib2.py", line 400, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 418, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1215, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 370, in do_open
req)
File "C:\Python27\lib\urllib2.py", line 1146, in do_open
h = http_class(host, timeout=req.timeout) # will parse host:port
File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 78, in __init__
httplib.HTTPSConnection.__init__(self, *args, **kwargs)
File "C:\Python27\lib\httplib.py", line 1149, in __init__
source_address)
File "C:\Python27\lib\httplib.py", line 693, in __init__
self._set_hostport(host, port)
File "C:\Python27\lib\httplib.py", line 721, in _set_hostport
raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: 'port'
2012-10-22 16:55:29 (Process exited with code 1)
You can close this window now.
我很欣賞輸入和查詢!以下是我的項目設置的截圖:http://i.imgur.com/oPwzC.png。我試着把它留空,但那也沒用。也許我應該嘗試做這個命令行風格?您是否有描述該過程的鏈接,或者是否在此評論鏈中提供建議? – Danny
@Danny如果它以前爲你工作過,那麼肯定有東西:)它在本地工作嗎?需要走出一秒,但好奇得到這一個解決:) – RocketDonkey
它在本地工作。運行應用程序時不會出現python異常。運行啓動器時GAE更新,是嗎?也許最近發佈的GAE是罪魁禍首? – Danny