簡體   English   中英

OpenShift-URLError: <urlopen error [Errno 13] Permission denied>

[英]OpenShift - URLError: <urlopen error [Errno 13] Permission denied>

我對SUDS,python2.7和OpenShift有問題。 當我嘗試查詢Web服務WSDL時,拋出錯誤:

URLError: <urlopen error [Errno 13] Permission denied>

這是它生成錯誤的WSDL的地址。

suds.client import from Client
urlmps = ' http://www.mps.com.co:91/ArticuloDisponible.asmx?wsdl '
c = Client ( urlmps )
print c

URLError: <urlopen error [Errno 13] Permission denied>

當我嘗試從webservicex.net查詢是否可行。

suds.client import from Client
url = ' http://www.webservicex.net/globalweather.asmx?WSDL '
client = Client ( url )
print client

Suds ( https://fedorahosted.org/suds/ ) version: 0.4 GA build: R699 - 20100913

Service ( GlobalWeather ) tns = " http://www.webserviceX.NET "
   Prefixes (0)
   Ports ( 2):
      ( GlobalWeatherSoap )×
         Methods ( 2):
            GetCitiesByCountry ( xs : string CountryName , )
            GetWeather ( xs : string CityName , xs : string CountryName , )
         Types ( 0):
      ( GlobalWeatherSoap12 )
         Methods ( 2):
            GetCitiesByCountry ( xs : string CountryName , )
            GetWeather ( xs : string CityName , xs : string CountryName , )
         Types ( 0):

pastebin中的完整軌道錯誤。

http://pastebin.com/Ug​​xtwPWP

注意:從本地計算機運行虛擬環境可以正常工作,我發現從OpenShift拒絕了端口91。

謝謝,馬里奧·帕多(Mario Pardo)

以防萬一其他人偶然發現這一點。 當前唯一可用的外部端口是8080 8443 80 443

可以使用以下端口范圍的內部IP綁定:15000-35530。所有其他端口均保留用於特定進程,以避免沖突。 由於我們綁定到內部IP,因此您將需要使用端口轉發來訪問它: https : //openshift.redhat.com/community/blogs/getting-started-with-port-forwarding-on-openshift

Python:網址錯誤: <urlopen error [errno 10060]< div><div id="text_translate"><p> <strong>操作系統:Windows 7;</strong> <strong>Python 2.7.3 使用 Python GUI Shell</strong></p><p> 我正在嘗試通過 Python 閱讀一個網站,並且有幾個作者使用urllib和urllib2庫。 為了將站點存儲在變量中,我看到了一種類似的方法:</p><pre> import urllib import urllib2 g = "http://www.google.com/" read = urllib2.urlopen(g)</pre><p> 最后一行在 120 多秒后生成錯誤:</p><pre> > Traceback (most recent call last): File "<pyshell#27>", line 1, in > <module> > r = urllib2.urlopen(o) File "C:\Python27\lib\urllib2.py", line 126, in urlopen > return _opener.open(url, data, timeout) 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 1207, in http_open > return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\lib\urllib2.py", line 1177, in do_open > raise URLError(err) URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly > respond after a period of time, or established connection failed > because connected host has failed to respond></pre><p> 我嘗試繞過g變量並嘗試urlopen("http://www.google.com/")也沒有成功(它在相同的時間長度后生成相同的錯誤)。</p></div></urlopen>

[英]Python: URLError: <urlopen error [Errno 10060]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

相關問題 pybitcointools-權限被拒絕- <urlopen error [Errno 13] Permission denied> Openshift [Errno 13]權限被拒絕 是什么導致“ urlopen錯誤[Errno 13]權限被拒絕”錯誤? URLError: <urlopen error [Errno 11004] getaddrinfo failed> Python:網址錯誤: <urlopen error [errno 10060]< div><div id="text_translate"><p> <strong>操作系統:Windows 7;</strong> <strong>Python 2.7.3 使用 Python GUI Shell</strong></p><p> 我正在嘗試通過 Python 閱讀一個網站,並且有幾個作者使用urllib和urllib2庫。 為了將站點存儲在變量中,我看到了一種類似的方法:</p><pre> import urllib import urllib2 g = "http://www.google.com/" read = urllib2.urlopen(g)</pre><p> 最后一行在 120 多秒后生成錯誤:</p><pre> > Traceback (most recent call last): File "<pyshell#27>", line 1, in > <module> > r = urllib2.urlopen(o) File "C:\Python27\lib\urllib2.py", line 126, in urlopen > return _opener.open(url, data, timeout) 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 1207, in http_open > return self.do_open(httplib.HTTPConnection, req) File "C:\Python27\lib\urllib2.py", line 1177, in do_open > raise URLError(err) URLError: <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly > respond after a period of time, or established connection failed > because connected host has failed to respond></pre><p> 我嘗試繞過g變量並嘗試urlopen("http://www.google.com/")也沒有成功(它在相同的時間長度后生成相同的錯誤)。</p></div></urlopen> URLError: urlopen 錯誤 [Errno 2] 沒有那個文件或目錄 網址錯誤:<urlopen error [errno 11002] getaddrinfo failed></urlopen> 網址錯誤:<urlopen error [Errno 11001] getaddrinfo failed> Errno 13許可被拒絕:? 錯誤 13 權限被拒絕:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM