Open
Description
The dependencies don't seem to be correct. I'm getting this error when I try to build
Starting Docker image cog-resnet-base and running setup()...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/usr/local/lib/python3.8/site-packages/cog/__init__.py", line 1, in <module>
from pydantic import BaseModel
File "pydantic/__init__.py", line 2, in init pydantic.__init__
File "pydantic/dataclasses.py", line 41, in init pydantic.dataclasses
# +---------+-----------------------------------------+
ImportError: cannot import name dataclass_transform
ⅹ Failed to get container status: exit status 1
If I follow the example on the cog getting started page then it works ok. Their yaml file is as follows
build:
gpu: true
python_version: 3.11
python_packages:
- pillow==9.5.0
- tensorflow==2.12.0
predict: "predict.py:Predictor"
Metadata
Metadata
Assignees
Labels
No labels