Giter Site home page Giter Site logo

Comments (36)

AhmetMericOzcan avatar AhmetMericOzcan commented on June 9, 2024 6

Ok I tried @ResourceHog answer didn't worked.

However changed docker version to 5.0.1(inside requirement.txt) and removed request from requirements, now it is working for me inside Anaconda,Windows 11

from auto-gpt.

Taytay avatar Taytay commented on June 9, 2024 5

If you remove the frozen versions, it works like a champ in Linux/WSL:

beautifulsoup4
colorama
googlesearch_python
openai
playsound
readability_lxml
requests
docker

from auto-gpt.

altryne avatar altryne commented on June 9, 2024 3

CleanShot 2023-04-02 at 13 01 51@2x

Getting the same in a brand new conda env on a mac

from auto-gpt.

ResourceHog avatar ResourceHog commented on June 9, 2024 2

What's your operating system?

from auto-gpt.

ResourceHog avatar ResourceHog commented on June 9, 2024 2

use a venv so your globally installed dependencies don't interfere with each other.
python -m venv venv
./venv/Scripts/Activate
pip install -r requirements.txt

from auto-gpt.

f11music avatar f11music commented on June 9, 2024 2

from auto-gpt.

AhmetMericOzcan avatar AhmetMericOzcan commented on June 9, 2024 2

I am also waiting for this thread to resolve. I believe everyone would face the same problem and again there should be someone who can solve this. virtual env doesn't work. removing request from requirements doesn't solve. Could some one please give us a input.

from auto-gpt.

juancamiloqhz avatar juancamiloqhz commented on June 9, 2024 2
CleanShot 2023-04-02 at 13 01 51@2x

Getting the same in a brand new conda env on a mac

Same error here!!

from auto-gpt.

siddkb avatar siddkb commented on June 9, 2024 2

I had the same issue, i resolved it by just removing all the version numbers so that pip could figure out the dependencies on its own.

So my requirements.txt now looks like this:

beautifulsoup4
colorama
googlesearch_python
openai
playsound
readability_lxml
requests
docker

I know this isn't the best solution but it works.

NOTE: Only do this in a venv, it might mess up your system libraries if you do it outside of a venv.

from auto-gpt.

jbb-kryo avatar jbb-kryo commented on June 9, 2024 2

I had the same issue, i resolved it by just removing all the version numbers so that pip could figure out the dependencies on its own.

So my requirements.txt now looks like this:

beautifulsoup4
colorama
googlesearch_python
openai
playsound
readability_lxml
requests
docker

I know this isn't the best solution but it works.

NOTE: Only do this in a venv, it might mess up your system libraries if you do it outside of a venv.

I tried this originally but when you actually run Auto-GPT it then starts throwing errors passed the prompt point.

from auto-gpt.

easy-peasy avatar easy-peasy commented on June 9, 2024 1

this happens on Windows 11

from auto-gpt.

f11music avatar f11music commented on June 9, 2024 1

from auto-gpt.

easy-peasy avatar easy-peasy commented on June 9, 2024 1

@ResourceHog it is not about global vs local packages, same problem happens in new environemnts. If you look at the error message @f11music shared, problem is caused by the packages listed in requirements.txt

from auto-gpt.

heikog avatar heikog commented on June 9, 2024 1

same here - both on osx and a blank linux installation. uninstalled all python packages and tried to install the requirements - getting the same error as OP

from auto-gpt.

easy-peasy avatar easy-peasy commented on June 9, 2024 1

Requirements.txt requires requests==2.25.1, same as googlesearch_python, while required docker package demands requests==2.28.1.
Hope this clarifies the problem.

from auto-gpt.

f11music avatar f11music commented on June 9, 2024 1

from auto-gpt.

LericDax avatar LericDax commented on June 9, 2024 1

I had the same error, Ahmet's solution seems to have resolved it.

from auto-gpt.

jbb-kryo avatar jbb-kryo commented on June 9, 2024 1

I am using Windows 11. None of the solutions mentioned here have proven viable. If you remove the versions as prior suggested, when you come to run Auto-GPT, not only does the interface include strange characters but it also fails to start 'thinking' when you get passed adding goals.

from auto-gpt.

amsator avatar amsator commented on June 9, 2024 1

bing ai give solutions: pip install -r requirements.txt --use-deprecated=legacy-resolver

from auto-gpt.

xSNYPSx avatar xSNYPSx commented on June 9, 2024 1

bing ai give solutions: pip install -r requirements.txt --use-deprecated=legacy-resolver

ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
docker 6.0.1 requires requests>=2.26.0, but you'll have requests 2.25.1 which is incompatible.

from auto-gpt.

AhmetMericOzcan avatar AhmetMericOzcan commented on June 9, 2024 1

@jbb-kryo Did you try my solution? I downgraded docker version to 5.0.1 by changing the requirement.txt, I believe you might downgrade even more.

I tried myself, the code ran without any problem. The only problem I faced was, gpt4 Api access error. It was because I had no access right to gpt4 Api.

from auto-gpt.

webel avatar webel commented on June 9, 2024 1

yuup, nope, sorry - this version doesn't have encoding_for_model 🤦‍♀️ hmm...

from auto-gpt.

ResourceHog avatar ResourceHog commented on June 9, 2024

Mine works...
Here's my pip freeze.

aiohttp==3.8.4
aiosignal==1.3.1
async-timeout==4.0.2
attrs==22.2.0
autopep8==2.0.2
beautifulsoup4==4.9.3
certifi==2022.12.7
chardet==4.0.0
charset-normalizer==3.1.0
colorama==0.4.6
cssselect==1.2.0
docker==6.0.1
frozenlist==1.3.3
googlesearch-python==1.1.0
idna==2.10
lxml==4.9.2
multidict==6.0.4
openai==0.27.2
packaging==23.0
playsound==1.2.2
pycodestyle==2.10.0
pygame==2.3.0
pywin32==306
readability-lxml==0.8.1
regex==2023.3.23
requests==2.28.2
soupsieve==2.4
tiktoken==0.3.3
tomli==2.0.1
tqdm==4.65.0
urllib3==1.26.15
websocket-client==1.5.1
yarl==1.8.2

pygame was just something my run of the program caused at some point so ignore it.
note the version of requests.

from auto-gpt.

astelmach01 avatar astelmach01 commented on June 9, 2024

I'm on Windows 11 and created a linux subsystem, and these requirements.txt worked

Edit: working in vscode

from auto-gpt.

jbb-kryo avatar jbb-kryo commented on June 9, 2024

I attempted to manually force the install of the correct 'requests', however it would appear it is already installed correctly.
image

When I downgrade the docker level as suggested it throws a new error but, ultimately circling the same issue:
image

from auto-gpt.

webel avatar webel commented on June 9, 2024

The requirements-alternative.txt with the docker 6 to 5 change doesn't seem to work either... I tried finding the version of a request that satisfies everything... tried changing google search package. Hm, tricky conflict!

I'm converting it to a poetry project now, incase poetry has better conflict resolution (or just more helpful errors).

from auto-gpt.

yousefissa avatar yousefissa commented on June 9, 2024

@webel would love to see this in poetry!

from auto-gpt.

mofe23 avatar mofe23 commented on June 9, 2024

The problem is googlesearch-python pinning it's dependencies. . . tomviner already did a PR there & I've just created #86 containing a workaround using his fix.

from auto-gpt.

webel avatar webel commented on June 9, 2024

Got it working!

I can PR with poetry (?), here's the requirement puzzling that I got working;

[tool.poetry.dependencies]
python = "^3.10"
docker = "^5.0.3"
beautifulsoup4 = "4.9.3"
colorama = "0.4.6"
openai = "^0.27.2"
python-dotenv = "1.0.0"
pyyaml = "6.0"
readability-lxml = "0.8.1"
requests = "^2.25.1"
tiktoken = "^0.1.0"
googlesearch-python = "^1.1.0"

from auto-gpt.

webel avatar webel commented on June 9, 2024

The problem is googlesearch-python pinning it's dependencies. . . tomviner already did a PR there & I've just created #86 containing a workaround using his fix.

Just wanted to do it without some random's fork.

from auto-gpt.

mofe23 avatar mofe23 commented on June 9, 2024

Just wanted to do it without some random's fork.

Totally get that. . . I'm surprised you got it working with poetry. IMO this is not a dependency resolver bug, but a really unsolvable missmatch between request package versions.

from auto-gpt.

webel avatar webel commented on June 9, 2024

@mofe23 you're right; the key was changing tiktoken to "^0.1.0", not sure if requests nor docker change is needed.

from auto-gpt.

Mars-e avatar Mars-e commented on June 9, 2024

Running into 2 errors running this cmd

also tried running as pip3

Errors:

ERROR: Cannot install -r requirements.txt (line 3), -r requirements.txt (line 4), -r requirements.txt (line 8) and requests==2.25.1 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested requests==2.25.1 googlesearch-python 1.1.0 depends on requests==2.25.1 openai 0.27.0 depends on requests>=2.20 docker 6.0.1 depends on requests>=2.26.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Please try the following commands while you are in the working directory/folder

1 Uninstall all requirements

pip uninstall -r requirements.txt

2 Install all requirements

pip install -r requirements.txt

##IN CASE those steps didn't worked out, please try:##

1 Uninstall all requirements

pip uninstall -r requirements.txt

2 Edit requirements.txt with this data

beautifulsoup4
colorama==0.4.6
openai==0.27.2
playsound==1.3.0
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)

3 Save/Overwrite requirements.txt

4 Install all requirements

pip install -r requirements.txt

I hope this helps

Please give feedback! :)

from auto-gpt.

tuapuikia avatar tuapuikia commented on June 9, 2024

It's working fine on Ubuntu and the local Docker image. Python is known to have dependency problems when dealing with local package dependencies versus system package dependencies.

from auto-gpt.

webel avatar webel commented on June 9, 2024

I faffed around with different attempts but ended up just doing a pip install -r requirements, with one of the offending packages commented out, then pip installed that package with the --no-deps flag and then manually installed whatever was missing... I know, a pain, but I'm running.

from auto-gpt.

richbeales avatar richbeales commented on June 9, 2024

Can this be closed now?

from auto-gpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.