医疗知识图谱中AttributeError: 'MedicalGraph' object has no attribute 'g
时间: 2023-09-03 09:09:12 浏览: 201
在医疗知识图谱中,出现了AttributeError: 'MedicalGraph' object has no attribute 'g'的错误。这个错误是因为在代码中,'MedicalGraph'对象没有名为'g'的属性。根据引用的描述,这种错误通常发生在使用Pandas的DataFrame时,当一个列表对象没有'astype'属性时会引发此错误。然而,在这个问题中,根据引用的描述,这个错误是由于在代码中没有正确调用链接,导致没有访问到端口和IP。因此,解决这个问题的方法是换一种书写方式,确保正确调用链接并访问到端口和IP。此外,引用提到了另一种可能的解决方案,即找到错误的地方并移除'HTML_PARSER.unescape'。最后,根据引用的描述,可能还需要考虑将原有的py2neo依赖包替换为neo4j依赖包进行连接。这样应该能够成功解决这个错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python报错: list object has no attribute shape的解决](https://download.csdn.net/download/weixin_38748721/13708867)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [TagMe使用报错,AttributeError: ‘HTMLParser‘ object has no attribute ‘unescape](https://blog.csdn.net/leechengqian/article/details/127887268)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [AttributeError: ‘NoneType‘ object has no attribute ‘pool](https://blog.csdn.net/m0_55207117/article/details/131981936)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文