Comments (36)
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.
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.
from auto-gpt.
What's your operating system?
from auto-gpt.
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.
from auto-gpt.
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.
![]()
Getting the same in a brand new conda env on a mac
Same error here!!
from auto-gpt.
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.
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.
this happens on Windows 11
from auto-gpt.
from auto-gpt.
@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.
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.
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.
from auto-gpt.
I had the same error, Ahmet's solution seems to have resolved it.
from auto-gpt.
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.
bing ai give solutions: pip install -r requirements.txt --use-deprecated=legacy-resolver
from auto-gpt.
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.
@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.
yuup, nope, sorry - this version doesn't have encoding_for_model
🤦♀️ hmm...
from auto-gpt.
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.
I'm on Windows 11 and created a linux subsystem, and these requirements.txt worked
Edit: working in vscode
from auto-gpt.
I attempted to manually force the install of the correct 'requests', however it would appear it is already installed correctly.
When I downgrade the docker level as suggested it throws a new error but, ultimately circling the same issue:
from auto-gpt.
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.
@webel would love to see this in poetry!
from auto-gpt.
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.
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.
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.
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.
@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.
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:
- loosen the range of package versions you've specified
- 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.
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.
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.
Can this be closed now?
from auto-gpt.
Related Issues (20)
- [Server] Fix 404 on unauthenticated requests to entities without `userId`
- Fix Block Control Panel width
- increase zoom in and out distance
- tweak block control styling
- tweak node styling
- tweak node title, connector color and transparency
- Add background effect
- [Builder] Move `/monitor` to `/`
- Fix managed certificates
- update login urls to new domain
- Implement "Stop" button for running nodes
- [Server] Implicit Type Conversion on node execution
- Fix frontend build issues with dockerfile
- make use of helmfile
- Address TS errors
- Submit Agent UI
- Review Submissions UI
- Featured Submissions Promotion/Demotion from Normal Status UI
- bug: user not being created on server side
- Import templates is broken both locally and cloud
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-gpt.