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
internal.codon:584:40-43: error: expected tuple type
├─ sample_code.py:25:1-133: error: during the realization of to_py(slf: Vec)
├─ python.codon:1924:16-58: error: during the realization of __to_py__(self: Vec)
╰─ error: during the realization of wrap_get(obj: Ptr[byte], closure: Ptr[byte], T: Vec3, S: 'v')
Is it possible to fix my code?
If my approach is not suitable, please let me know right way to use Codon for extending Python extensions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to create Python extensions via Codon.
Following the sample code in docs(https://docs.exaloop.io/codon/interoperability/pyext), I attempted to add new class in the following way:
(given sample code)
sample_code.py
(my code)
my_class.py
(partially editted sample setup.py code)
setup.py
When building, I got the following error:
Is it possible to fix my code?
If my approach is not suitable, please let me know right way to use Codon for extending Python extensions.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions