Forum Discussion

Utahcon_175651's avatar
Utahcon_175651
Icon for Nimbostratus rankNimbostratus
Apr 15, 2015

Bug with bigsuds/suds and logging

So I have added bigsuds to my python environment, and whenever I run commands against my F5 test instance I get the following:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/logging/__init__.py", line 851, in emit
    msg = self.format(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 724, in format
    return fmt.format(record)
  File "/usr/lib64/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib64/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
  File "build/bdist.linux-x86_64/egg/suds/sax/document.py", line 58, in __str__
    return unicode(self).encode('utf-8')
  File "build/bdist.linux-x86_64/egg/suds/sax/document.py", line 61, in __unicode__
    return self.str()
  File "build/bdist.linux-x86_64/egg/suds/sax/document.py", line 48, in str
    s.append(self.root().str())
AttributeError: 'NoneType' object has no attribute 'str'
Logged from file core.py, line 73

It looks to me like some sort of Logging is failing, but I haven't found a way of quieting this error, or catching it and doing something about it. Everything works fine; the command completes, and the output/results are as expected.

Has anyone else run into this? Any ideas how to work with this?

No RepliesBe the first to reply