getzep / zep

Zep | The Memory Foundation For Your AI Stack
https://help.getzep.com/ce
Apache License 2.0
2.71k stars 385 forks source link

Support httpx 0.27.0 #325

Closed andresmoschini closed 8 months ago

andresmoschini commented 8 months ago

Is your feature request related to a problem? Please describe.

I need to use zep-python in combination with weaviate-client and I cannot use the last Weaviate version because weaviate-client requires httpx==0.27.0 and zep-python requires httpx<0.25.0

Describe the solution you'd like

I am not sure, but probably httpx does not have breaking changes and you can simply update the dependency configuration.

Describe alternatives you've considered

Right now, I am using an old version of weaviate-client, I do not know if there is another alternative or workaround, Official page is not so helpful in this case.

Additional context

My build output:

INFO: pip is looking at multiple versions of zep-python to determine which version is compatible with other requirements. This could take a while.

The conflict is caused by:
    openai 1.14.1 depends on httpx<1 and >=0.23.0
    weaviate-client 4.5.4 depends on httpx==0.27.0
    zep-python 1.5.0 depends on httpx<0.25.0 and >=0.24.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: Cannot install -r ./requirements.txt (line 10), -r ./requirements.txt (line 19) and -r ./requirements.txt (line 20) because these package versions have conflicting dependencies.
ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
danielchalef commented 8 months ago

Hi there, we've loosened the httpx version requirement in the zep-python 2.0.0 release candidate. Note that at this time 2.0.0 only supports v2 of the Zep API, which is available with the Zep cloud service but not yet Zep Open Source.

andresmoschini commented 8 months ago

Oh, thanks @danielchalef for your answer.

Is there any workaround to do without upgrading to v2?

danielchalef commented 8 months ago

zep-python has few dependencies. You could install these manually and then run:

pip install --no-deps zep-python

which will install the package without attempting to install dependencies.

zep-python dependencies:

httpx = ">=0.24.0,<0.29.0"
pydantic = ">=2.0.0"