You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
micropip doesn't install some required transitive dependencies. (related to #201)
This is my current workaround for adding extra required transitive dependencies, maybe it's helpful in working out what's wrong?
def_add_extra_dependencies(dependencies: list[str]) ->list[str]:
"""Add extra dependencies we know some packages need. Workaround for micropip not installing some required transitive dependencies. pygments seems to be required to get rich to work properly, ssl is required for FastAPI and HTTPX. See also https://github.com/pyodide/micropip/issues/201#issuecomment-2645794486. """extras= []
fordindependencies:
ifd.startswith(('logfire', 'rich')):
extras.append('pygments')
elifd.startswith(('fastapi', 'httpx', 'pydantic_ai')):
extras.append('ssl')
ifd.startswith('pydantic_ai'):
extras.append('typing_extensions>=4.12')
iflen(extras) ==3:
breakreturndependencies+extras
ssl is a Python stdlib, but it is unvendored (optional) in Pyodide, because it is very big because of the openssl. I think we can add a recipe for those packages and specify ssl as a requirement explicitly.
if d.startswith('pydantic_ai'):
extras.append('typing_extensions>=4.12')
I think you need to update the typing_extensions version in Pyodide.
micropip doesn't install some required transitive dependencies. (related to #201)
This is my current workaround for adding extra required transitive dependencies, maybe it's helpful in working out what's wrong?
See pydantic/pydantic.run#44.
The text was updated successfully, but these errors were encountered: