AutoGPT: ModuleNotFoundError: No module named 'autogpt'
Duplicates
- I have searched the existing issues
Steps to reproduce 🕹
Latest pull from today
Current behavior 😯
Error, see message below (guessing this is related to the renaming of the main folder) ??
Expected behavior 🤔
To ingest data
Your prompt 📝
# python autogpt/data_ingestion.py -h
$ python autogpt/data_ingestion.py
Traceback (most recent call last):
File "E:\anc\Auto-GPT\autogpt\data_ingestion.py", line 4, in <module>
from autogpt.config import Config
ModuleNotFoundError: No module named 'autogpt'
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 7
- Comments: 48 (9 by maintainers)
Please do not run pip install autogpt. Someone claimed that package and it does not belong to us.
Move the Auto-GPT/autogpt/data_ingestion.py file into the base Auto-GPT folder.
Auto-GPT/data_ingestion.py
is where it should be.PR here https://github.com/Significant-Gravitas/Auto-GPT/pull/1679
same problem
I don’t believe the OP has fixed this issue, yet.
Hello I have the same problem (✚1)
Issue is fixed as OP can run
python -m autogpt
correctly. Closing issue.I am also seeing this error while trying to get this up and running in docker.
Same here master stable and Auto-GPT v0.2.0.zip
Hi, I solved the issue with this comand, just change the number to the versión of python you are using: py -3.11 -m autogpt
This worked for me:
os.chdir(‘/content/Auto-GPT’) # Set the working directory to Auto-GPT sys.path.append(os.path.abspath(‘./autogpt’)) # Add the “autogpt” folder to sys.path !python -m autogpt
Ah yup, this is my issue 😄 thank you!
@kala-here you’re having different issue. This particular one is about about people running data_ingestion.py
in your case, IDK, make sure you’re running the stable release and not just git cloning this repo.
I downloaded the recommended version at the top of the README.
Same problem with latest pull.
Yeah the fix for me was to find - replace all ‘autogpt.’ with nothing so ‘’
e.g
is now:
– update, this worked when running this particular script one off. But when running python -m autogpt I was bombarded with import errors.
you can use my branch “dirty-fix-imports” here https://github.com/Wladastic/Auto-GPT
python scripts/main.py doesn’t work anymore.Try python -m autogpt without going to scripts directory. Also make sure to pip install -r requirements.txt or pip3 install -r requirements.txt
If that doesn’t work, pip install virtualenvwrapper-win and make virtualenv like this: mkvirtualenv autogpt and run the commands again
If it still doesn’t work, please try running ‘pip install autogpt’ directly.
This error may be caused by outdated code in autogpt. Please clone the repository again