AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

No module named 'pandas'

Open AlexDep opened this issue 1 year ago • 2 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Stable (branch)

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

Prompt :

python3 -m autogpt --gpt3only

From that create an agent :

'Market research for bike trends"

Current behavior 😯

image

image

Expected behavior 🤔

Should be able to use pandas if it tells that it install successfully

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>

AlexDep avatar May 17 '23 12:05 AlexDep

You need to first install pandas on your machine. You can do that by running the below command

pip3 install pandas

Devang-C avatar May 17 '23 15:05 Devang-C

Python files are executed in a Docker container for security reasons, the shell popen commands are executed locally. That is pending rework. For now the best solution is to run everything in Docker.

k-boikov avatar May 17 '23 17:05 k-boikov

I installed pandas in another terminal, and it didn't affect auto-GPT, restarted it and worked.

Thanks.

AlexDep avatar May 17 '23 18:05 AlexDep

How exactly did you make it work? I'm using AutoGPT in a virtual environment (venv), and I suspect that it may be affecting it. I've tried to create instructions to install any necessary pip package directly in the main code of the script, but it didn't work. Do I need to create a Docker image with tons of pre-set packages?

MLeall avatar May 18 '23 13:05 MLeall