-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
micropip claims it's installing typing-extensions
4.12.2, but it's not
#201
Comments
Thanks for the report @samuelcolvin! I guess this is fixed by #181, could you please try again with micropip 0.9.0? FYI, what happens is that, we have the typing-extensions==4.11 in the lockfile, and it is installed and overwrites the 4.12 when installing pydantic from the lockfile. But the behavior has been changed in #181 and the package in the lockfile will not overwrite the package downloaded from PyPI anymore |
Awesome, thank you, I'll try it. Sorry for the dumb question, how do I install newer micropip within pyodide? |
To be honest I'm not really sure either. |
You can download micropip directly from the PyPI: |
okay, I've installed v0.9.0, but it doesn't solve the problem - same issue occurring. |
|
Okay, ignore my comment above, it seems with v0.9.0, the immediate issue is fixed, see pydantic/pydantic.run#44 and preview here. However I still need to explicitly add Should I create another issue? |
Closing, I'll create a new issue about the other issues. |
See https://pydantic.run/store/0f396bc320c5d2fe,
I'm running
and getting an error because the code is using typing-extensions 4.11, but the above
print(version('typing_extensions'))
is printing4.12.2
.It seems like there are two (perhaps related) issues:
await micropip.install(["typing_extensions>=4.12", "pydantic_ai_slim[openai]"], keep_going=True)
is installing 4.11, not 4.12I'll note that if I change pydantic.run to use
and install
typing_extensions>=4.12
before other pages, the problem goes away.The text was updated successfully, but these errors were encountered: