TypeError after installation
architverma1 opened this issue · 0 comments
architverma1 commented
After installing with pip install openprotein-python
, I receive the following error when attempting to import openprotein:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/openprotein/__init__.py", line 4, in <module>
from openprotein.api.jobs import JobsAPI, Job
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/openprotein/api/__init__.py", line 2, in <module>
from . import design
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/openprotein/api/design.py", line 5, in <module>
from openprotein.api.jobs import AsyncJobFuture
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/openprotein/api/jobs.py", line 13, in <module>
from openprotein.jobs import job_get, ResultsParser, Job
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/openprotein/jobs.py", line 147, in <module>
class ResultsParser(BaseModel):
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 93, in __new__
private_attributes = inspect_namespace(
File "/wynton/protected/home/engelhardt/averma/.conda/envs/openprotein/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 349, in inspect_namespace
raise TypeError("To define root models, use `pydantic.RootModel` rather than a field called '__root__'")
TypeError: To define root models, use `pydantic.RootModel` rather than a field called '__root__'
pydantic is version '2.7.0' after installing openprotein
Python version 3.11.7