DASDAE / dascore

A python library for distributed fiber optic sensing
Other
72 stars 16 forks source link

Python 3.12 conda installation error #325

Closed seis-hyejeong closed 8 months ago

seis-hyejeong commented 8 months ago

I tried installing dascore with conda (Python 3.12) and received the following error

ImportError: cannot import name 'PydanticUndefined' from 'pydantic_core' (unknown location)

d-chambers commented 8 months ago

Hey @seis-hyejeong,

Thanks for filling the issue. See the corresponding issue for pydantic.

In short, the workaround is to uninstall and re-install pydantic_core with pip:

pip uninstall pydantic_core
pip install pydantic_core

I will keep this open until the downstream issues is resolved so others can easily find the workaround.

samuelcolvin commented 8 months ago

This should now be solved in condaforge.

d-chambers commented 8 months ago

This should now be solved in condaforge.

Thanks so much @samuelcolvin and happy holidays 🎄