autogpt-gui icon indicating copy to clipboard operation
autogpt-gui copied to clipboard

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

Open Philomath88 opened this issue 1 year ago • 9 comments

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

Philomath88 avatar Apr 17 '23 09:04 Philomath88

+1

KeJWS avatar Apr 17 '23 14:04 KeJWS

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

MrAnayDongre avatar Apr 18 '23 12:04 MrAnayDongre

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

Philomath88 avatar Apr 18 '23 13:04 Philomath88

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.

MrAnayDongre avatar Apr 18 '23 14:04 MrAnayDongre

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

Philomath88 avatar Apr 19 '23 03:04 Philomath88

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

MrAnayDongre avatar Apr 19 '23 03:04 MrAnayDongre

// 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']

kuangzhu81 avatar Apr 20 '23 09:04 kuangzhu81

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

1zw avatar Apr 25 '23 04:04 1zw

// 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!

Zujaj avatar Apr 28 '23 17:04 Zujaj