A = pyavm.AVM.from_image('laboca-opt1000.jpg')
Traceback (most recent call last):
File "<ipython-input-150-8839f3a5b7fd>", line 1, in <module>
A = pyavm.AVM.from_image('laboca-opt1000.jpg')
File "/Users/adam/virtual-python/lib/python2.7/site-packages/pyavm/avm.py", line 382, in from_image
return cls.from_xml(xml)
File "/Users/adam/virtual-python/lib/python2.7/site-packages/pyavm/avm.py", line 414, in from_xml
content = avm_class.check_data(content)
File "/Users/adam/virtual-python/lib/python2.7/site-packages/pyavm/datatypes.py", line 83, in check_data
raise TypeError("{0:s} is not a string or unicode".format(self.tag))
TypeError: Spectral.Notes is not a string or unicode
> /Users/adam/virtual-python/lib/python2.7/site-packages/pyavm/datatypes.py(83)check_data()
82 else:
---> 83 raise TypeError("{0:s} is not a string or unicode".format(self.tag))
84
ipdb>
It seems that value is None, but it misses the if not value check because content, passed in to check_data, was [None] instead of just None
Test file is 'http://www.usm.uni-muenchen.de/people/preibisch/laboca-opt1000.jpg'
It seems that
value
isNone
, but it misses theif not value
check becausecontent
, passed in tocheck_data
, was[None]
instead of justNone