i have tried util.py on my machine it's isn't working. please solve my problem.
when i ran it gives me that.
PS C:\Users\Mark> & C:/Users/Mark/anaconda3/python.exe c:/Users/Mark/openDiagram/physchem/python/util.py read pyami.ini C:\Users\Mark\pyami.ini dict key dict_dir dict key ov_ini dictionary ini file ov_ini C:/Users/Mark/dictionary/openvirus20210120/amidict.ini read pyami.ini C:/Users/Mark/dictionary/openvirus20210120/amidict.ini Traceback (most recent call last): File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 286, in <module> main() File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 281, in main AmiConfig.test_dicts() File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 232, in test_dicts dicts_dirs = ami_config.traverse_dictionary_dirs() File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 134, in traverse_dictionary_dirs self.read_file_dicts(dict_key, dict_section) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 152, in read_file_dicts self.read_amidicts_in_inifile(dict_key, dict_section, sub_section) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 161, in read_amidicts_in_inifile file = self.read_dict_xml(dict_ref, dict_section, dict_id, sub_section) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 179, in read_dict_xml self._debug_desc_and_entries(dict_name, file_tree_xml) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 193, in _debug_desc_and_entries print(dict_name, "entries", len(entries), "wikidata", len(wikidata), "\n ", desc[0].xml_file) AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'xml_file'
i have tried util.py on my machine it's isn't working. please solve my problem. when i ran it gives me that.
PS C:\Users\Mark> & C:/Users/Mark/anaconda3/python.exe c:/Users/Mark/openDiagram/physchem/python/util.py read pyami.ini C:\Users\Mark\pyami.ini dict key dict_dir dict key ov_ini dictionary ini file ov_ini C:/Users/Mark/dictionary/openvirus20210120/amidict.ini read pyami.ini C:/Users/Mark/dictionary/openvirus20210120/amidict.ini Traceback (most recent call last): File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 286, in <module> main() File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 281, in main AmiConfig.test_dicts() File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 232, in test_dicts dicts_dirs = ami_config.traverse_dictionary_dirs() File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 134, in traverse_dictionary_dirs self.read_file_dicts(dict_key, dict_section) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 152, in read_file_dicts self.read_amidicts_in_inifile(dict_key, dict_section, sub_section) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 161, in read_amidicts_in_inifile file = self.read_dict_xml(dict_ref, dict_section, dict_id, sub_section) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 179, in read_dict_xml self._debug_desc_and_entries(dict_name, file_tree_xml) File "c:/Users/Mark/openDiagram/physchem/python/util.py", line 193, in _debug_desc_and_entries print(dict_name, "entries", len(entries), "wikidata", len(wikidata), "\n ", desc[0].xml_file) AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'xml_file'