gpt4 book ai didi

Python CouchDB/httplib-错误 : [Errno 61] Connection refused

转载 作者:太空宇宙 更新时间:2023-11-04 06:38:38 24 4
gpt4 key购买 nike

有没有人遇到这个错误?请指教! httplib python 库似乎有一些问题。

Python 2.7 (r27:82508, Jul  3 2010, 20:17:05) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "copyright", "credits" or "license()" for more information.

>>> import couchdb
>>> couch = couchdb.Server()
>>> couch.create("foo")

Traceback (most recent call last):
File "<pyshell#9>", line 1, in <module>
couch.create("foo")
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/client.py", line 193, in create
self.resource.put_json(validate_dbname(name))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 405, in put_json
status, headers, data = self.put(*a, **k)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 384, in put
return self._request('PUT', path, body=body, headers=headers, **params)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 419, in _request
credentials=self.credentials)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 239, in request
resp = _try_request_with_retries(iter(self.retry_delays))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/couchdb/http.py", line 205, in _try_request_with_retries
raise e
error: [Errno 61] Connection refused

最佳答案

你有代理吗?通过做检查:python -c "导入 urllib;打印 urllib.getproxies()"

关于Python CouchDB/httplib-错误 : [Errno 61] Connection refused,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4802600/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com