lixiang0 / WEB_KG

爬取百度百科中文页面,抽取三元组信息,构建中文知识图谱
http://kg.rubenxiao.com
942 stars 189 forks source link

No such file or directory实在不太清楚缺少了啥 #26

Open lpscq opened 1 year ago

lpscq commented 1 year ago

D:\bandzip\WEB_KG-master\baike\spiders>python baike.py Traceback (most recent call last): File "baike.py", line 20, in class BaikeSpider(scrapy.Spider): File "baike.py", line 30, in BaikeSpider driver = GraphDatabase.driver( File "d:\ProgramData\Anaconda3\lib\site-packages\neo4j__init.py", line 120, in driver return Driver(uri, config) File "d:\ProgramData\Anaconda3\lib\site-packages\neo4j__init.py", line 161, in new__ return subclass(uri, config) File "d:\ProgramData\Anaconda3\lib\site-packages\neo4j__init.py", line 235, in new__ pool.release(pool.acquire()) File "d:\ProgramData\Anaconda3\lib\site-packages\neobolt\direct.py", line 715, in acquire return self.acquire_direct(self.address) File "d:\ProgramData\Anaconda3\lib\site-packages\neobolt\direct.py", line 608, in acquire_direct connection = self.connector(address, error_handler=self.connection_error_handler) File "d:\ProgramData\Anaconda3\lib\site-packages\neo4j\init__.py", line 232, in connector return connect(address, dict(config, kwargs)) File "d:\ProgramData\Anaconda3\lib\site-packages\neobolt\direct.py", line 972, in connect raise last_error File "d:\ProgramData\Anaconda3\lib\site-packages\neobolt\direct.py", line 963, in connect s, der_encoded_server_certificate = _secure(s, host, security_plan.ssl_context, **config) File "d:\ProgramData\Anaconda3\lib\site-packages\neobolt\direct.py", line 854, in _secure s = ssl_context.wrap_socket(s, server_hostname=host if HAS_SNI and host else None) File "d:\ProgramData\Anaconda3\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "d:\ProgramData\Anaconda3\lib\ssl.py", line 1040, in _create self.do_handshake() File "d:\ProgramData\Anaconda3\lib\ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() FileNotFoundError: [Errno 2] No such file or directory

lpscq commented 1 year ago

哎呀我好像知道了我第29行没改