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

issue when running the create_database.py #3

Open
ZhihongMiao opened this issue May 12, 2024 · 1 comment
Open

issue when running the create_database.py #3

ZhihongMiao opened this issue May 12, 2024 · 1 comment

Comments

@ZhihongMiao
Copy link

I am really new in this area. I just download your code and try to run it in the anaconda environment using PyCharm. But I met below error. I have installed all the packages mentioned in the requirements.txt. Could you please comment what happened here? Thanks.

Traceback (most recent call last):
File "C:\Users\PycharmProjects\rag_tutorial\create_database.py", line 1, in
from langchain.document_loaders import DirectoryLoader
File "C:\Users\AppData\Local\anaconda3\envs\pytorch\lib\site-packages\langchain_init_.py", line 8, in
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "C:\Users\AppData\Local\anaconda3\envs\pytorch\lib\site-packages\langchain\agents_init_.py", line 2, in
from langchain.agents.agent import Agent
File "C:\Users\AppData\Local\anaconda3\envs\pytorch\lib\site-packages\langchain\agents\agent.py", line 2
from future import annotations
^
SyntaxError: future feature annotations is not defined

Process finished with exit code 1

@pedrocferreira
Copy link

This seems to be a Python version error, if you are using lower than 3.7, update the environment to 3.8
__future__ was included in 3.7

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