Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Love the package, but the dependency on https is causing me problems #280

Open
Marcel-Jan opened this issue Jan 6, 2025 · 0 comments
Open

Comments

@Marcel-Jan
Copy link

  • deep_translator version:1.11.4
  • Python version: 3.11.10
  • Operating System: MacOS

Description

I had great fun using the GoogleTranslator in this package. It works great. I use it to translate texts in my resume builder.
Then I tried to add the openai package to my Python project for other purposes. And poetry said no. Because googletrans needs httpx version 0.13.3 and openai needs httpx version 0.23.0 or higher.

What I Did

% poetry add openai
Using version ^1.59.3 for openai

Updating dependencies
Resolving dependencies... (0.4s)

Because no versions of googletrans match >3.0.0,<3.1.0a0 || >3.1.0a0,<4.0.0
 and googletrans (3.1.0a0) depends on httpx (0.13.3), googletrans (>3.0.0,<4.0.0) requires httpx (0.13.3).
And because googletrans (3.0.0) depends on httpx (0.13.3), googletrans (>=3.0.0,<4.0.0) requires httpx (0.13.3).
Because no versions of openai match >1.59.3,<2.0.0
 and openai (1.59.3) depends on httpx (>=0.23.0,<1), openai (>=1.59.3,<2.0.0) requires httpx (>=0.23.0,<1).
Thus, openai (>=1.59.3,<2.0.0) is incompatible with googletrans (>=3.0.0,<4.0.0).
So, because lazyresume depends on both googletrans (^3.0.0) and openai (^1.59.3), version solving failed.

Is there any way to update the dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant