Git Product home page Git Product logo

Comments (8)

amauryfischer avatar amauryfischer commented on May 13, 2024 3

#86
this one is working well !

from autogpt.

mofe23 avatar mofe23 commented on May 13, 2024 1

Duplicate of #30

The problem is not tiktoken, but googlesearch-python. I've just created a PR containing a workaround, using tomviner's PR on googlesearch which loosened its requirements

Try if this fixes your problem: #86

from autogpt.

Qoyyuum avatar Qoyyuum commented on May 13, 2024 1

Currently, the latest master branch no longer has this problem. git pull or re git clone the repo and pip install --user -r requirements.txt.

from autogpt.

Jdban avatar Jdban commented on May 13, 2024

Yeah some version pining would be great too... I see a lot of unpinned versions

I'm getting the same error

from autogpt.

simon0117 avatar simon0117 commented on May 13, 2024

Someone on Discord suggested this that worked for me:
git+https://github.com/tomviner/googlesearch@loosen-requirements#googlesearch-python

from autogpt.

AnkurSalunkhe11 avatar AnkurSalunkhe11 commented on May 13, 2024

To resolve this dependency conflict, you can try the following steps:

1)Use a virtual environment to isolate the project dependencies from other Python installations on your system.

2)Uninstall the conflicting packages that are not needed for your project.

3)Install the required versions of requests and googlesearch-python packages in your virtual environment using pip.

Here are the steps in more detail:

1)Create a virtual environment:
Copy code
python -m venv myenv
2)Activate the virtual environment:
bash
Copy code
source myenv/bin/activate # on Linux or macOS
myenv\Scripts\activate.bat # on Windows
3)Uninstall the conflicting packages:
Copy code
pip uninstall tiktoken docker
4)Install the required versions of requests and googlesearch-python packages:
Copy code
pip install requests==2.25.1 googlesearch-python
If you still need tiktoken and docker packages, you can try installing them with the same version of requests as googlesearch-python:

Copy code
pip install tiktoken docker requests==2.25.1
Alternatively, you can try updating the dependencies of the conflicting packages to use a compatible version of requests. However, this may not always be possible or practical, especially if the conflicting packages have strict dependency requirements.

from autogpt.

aodrasa avatar aodrasa commented on May 13, 2024

To resolve this dependency conflict, you can try the following steps:

1)Use a virtual environment to isolate the project dependencies from other Python installations on your system.

2)Uninstall the conflicting packages that are not needed for your project.

3)Install the required versions of requests and googlesearch-python packages in your virtual environment using pip.

Here are the steps in more detail:

1)Create a virtual environment: Copy code python -m venv myenv 2)Activate the virtual environment: bash Copy code source myenv/bin/activate # on Linux or macOS myenv\Scripts\activate.bat # on Windows 3)Uninstall the conflicting packages: Copy code pip uninstall tiktoken docker 4)Install the required versions of requests and googlesearch-python packages: Copy code pip install requests==2.25.1 googlesearch-python If you still need tiktoken and docker packages, you can try installing them with the same version of requests as googlesearch-python:

Copy code pip install tiktoken docker requests==2.25.1 Alternatively, you can try updating the dependencies of the conflicting packages to use a compatible version of requests. However, this may not always be possible or practical, especially if the conflicting packages have strict dependency requirements.

Still Getting the following error on Mac

Collecting requests==2.25.1
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting googlesearch-python
Using cached googlesearch-python-1.2.0.tar.gz (7.4 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/0x/1gmts4910vs5kjmbz0shlj3h0000gn/T/pip-install-gcq2yqik/googlesearch-python_1e337451113649e48921cb002ccd8c43/setup.py", line 6, in
with open("requirements.txt") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

from autogpt.

p-i- avatar p-i- commented on May 13, 2024

To pin or not to pin
Still not sure what's best here
I'm going with: only pin when we need to
We're now using poetry which should sort this out for us.

from autogpt.

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.