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
I installed qnexus on Linux today and received an error on import qnexus. Using an earlier version of pydantic solved the issue.
.pyenv/versions/3.12.7/envs/qnexus-env/lib/python3.12/site-packages/pydantic/_internal/_generate_schema.py", line 515, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'pytket._tket.architecture.Architecture'>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.
If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.
For further information visit https://errors.pydantic.dev/2.10/u/schema-for-unknown-type
>>> import pydantic
>>> pydantic.__version__
'2.10.0'
>>> quit()
(3.12.7/envs/qnexus-env) ~/Dropbox/qnexus/Hsim_H1 > python3 -m pip install pydantic --version=2.4.2
The text was updated successfully, but these errors were encountered:
Thanks for reporting the issue @atlytle. We have been trying to replicate but with no luck, could you please share your environment (e.g. the output of pip freeze along with maybe your operating system version) so we could try and replicate the issue?
The pydantic version has been updated since I reported the issue and a clean install of qnexus works fine now. I verified that python3 -m pip install pedantic=2.10.0 replicates the issue on my OS.
I installed qnexus on Linux today and received an error on
import qnexus
. Using an earlier version of pydantic solved the issue.The text was updated successfully, but these errors were encountered: