AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Could not find the version that satisfies the requirement sourcery

Open Jbbancud10 opened this issue 1 year ago • 13 comments

⚠️ Search for existing issues first ⚠️

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

GPT-3 or GPT-4

  • [X] I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 ERROR: Could not find a version that satisfies the requirement sourcery (from versions: none) ERROR: No matching distribution found for sourcery

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

Jbbancud10 avatar Apr 17 '23 07:04 Jbbancud10

There should be a distiction from development requirements and operation requirements. isort, black, sourcery, etc... are not needed for using AutoGPT!

talvasconcelos avatar Apr 17 '23 09:04 talvasconcelos

Any update on this?

spiderhands avatar Apr 17 '23 19:04 spiderhands

Are you using Docker? The Steps to reproduce are quite insufficient.

k-boikov avatar Apr 17 '23 19:04 k-boikov

yes, on Apple M1 Pro

spiderhands avatar Apr 17 '23 19:04 spiderhands

Please verify that you have the following code in your version of Dockerfile on line 21: RUN pip install --no-cache-dir --user -r requirements-docker.txt If not - update the project.

k-boikov avatar Apr 17 '23 19:04 k-boikov

Thanks @k-boikov, I found a solution

There is no requirements-docker.txt file in the repo, but there is a flag in the requirements.txt file that separates non-docker requirements. The sourcery was written in the non-docker ones

spiderhands avatar Apr 17 '23 19:04 spiderhands

Just curious - which branch/release are you using? And you are saying including sourcery fix the Docker issue?

k-boikov avatar Apr 17 '23 20:04 k-boikov

This file is in the last commit:

beautifulsoup4
colorama==0.4.6
openai==0.27.2
playsound==1.2.2
python-dotenv==1.0.0
pyyaml==6.0
readability-lxml==0.8.1
requests
tiktoken==0.3.3
gTTS==2.3.1
docker
duckduckgo-search
google-api-python-client #(https://developers.google.com/custom-search/v1/overview)
pinecone-client==2.2.1
redis
orjson
Pillow
selenium
webdriver-manager
jsonschema
tweepy

##Dev
coverage
flake8
numpy
pre-commit
black
sourcery
isort
gitpython==3.1.31

# Items below this point will not be included in the Docker Image

# Testing dependencies
pytest
asynctest
pytest-asyncio
pytest-benchmark
pytest-cov
pytest-integration
pytest-mock

If you change to the following one, the error will go away

beautifulsoup4
colorama==0.4.6
openai==0.27.2
playsound==1.2.2
python-dotenv==1.0.0
pyyaml==6.0
readability-lxml==0.8.1
requests
tiktoken==0.3.3
gTTS==2.3.1
docker
duckduckgo-search
google-api-python-client #(https://developers.google.com/custom-search/v1/overview)
pinecone-client==2.2.1
redis
orjson
Pillow
selenium
webdriver-manager
jsonschema
tweepy
gitpython==3.1.31

# Items below this point will not be included in the Docker Image

##Dev
coverage
flake8
numpy
pre-commit
black
sourcery
isort

# Testing dependencies
pytest
asynctest
pytest-asyncio
pytest-benchmark
pytest-cov
pytest-integration
pytest-mock

spiderhands avatar Apr 17 '23 20:04 spiderhands

I have the same issue in Mac m1 max

franken133521 avatar Apr 18 '23 03:04 franken133521

Most likely your PIP is out of date run pip install --upgrade pip in terminal (OSX)

OverWatchForensics avatar Apr 18 '23 23:04 OverWatchForensics

I tried with docker, not with py

franken133521 avatar Apr 19 '23 02:04 franken133521

git checkout stable

Fixed it for me

mwienk avatar Apr 19 '23 09:04 mwienk

I'm on stable branch but I get No matching distribution found for openai==0.27.2 (from -r requirements.txt (line 3))

michelem09 avatar Apr 19 '23 15:04 michelem09

Should be fixed by now. Please try with latest version on master. New stable release including this fix is expected to release tomorrow morning.

Pwuts avatar Apr 19 '23 22:04 Pwuts

use stable branch fix the problem, docker works. thanks all.

franken133521 avatar Apr 20 '23 01:04 franken133521