python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Fix RuntimeError: 'NoneType' object has no attribute 'clone'

Open mjl opened this issue 4 years ago • 5 comments

Fix RuntimeError: 'NoneType' object has no attribute 'clone' that happens with wsdl of customer (redacted, due to NDA issues). This fixes #898

mjl avatar Jul 09 '19 14:07 mjl

@mjl any updates on this? We're running into the same error

jvbreen1 avatar Jul 22 '20 14:07 jvbreen1

@mjl any updates on this? We're running into the same error

No, I have the patch to make it work in my forked repo and submitted a pull request, but so far no news.

zeep/wsdl/messages/soap.py

  +               if part.element:
                     element = part.element.clone()
                     element.attr_name = part_name or element.name
  +               else:
  +                   element = xsd.Element(part_name, part.type)

mjl avatar Jul 22 '20 14:07 mjl

@mvantellingen I noticed the linked issue #898 was closed. Would it be reasonable for me to expect this fix to land in Zeep at some point?

I don't want to seem insistent - I mostly would like to know if I should expect a fix or fork the repo into my org and patch it internally while waiting for a fix

jvbreen1 avatar Jul 23 '20 17:07 jvbreen1

I am also having this problem, would like to see the fix merged 🙏

afgarcia86 avatar Aug 16 '20 13:08 afgarcia86

Needs a unittest to be merged

mvantellingen avatar Aug 15 '21 17:08 mvantellingen