Find answers from the community

s
F
Y
a
P
Updated 2 years ago

`loader load data ` is no longer working

loader.load_data() is no longer working for me with S3Reader, could this be a environment thing?
s
L
G
12 comments
i am getting
`` <title>FileNotFoundError: [Errno 2] No such file or directory: '/Users/me/.pyenv/versions/3.9.2/lib/python3.9/site-packages/llama_index/readers/llamahub_modules/file/base.py'
and i cant upgrade llama-index via conda, i am stuck on 0.4.25
when i try, i get
Plain Text
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - llama-index

Current channels:

  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch
Personally, I only use conda for managing python versions πŸ˜… once I have my conda env, I just use pip

Just a heads up when updating though, lots of breaking changes in v0.5.0+. I would check out the docs again to see how everything works now
(Not sure on your s3 error though)
thanks Logan! I will check the changelog for 0.50 πŸ™‚
I am at llama-index-0.5.2 but I'm also getting this error using SimpleDirectoryReader
Exact same error? Can I see the trace?
i solved this by using python 3.10.10
Nice! πŸ’ͺ
@Logan M ---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[5], line 3
1 from llama_index import GPTSimpleVectorIndex, download_loader
----> 3 SimpleDirectoryReader = download_loader("SimpleDirectoryReader")
5 loader = SimpleDirectoryReader('/home/gregtanaka/downloaded_files/tgt', recursive=True, exclude_hidden=True)
6 documents = loader.load_data()

File ~/.local/lib/python3.9/site-packages/llama_index/readers/download.py:201, in download_loader(loader_class, loader_hub_url, refresh_cache, use_llama_index_import)
199 raise ValueError(f"Could not find file: {loader_path}/base.py.")
200 module = util.module_from_spec(spec)
--> 201 spec.loader.exec_module(module) # type: ignore
203 return getattr(module, loader_class)

File :786, in exec_module(self, module)

File :922, in get_code(self, fullname)

File :979, in get_data(self, path)

FileNotFoundError: [Errno 2] No such file or directory: '/home/gregtanaka/.local/lib/python3.9/site-packages/llama_index/readers/llamahub_modules/file/base.py'
Can you update to python3.10 like smokeoX did above?
Add a reply
Sign up and join the conversation on Discord