Hi Steve,
I run into this error when I tried to find particles from a segmentation results.
NOT Writing notes, ppid=-2
Traceback (most recent call last):
File "/opt/EMAN2/2.91/bin/e2spt_extractfromseg.py", line 154, in <module>
main()
File "/opt/EMAN2/2.91/bin/e2spt_extractfromseg.py", line 141, in main
js["class_list"]=clst
File "/opt/EMAN2/2.91/lib/python3.7/site-packages/EMAN2jsondb.py", line 905, in setval
if not deferupdate : self.sync()
File "/opt/EMAN2/2.91/lib/python3.7/site-packages/EMAN2jsondb.py", line 747, in sync
jss=json.dumps(self.data,indent=0,sort_keys=True,default=obj_to_json) # write the whole dictionary back to disk
File "/opt/EMAN2/2.91/lib/python3.7/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/opt/EMAN2/2.91/lib/python3.7/json/encoder.py", line 201, in encode
chunks = list(chunks)
File "/opt/EMAN2/2.91/lib/python3.7/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/opt/EMAN2/2.91/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/opt/EMAN2/2.91/lib/python3.7/json/encoder.py", line 353, in _iterencode_dict
items = sorted(dct.items(), key=lambda kv: kv[0])
TypeError: '<' not supported between instances of 'int' and 'str'
Any idea what I should do?
Let me know if you need more information.
Best,
Ziao