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

error loading files and openai #7

Open
thejacobi23 opened this issue Nov 7, 2023 · 1 comment
Open

error loading files and openai #7

thejacobi23 opened this issue Nov 7, 2023 · 1 comment

Comments

@thejacobi23
Copy link

I might have done this wrong. I created a python environment and cloned the get repo. I installed a few packages that I didn't have but I still cant get it to run without errors. This is my terminal out put:

(.venv) PS D:\AI-projects\RepoReader> python app.py
[nltk_data] Downloading package punkt to
[nltk_data] C:\Users\Jacob\AppData\Roaming\nltk_data...
[nltk_data] Package punkt is already up-to-date!
Enter the GitHub URL of the repository: https://github.com/cpacker/MemGPT
Cloning the repository...
Cloning into 'C:\Users\Jacob\AppData\Local\Temp\tmpmuv5s_by'...
remote: Enumerating objects: 2406, done.
remote: Counting objects: 100% (1403/1403), done.
remote: Compressing objects: 100% (582/582), done.
remote: Total 2406 (delta 1058), reused 939 (delta 817), pack-reused 1003
Receiving objects: 100% (2406/2406), 4.46 MiB | 12.80 MiB/s, done.
Resolving deltas: 100% (1494/1494), done.
Error loading files with pattern '/*.py': 'charmap' codec can't decode byte 0x8f in position 14693: character maps to
Error loading files with pattern '
/.yml': Invalid file C:\Users\Jacob\AppData\Local\Temp\tmpmuv5s_by\mkdocs.yml. The FileType.UNK file type is not supported in partition.
Error loading files with pattern '**/
.toml': Invalid file C:\Users\Jacob\AppData\Local\Temp\tmpmuv5s_by\pyproject.toml. The FileType.UNK file type is not supported in partition.
Error loading files with pattern '**/*.ipynb': [Errno 13] Permission denied: 'C:\Users\Jacob\AppData\Local\Temp\tmpmuv5s_by'
Repository cloned. Indexing files...
D:\AI-projects\RepoReader.venv\Lib\site-packages\langchain\utils\utils.py:159: UserWarning: WARNING! api_key is not default parameter.
api_key was transferred to model_kwargs.
Please confirm that api_key is what you intended.
warnings.warn(

Ask a question about the repository (type 'exit()' to quit): how does memgpt store data
Thinking...
D:\AI-projects\RepoReader.venv\Lib\site-packages\sklearn\feature_extraction\text.py:525: UserWarning: The parameter 'token_pattern' will not be used since 'tokenizer' is not None'
warnings.warn(
An error occurred: module 'openai' has no attribute 'error'

@Ersebreck
Copy link

Try installing this version "openai==v0.28.1"
I saw a solution here:
langchain-ai/langchain#12967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants