replit-py icon indicating copy to clipboard operation
replit-py copied to clipboard

Can't use "typing-extensions" with the Replit package installed

Open Vandesm14 opened this issue 3 years ago • 11 comments

With the replit package installed, installing the typing-extensions package isn't possible: image

Steps to repro:

  1. Use poetry to install the replit package
  2. Install the typing-extensions package
  3. Should produce the error in the above screenshot

Vandesm14 avatar Mar 16 '22 17:03 Vandesm14

Bump: Is this actively maintained?

Vandesm14 avatar Mar 31 '22 18:03 Vandesm14

Seems like a version conflict. ~~This library needs to update its version of typing-extensions.~~ You'll have to use this library's typing-extensions, since it seems like v4 is backwards-incompatible with this library's current version.

techpixel avatar Jun 19 '22 23:06 techpixel

Using an older te is not sufficient, v4 has a lot of commonly used extensions like NotRequired

ooliver1 avatar Aug 17 '22 12:08 ooliver1

This library is not currently being maintained

spencerpogo avatar Aug 17 '22 16:08 spencerpogo

Then why is it still used on replit?

ooliver1 avatar Aug 17 '22 21:08 ooliver1

If you aren't maintaining it, you should probably add a warning.

techpixel avatar Aug 17 '22 21:08 techpixel

for now, do any of:

  • poetry add typing_extensions@^3.7.4 - but many other packages would have updated to v4, so they become incompatible
  • poetry add git+https://github.com/noneofyourbusiness1415252/replit-py (fork that bumps the typing_extensions version up)
  • Wait for #131 to be merged

This is causing issues for me as well. Combined with Poetry being ~forced on the user, is currently making Replit unusable in my case. Will try the workaround stated above but it's concerning that is necessary!

totalhack avatar Apr 12 '23 18:04 totalhack

Bumping this too. Likewise, it makes replit unusable in my case of using OpenAI's and Anthropic's SDKs.

gkossakowski avatar Aug 30 '23 22:08 gkossakowski

this issue had finally been fixed. Run poetry update replit in Shell

I don't think they fixed it, though:

Because no versions of replit match >3.3.1,<4.0.0
 and replit (3.3.1) depends on typing_extensions (>=3.7.4,<4.0.0), replit (>=3.3.1,<4.0.0) requires typing_extensions (>=3.7.4,<4.0.0).
And because sqlalchemy (2.0.20) depends on typing-extensions (>=4.2.0)
 and no versions of sqlalchemy match >2.0.20,<3.0.0, replit (>=3.3.1,<4.0.0) is incompatible with sqlalchemy (>=2.0.20,<3.0.0).
So, because python-template depends on both sqlalchemy (^2.0.20) and replit (^3.3.1), version solving failed.

gkossakowski avatar Aug 31 '23 16:08 gkossakowski