gpt4 book ai didi

python - 自 1.8.2 更新后出现错误

转载 作者:太空狗 更新时间:2023-10-30 03:03:51 25 4
gpt4 key购买 nike

自从我升级到 1.8.2 开发服务器后,我在尝试使用搜索 API 编制索引时遇到错误...这是包含相关数据的 Traceback:

search.Index( 'something' ).put( self.document() )

File "C:\Dev\GAE\google\appengine\api\search\search.py", line 2485, in put
response)

File "C:\Dev\GAE\google\appengine\api\apiproxy_stub_map.py", line 94, in MakeSyncCall
return stubmap.MakeSyncCall(service, call, request, response)

File "C:\Dev\GAE\google\appengine\api\apiproxy_stub_map.py", line 328, in MakeSyncCall
rpc.CheckSuccess()

File "C:\Dev\GAE\google\appengine\api\apiproxy_rpc.py", line 156, in _WaitImpl
self.request, self.response)

File "C:\Dev\GAE\google\appengine\ext\remote_api\remote_api_stub.py", line 200, in MakeSyncCall
self._MakeRealSyncCall(service, call, request, response)

File "C:\Dev\GAE\google\appengine\ext\remote_api\remote_api_stub.py", line 234, in _MakeRealSyncCall
raise pickle.loads(response_pb.exception())

AttributeError: 'dict' object has no attribute 'AddFieldType'

有人知道为什么会这样吗?在 1.8.1 上工作...

最佳答案

删除您的搜索索引并重新索引您的实体。
这为我解决了。

关于python - 自 1.8.2 更新后出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17709541/

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