AttributeError: 'YamlParser' object has no attribute 'DEEPSORT'
时间: 2023-10-23 22:11:15 浏览: 175
This error message is indicating that the object of type 'YamlParser' does not have an attribute called 'DEEPSORT'.
This could be due to a few reasons, such as:
1. The attribute 'DEEPSORT' is not defined in the 'YamlParser' class.
2. The attribute 'DEEPSORT' is defined in the 'YamlParser' class, but it is a private attribute (denoted by a leading underscore) and cannot be accessed from outside the class.
3. The attribute 'DEEPSORT' is misspelled or incorrectly capitalized, causing Python to not recognize it as a valid attribute.
To fix this error, you should check the definition of the 'YamlParser' class and ensure that the attribute 'DEEPSORT' is defined correctly and accessible from outside the class. If the attribute is spelled correctly and still not accessible, you may need to modify the class definition or create a new object with the correct attributes.
阅读全文