PicklingError:无法腌制 suds.sudsobject.User:属性查找 suds.sudsobject.User 失败
我有一个 django 应用程序...我正在使用 SOAP suds 客户端访问 Web 服务...我需要从 GUI 中输入的条目创建一个用户对象...该用户对象将传递给一个方法。 ..但我收到以下错误:
PicklingError: Can't pickle suds.sudsobject.User: attribute Lookup suds.sudsobject.User failed
发生此错误的原因是什么???
I have a django application... I am accessing the web service using the SOAP suds client... I need to create a user object from the entries entered in the GUI... This user object is to be passed to a method... But i get the following error:
PicklingError: Can't pickle suds.sudsobject.User: attribute lookup suds.sudsobject.User failed
What is the cause for this error to occur???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
到目前为止,我不知道如何腌制 Suds 客户端对象 - 作为中间步骤,suds 已经实现了一个缓存机制,这将有助于缩短加载时间。显然,这将是一个非常方便的选择。请参阅此票证,了解有关该问题的一些信息以及 Suds 和酸洗的一些具体挑战:https://fedorahosted.org /suds/ticket/154
As of now I don't know of a way to pickle a Suds client object - as an intermediate step suds has implemented a caching mechanism that will help load times. Obviously, it would be a very handy option. See this ticket for some information on the issue and some specific challenges for Suds and pickling: https://fedorahosted.org/suds/ticket/154
您可能正在尝试腌制一个无法腌制的对象。请参阅此处: http://docs.python .org/library/pickle.html#what-can-be-pickled-and-unpickled
You are perhaps trying to pickle an object that cannot be pickled. See here: http://docs.python.org/library/pickle.html#what-can-be-pickled-and-unpickled