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
Thank you for your excellent work.
I'm trying to run inference.py but can't run it properly.
I'm not sure if it's probably caused by package version conflict?
I'm using Python 3.9.20 and the error is:
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/init.py", line 5, in
from .applications import FastAPI
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/applications.py", line 3, in
from fastapi import routing
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/routing.py", line 6, in
from fastapi import params
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/params.py", line 4, in
from pydantic import Schema
ImportError: cannot import name 'Schema' from 'pydantic'
If I downgrade pydantic to 1.7.4 by: pip install 'pydantic<1.8.0'
The errors turns to:
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/init.py", line 5, in
from .applications import FastAPI
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/applications.py", line 3, in
from fastapi import routing
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/routing.py", line 6, in
from fastapi import params
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/params.py", line 14, in
class Param(Schema):
TypeError: cannot create 'cython_function_or_method' instances
I have the problem of the version of fastapi and pydantic.
Can anyone help please?
The text was updated successfully, but these errors were encountered:
Thank you for your excellent work.
I'm trying to run inference.py but can't run it properly.
I'm not sure if it's probably caused by package version conflict?
I'm using Python 3.9.20 and the error is:
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/init.py", line 5, in
from .applications import FastAPI
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/applications.py", line 3, in
from fastapi import routing
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/routing.py", line 6, in
from fastapi import params
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/params.py", line 4, in
from pydantic import Schema
ImportError: cannot import name 'Schema' from 'pydantic'
If I downgrade pydantic to 1.7.4 by: pip install 'pydantic<1.8.0'
The errors turns to:
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/init.py", line 5, in
from .applications import FastAPI
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/applications.py", line 3, in
from fastapi import routing
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/routing.py", line 6, in
from fastapi import params
File ".../miniconda3/envs/EpiDiff/lib/python3.9/site-packages/fastapi/params.py", line 14, in
class Param(Schema):
TypeError: cannot create 'cython_function_or_method' instances
I have the problem of the version of fastapi and pydantic.
Can anyone help please?
The text was updated successfully, but these errors were encountered: