Message348720
we run the converted Python3 code, the following error will happen:
Traceback (most recent call last):
File "/home/xxm/Desktop/instrument/datasetpy3/Labeled-LDA-Python/example.py", line 50, in <module>
llda_model.save_model_to_dir(save_model_dir)
File "/home/xxm/Desktop/instrument/datasetpy3/Labeled-LDA-Python/model/labeled_lda.py", line 697, in save_model_to_dir
LldaModel._write_object_to_file(save_model_path, save_model.__dict__)
File "/home/xxm/Desktop/instrument/datasetpy3/Labeled-LDA-Python/model/labeled_lda.py", line 650, in _write_object_to_file
print(("%s\n\t%s" % (message, e.message)))
AttributeError: 'TypeError' object has no attribute 'message'
it seems that attributes change between Python2 and Python3. However 2to3 lack for this fix when dealing with exception fix. |
|
Date |
User |
Action |
Args |
2019-07-30 08:24:58 | xxm | set | recipients:
+ xxm |
2019-07-30 08:24:58 | xxm | set | messageid: <1564475098.96.0.917553706699.issue37718@roundup.psfhosted.org> |
2019-07-30 08:24:58 | xxm | link | issue37718 messages |
2019-07-30 08:24:58 | xxm | create | |
|