AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

pre-commit with pytest-check failed

Open gluonhiggs opened this issue 2 years ago • 1 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?

Devcontainer / Codespace

Which version of Auto-GPT are you using?

Master (branch)

GPT-3 or GPT-4?

GPT-4

Steps to reproduce 🕹

  1. Open folder in a Dev Container
  2. pip install black
  3. pip install pre-commit
  4. Change content in docs/installation.md
  5. black .
  6. git commit -m "your message"

Current behavior 😯

`pytest-check.............................................................Failed

  • hook id: pytest-check
  • exit code: 4

ImportError while loading conftest '/workspaces/Auto-GPT/tests/conftest.py'. tests/conftest.py:4: in from dotenv import load_dotenv E ModuleNotFoundError: No module named 'dotenv'`

Expected behavior 🤔

pytest-check: Skipped

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>

gluonhiggs avatar Apr 25 '23 03:04 gluonhiggs

Are you able to run autogpt with the run script?

k-boikov avatar Apr 25 '23 09:04 k-boikov

Are you able to run autogpt with the run script?

Previously I wasn't able to launch Auto-GPT smoothly. In such a case, that will produce the failed test. After configuring .env file properly, the issue disappears after git commit.

gluonhiggs avatar Apr 27 '23 13:04 gluonhiggs