|

楼主 |
发表于 2024-3-13 20:42:57
|
显示全部楼层
Traceback (most recent call last):
File "C:\Users\Lenovo\Desktop\搜索.py", line 53, in <module>
main()
File "C:\Users\Lenovo\Desktop\搜索.py", line 48, in main
ix = create_or_load_index(index_folder)
File "C:\Users\Lenovo\Desktop\搜索.py", line 13, in create_or_load_index
ix = index.open_dir(index_folder)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python312\Lib\site-packages\whoosh\index.py", line 123, in open_dir
return FileIndex(storage, schema=schema, indexname=indexname)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python312\Lib\site-packages\whoosh\index.py", line 421, in __init__
TOC.read(self.storage, self.indexname, schema=self._schema)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python312\Lib\site-packages\whoosh\index.py", line 618, in read
raise EmptyIndexError("Index %r does not exist in %r"
whoosh.index.EmptyIndexError: Index 'MAIN' does not exist in FileStorage('C:\\Users\\Lenovo\\Desktop\\sousuo') |
|