-
Notifications
You must be signed in to change notification settings - Fork 44.4k
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
Python-dotenv could not parse statement starting at line ... #2749
Comments
And what's on line 61? |
@Pwuts line 61 of what file? It doesn't specify. |
Line 61 of |
The $ cat .env | wc -l
1 |
Does it still complain about line 61 if there is only 1 line? |
Yes. |
Hi! Gday. Was this issue solved? I am facing the same issue on line 61. Already copied from template again. Auto-gpt is running but I don't what is causing and what functionality may not be workin. |
Python-dotenv could not parse statement starting at line 6 |
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days. |
This issue was closed automatically because it has been stale for 10 days with no activity. |
@daefv I had the same issue, eventually figured out that it's because I had an |
Thanks @luckman212 Error in my ~/.env file was the issue. I didn't realize python-dotenv would traverse up to the ~/ directory and load all of the .env files it found along the way. |
Apparently another workaround could be:
|
Which Operating System are you using?
Linux
GPT-3 or GPT-4?
GPT-4
Steps to reproduce 🕹
pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)
Python 3.11.2
python-dotenv, version 1.0.0
Fresh install of
stable
branch:git clone https://github.com/Significant-Gravitas/Auto-GPT.git cd Auto-GPT/ git checkout stable pip install -r requirements.txt cp .env.template .env
Uncommented and set
OPENAI_API_KEY
env var only:grep -vE '^#|^$' .env OPENAI_API_KEY=sk-XXXXXX
Executed init script (see #2689):
Output:
Current behavior 😯
./run.sh
outputs Python-dotenv could not parse statement starting at line 61Expected behavior 🤔
Python-dotenv should parse statement starting at line 61.
Your prompt 📝
# N/A
Your Logs 📒
The text was updated successfully, but these errors were encountered: