Open Philomath88 opened 1 year ago
+1
Try changing the path in script.js
let args_cmd = ['//'] // ADD PATH of autogpt folder
Thank you for your willingness to help @MrAnayDongre but am not sure where I have to insert this line.
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.
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
You have added AutoGPT folder path it seems.
AutoGPT is the main folder and autogpt
is the subfolder which path needs to be provided.
// 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']
this maybe help for linux vim /etc/profile export PYTHONPATH=your_autogpt_path for windows add your_autogpt_path into env_params called "PYTHONPATH"
// 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.
Help Wanted!
Seems like it is looking in the wrong place - the main.py script is in the root directory