-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
When I updated the lean-explore package to v1.0.0 and ran lean-explore data fetch, I got the following output:
Downloading file 'lean_explore_data.db.gz' from 'https://pub-48b75babc4664808b15520033423c765.r2.dev/assets/0.2.0/lean_explore_data.db.gz' to '/home/yicheng/.lean_explore/cache/0.2.0'.
Decompressing '/home/yicheng/.lean_explore/cache/0.2.0/lean_explore_data.db.gz' to '/home/yicheng/.lean_explore/cache/0.2.0/lean_explore_data.db' using method 'auto'.
Downloading file 'main_faiss.index.gz' from 'https://pub-48b75babc4664808b15520033423c765.r2.dev/assets/0.2.0/main_faiss.index.gz' to '/home/yicheng/.lean_explore/cache/0.2.0'.
Decompressing '/home/yicheng/.lean_explore/cache/0.2.0/main_faiss.index.gz' to '/home/yicheng/.lean_explore/cache/0.2.0/main_faiss.index' using method 'auto'.
Downloading file 'faiss_ids_map.json.gz' from 'https://pub-48b75babc4664808b15520033423c765.r2.dev/assets/0.2.0/faiss_ids_map.json.gz' to '/home/yicheng/.lean_explore/cache/0.2.0'.
Decompressing '/home/yicheng/.lean_explore/cache/0.2.0/faiss_ids_map.json.gz' to '/home/yicheng/.lean_explore/cache/0.2.0/faiss_ids_map.json' using method 'auto'.
Installed data for version 0.2.0
But when I initialized a Service instance, I got the following error:
Traceback (most recent call last):
File "/home/yicheng/TheoremForge/test.py", line 10, in <module>
asyncio.run(main())
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/yicheng/TheoremForge/test.py", line 5, in main
service = Service()
^^^^^^^^^
File "/home/yicheng/TheoremForge/.venv/lib/python3.12/site-packages/lean_explore/search/service.py", line 21, in __init__
self.engine = engine or SearchEngine()
^^^^^^^^^^^^^^
File "/home/yicheng/TheoremForge/.venv/lib/python3.12/site-packages/lean_explore/search/engine.py", line 108, in __init__
self._validate_paths()
File "/home/yicheng/TheoremForge/.venv/lib/python3.12/site-packages/lean_explore/search/engine.py", line 121, in _validate_paths
raise FileNotFoundError(
FileNotFoundError: Required file not found at /home/yicheng/TheoremForge/.venv/lib/python3.12/data/0.2.0/informalization_faiss.index. Please run 'lean-explore data fetch' to download the data.
It seems that the files were not downloaded correctly.
Metadata
Metadata
Assignees
Labels
No labels