Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.3 HTTP Cookie错误_Python_Http_Python Requests_Python 3.3 - Fatal编程技术网

Python 3.3 HTTP Cookie错误

Python 3.3 HTTP Cookie错误,python,http,python-requests,python-3.3,Python,Http,Python Requests,Python 3.3,我刚刚(从源代码)重新安装了Python3.3,并安装了“requests”库。我正在尝试一个非常简单的请求: r = requests.get('https://www.google.com/') 作为回报,我得到了一个非常奇怪的错误: File "/usr/local/lib/python3.3/http/cookiejar.py", line 1647, in extract_cookies if self._policy.set_ok(cookie, request): File

我刚刚(从源代码)重新安装了Python3.3,并安装了“requests”库。我正在尝试一个非常简单的请求:

r = requests.get('https://www.google.com/')
作为回报,我得到了一个非常奇怪的错误:

File "/usr/local/lib/python3.3/http/cookiejar.py", line 1647, in extract_cookies
  if self._policy.set_ok(cookie, request):
File "/usr/local/lib/python3.3/http/cookiejar.py", line 931, in set_ok
  if not fn(cookie, request):
File "/usr/local/lib/python3.3/http/cookiejar.py", line 952, in set_ok_verifiability
  if request.unverifiable and is_third_party(request):
AttributeError: 'MockRequest' object has no attribute 'unverifiable'

鉴于我还是一个Python初学者,我完全不知道是什么导致了这个错误。有什么想法吗?

这在python 3.2中起作用:

Python 3.2.3 (default, Apr 13 2012, 13:31:19) 
[GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.12)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> r = requests.get('https://www.google.com/')
声明了什么是官方支持的python 3版本,您刚刚在python 3.3上发现,
请求
还不能工作

问题追踪器中有一个问题,所以这只是时间问题

更新:于2012年10月1日发布,修订如下:

0.14.1 (2012-10-01)
  • Python 3.3兼容性
  • 只是默认接受编码
  • 错误修正

这在python 3.2中起作用:

Python 3.2.3 (default, Apr 13 2012, 13:31:19) 
[GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.12)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> r = requests.get('https://www.google.com/')
声明了什么是官方支持的python 3版本,您刚刚在python 3.3上发现,
请求
还不能工作

问题追踪器中有一个问题,所以这只是时间问题

更新:于2012年10月1日发布,修订如下:

0.14.1 (2012-10-01)
  • Python 3.3兼容性
  • 只是默认接受编码
  • 错误修正