Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pydantic Model Issue #153

Open
charlestang06 opened this issue Jun 25, 2024 · 1 comment
Open

Pydantic Model Issue #153

charlestang06 opened this issue Jun 25, 2024 · 1 comment

Comments

@charlestang06
Copy link

I am on Win11 running the example.py on Python 3.10.11. I installed vrp_cli, and other requirements as well successfully via PyPI. When running example.py, I am running into this error.

python examples/python-interop/example.py

import pragmatic_types as prg
  File "c:\Users\________\examples\python-interop\pragmatic_types.py", line 146, in <module>
    Problem.__pydantic_model__.update_forward_refs()
AttributeError: type object 'Problem' has no attribute '__pydantic_model__'. Did you mean: '__pydantic_config__'?

What could be the issue here?

@reinterpretcat
Copy link
Owner

Sorry, cannot say much about it.
I have idea to replace this with pyo3 bindings and support extensions written in python natively, but this would require plenty of work. At the moment, I'm refactoring rust code to simplify extension from rust using vrp-core. This I hope to finish soon and make a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants