thecookingsenpai / autogpt-gui

A graphical user interface for AutoGPT
1.52k stars 221 forks source link

python: can't open file '/Users/maximiliandoelle/Projects/Auto-GPT/scripts/main.py': [Errno 2] No such file or directory #12

Open Philomath88 opened 1 year ago

Philomath88 commented 1 year ago

Seems like it is looking in the wrong place - the main.py script is in the root directory

KeJWS commented 1 year ago

+1

MrAnayDongre commented 1 year ago

Try changing the path in script.js let args_cmd = ['//'] // ADD PATH of autogpt folder

Philomath88 commented 1 year ago

Thank you for your willingness to help @MrAnayDongre but am not sure where I have to insert this line.

MrAnayDongre commented 1 year ago

In the latest update, script/main.py was removed. Users are getting the same issue for AutoGPT repo as well. If this doesn't work then we just have to wait for the update.

Try changing path in args_cmd variable which is in script.js @Philomath88 . args_cmd variable initializes an array containing the file/folder path.

Philomath88 commented 1 year ago

How I am getting this issue @MrAnayDongre ...

/Users/maximiliandoelle/miniconda3/bin/python: can't find 'main' module in '/Users/maximiliandoelle/Projects/Auto-GPT'

I have made sure to pull the latest changes from auto-gpt

MrAnayDongre commented 1 year ago

You have added AutoGPT folder path it seems. AutoGPT is the main folder and autogpt is the subfolder which path needs to be provided.

kuangzhu81 commented 1 year ago
// REVIEW Run ../scripts/main.py and redirect all the output to a variable live in the GUI
// Set up the command
let cmd = 'python'
let args_cmd = ['-m', 'autogpt']
// let args_cmd = ['scripts/main.py']
1zw commented 1 year ago

this maybe help for linux vim /etc/profile export PYTHONPATH=your_autogpt_path for windows add your_autogpt_path into env_params called "PYTHONPATH"

Zujaj commented 1 year ago
// REVIEW Run ../scripts/main.py and redirect all the output to a variable live in the GUI
// Set up the command
let cmd = 'python'
let args_cmd = ['-m', 'autogpt']
// let args_cmd = ['scripts/main.py']

Getting error No module named autogpt, I even added C:\Users\Administrator\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts in my windows Path Environment Variable and executed pip install autogpt.

image

Help Wanted!