Hi *,
First, I would like to thank you for this great piece of software!
Although I am working with sdaps for only a few days it already saved a
lot of my time!
However, when trying out the latest release (1.9.2) using the files from
http://sdaps.org/releases/sdaps-1.9.2.tar.gz I get stuck with the
following python stack trace:
===
cwerner@host ~/sdaps $ sdaps ./myproj gui
------------------------------------------------------------------------------
- SDAPS -- gui
------------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/sdaps/__init__.py", line
65, in main
return cmdline['_func'](cmdline)
File "/usr/local/lib/python3.6/dist-packages/sdaps/script.py", line
105, in decorated_function
result = function(cmdline)
File "/usr/local/lib/python3.6/dist-packages/sdaps/cmdline/gui.py",
line 43, in gui
return gui.gui(survey, cmdline)
File "/usr/local/lib/python3.6/dist-packages/sdaps/gui/__init__.py",
line 57, in gui
provider = Provider(survey, filter)
File "/usr/local/lib/python3.6/dist-packages/sdaps/gui/__init__.py",
line 80, in __init__
self.survey.iterate(self, filter)
File "/usr/local/lib/python3.6/dist-packages/sdaps/model/survey.py",
line 366, in iterate
function(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/sdaps/gui/__init__.py",
line 96, in __call__
new_images = [img for img in sorted(self.survey.sheet.images,
key=lambda Image: Image.page_number) if not img.ignored]
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
===
If I change line 96 of
"/usr/local/lib/python3.6/dist-packages/sdaps/gui/__init__.py" to
===
new_images = self.survey.sheet.images
===
everything seems to work smoothly (i.e. gui is starting and working as
expected).
Two question:
- Is sorting mandatory at this point? At least on my data the simplified
version of line 96 seems to work correctly.
- Since I am not a python programmer, I am not sure how to debug this
issue properly. Is there an easy way to figure out why there is a
comparison between two 'NoneTypes' on my data?
Best regards,
Christian
--
To unsubscribe, send mail to [email protected].