SkyTruth / cerulean-cloud

All cloud services including inference and database structure
Apache License 2.0
7 stars 1 forks source link

Error: Pytest not discovering tests #93

Closed jonaraphael closed 1 year ago

jonaraphael commented 1 year ago

This is happening locally on Jona's computer, but does not happen during deployment via Github Actions.

Seems possibly related to pydantic?

pydantic/fields.py:550: in pydantic.fields.ModelField._type_analysis ??? ../../mambaforge/lib/python3.9/typing.py:852: in __subclasscheck__ return issubclass(cls, self.__origin__) E TypeError: issubclass() arg 1 must be a class

jonaraphael commented 1 year ago

This error was being generated by a mismatch in the versions of some locally pip-installed libraries (specifically between morecantile and pydantic). It was fixed with these commands: pip install "rio-tiler-pds==0.8.*" pip install "rio-tiler==4.*" pip install "morecantile==3.4" pip install "geojson-pydantic==0.6.*"