Pythagora-io / gpt-pilot

The first real AI developer
Other
29.08k stars 2.91k forks source link

[Bug]: "streamlit run app.py" gpt-pilot cannot recognize successful.. #979

Open seunghwan-dev opened 1 month ago

seunghwan-dev commented 1 month ago

Version

Command-line (Python) version

Operating System

MacOS

What happened?

I created a Python app using Streamlit. During processing, gpt-pilot runs "streamlit run app.py" and confirms successful execution. However, we always decide that it is not successful and proceed with troubleshooting.

How can I fix this?

senko commented 1 month ago

@seunghwan-dev thanks for reporting this!

Can you check which version you're using? If you use the VSCode extension, you can go to settings and see the versions for both the extension and core (please report both). If you're using it from the command line, to check the version with python main.py --version (you might need to run that either in gpt-pilot directory, or the "pilot" subdirectory, depending on which version that is).

Also, could you paste the command output so we can check what the command output is and why it deduced it was an error?

seunghwan-dev commented 1 month ago

@senko I'm not sure.. I think 0.2.0

gpt-pilot runs : Can I run command: streamlit run stocker.py with 120s timeout?

result : { "analysis": "The command streamlit run stocker.py timed out, which indicates that the Streamlit server might not have started correctly or there could be an issue with the network or environment setup. Since the command did not complete successfully, we need to debug the issue. Possible steps include checking the network connection, ensuring that the stocker.py file is correctly set up, and verifying that there are no syntax errors or other issues in the code.", "success": false }

Given the task and the issue encountered with the streamlit run stocker.py command timing out, we need to debug the problem step-by-step. Here is the plan to solve the issue and ensure the Streamlit application runs correctly. Step-by-Step Plan to Debug and Continue the Current Task: