AutoGPT: python main/scripts doesn't work anymore ? Run python -m autogpt instead !

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

python main/scripts

Current behavior 😯

python main/scripts doesn’t start autogpt anymore

Expected behavior 🤔

it should turn on autogpt.

Your prompt 📝

# Paste your prompt here

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 64 (14 by maintainers)

Most upvoted comments

yes I created the PR.

I created this issue for the very few people that could still struggle with it.

if you are using the “stable” release 0.1.3 source zip folder in the releases, the command python -m autogpt is not available. This command is currently available in master branch. For the stable release, please use the old python ./scripts/main.py way

cc @thedevp @hkbertoson @owzzz

D:\AI\AutoGPT\Auto-GPT>python -m autogpt
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\AI\AutoGPT\Auto-GPT\autogpt\__main__.py", line 12, in <module>
    from autogpt import commands as cmd
  File "D:\AI\AutoGPT\Auto-GPT\autogpt\commands.py", line 7, in <module>
    from autogpt.web import browse_website
  File "D:\AI\AutoGPT\Auto-GPT\autogpt\web.py", line 2, in <module>
    from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'

Please help me to solve the issue.

On WSL2 with python3 and python-is-python3 installed the “python -m autogpt” gives me an error: “ModuleNotFoundError: No module named ‘openai’”.

Does anyone know how to solve this?

For the missing modules in WSL, run this.

sudo python3 -m pip install -r requirements.txt Then run sudo python3 -m pip install autogpt.

Should now when you run python3 -m autogpt

@piaoyizhe switch to the stable branch

have you ran: pip install -r requirements.txt

Run:

python -m autogpt