Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] UnboundLocalError: cannot access local variable 'added_to_db' where it is not associated with a value Implicitly cleaning up <TemporaryDirectory '/var/folders/lz/8cyyy_pj1xqf05jck98kpkrc0000gn/T/tmpzdbwcgp_'> #401

Open
starshipvc opened this issue Mar 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@starshipvc
Copy link

starshipvc commented Mar 1, 2024

athena@Athenas-MacBook-Pro athena % python3.11 sam_altman.py
swarms is up to date!
Importing LLMChain from langchain root module is no longer supported. Please use langchain.chains.LLMChain instead.
Importing PromptTemplate from langchain root module is no longer supported. Please use langchain.prompts.PromptTemplate instead.
distutils Version classes are deprecated. Use packaging.version instead.
distutils Version classes are deprecated. Use packaging.version instead.
ChromaDB collection created: swarms with metric: cosine and output directory: swarms                                                              
Traversing directory: artifacts/sam_altman                                                                                                        
Traceback (most recent call last):
    chromadb = ChromaDB(
               ^^^^^^^^^
line 117, in __init__
    self.traverse_directory()
line 207, in traverse_directory
    return added_to_db
           ^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'added_to_db' where it is not associated with a value
Implicitly cleaning up <TemporaryDirectory '/var/folders/lz/8cyyy_pj1xqf05jck98kpkrc0000gn/T/tmpzdbwcgp_'>

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@starshipvc starshipvc added the bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants