Tag: ubuntu 12.10

在Ubuntu 12.10上安装Node.js

我试图在我的Ubuntu 12.10上安装Node.js,但terminal显示我关于丢失的包的错误,我试着用这个: sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs npm 但是,当我来到最后一行sudo apt-get install nodejs npm显示一个错误: Failed to install some packages. This may mean that You requested an impossible situation or if you are using the distribution distribution that some required packages have not yet been created or been […]

Python请求requests.exceptions.SSLError: _ssl.c:504:EOF违反协议

我在Ubuntu 12.10与OpenSSL 1.0.1c,Python 2.7.3, 请求 1.0.3和1.0.4(尝试两个),并试图连接到urlvariables与下面的代码。 def SendInitialRequest(xmlmessage, redirecturl): url = 'https://centineltest.cardinalcommerce.com/maps/txns.asp' payload = 'cmpi_msg=' + ET.tostring(xmlmessage) headers = { 'Content-Type': 'application/x-www-form-urlencoded', } r = requests.post(url, data=payload, headers=headers, verify=None) print r.text 它会抛出以下错误: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "clams/libs/centinel/thinclient.py", line 134, in SendInitialRequest r = requests.post(url, data=payload, headers=headers, verify=None) […]