This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xxm
Recipients xxm
Date 2019-07-30.08:24:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564475098.96.0.917553706699.issue37718@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-07-30 08:24:58xxmsetrecipients: + xxm
2019-07-30 08:24:58xxmsetmessageid: <1564475098.96.0.917553706699.issue37718@roundup.psfhosted.org>
2019-07-30 08:24:58xxmlinkissue37718 messages
2019-07-30 08:24:58xxmcreate