Find answers from the community

Updated 2 months ago

Hello got this error for the

Hello got this error for the DenseXRetrievalPack = download_llama_pack("DenseXRetrievalPack", "./dense_pack")

Traceback (most recent call last):

File c:\Users\33641\Desktop\DeepDetect\myenv\Lib\site-packages\IPython\core\interactiveshell.py:3526 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

Cell In[6], line 3
DenseXRetrievalPack = download_llama_pack("DenseXRetrievalPack", "./dense_pack")

File c:\Users\33641\Desktop\DeepDetect\myenv\Lib\site-packages\llama_index\llama_pack\download.py:29 in download_llama_pack
pack_cls = download_llama_module(

File c:\Users\33641\Desktop\DeepDetect\myenv\Lib\site-packages\llama_index\download\module.py:256 in download_llama_module
spec.loader.exec_module(module) # type: ignore

File <frozen importlib._bootstrap_external>:936 in exec_module

File <frozen importlib._bootstrap_external>:1074 in get_code

File <frozen importlib._bootstrap_external>:1004 in source_to_code

File <frozen importlib._bootstrap>:241 in _call_with_frames_removed

File c:\Users\33641\Desktop\DeepDetect\dense_pack/base.py:65
)
^
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xaf in position 662: invalid start byte
L
t
3 comments
hmmm I just tried and was not able to reproduce this error. Although I was running in WSL, normal windows might be introducing some fun stuff.

What python version do you have? Could also be that. I just tried with 3.11
You could also just download the code and edit/import/use from there

llamaindex-cli download-llamapack DenseXRetrievalPack --download-dir ./dense_pack
Still have the bug, use good version of pyhton and I dowloaded the code
Add a reply
Sign up and join the conversation on Discord