Skip to content

int too big to convert with numpy in Python 3.13.1 #338

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

Open
mmomtchev opened this issue Jan 27, 2025 · 0 comments
Open

int too big to convert with numpy in Python 3.13.1 #338

mmomtchev opened this issue Jan 27, 2025 · 0 comments

Comments

@mmomtchev
Copy link
Owner

In Python 3.13.1 numpy uses objects without a working str and repr implementation as dictionary keys. It seems that the faulty element is numpy.ogrid.

It is not clear if this is intended or it is a bug but these objects cannot be converted to JavaScript where object keys must be convertible to string.

This occurs only when using the not-so-recommended direct conversion of a Python module to a JavaScript module:

const np = pymport('numpy').toJS();

Everything works with proxify or when using get() methods.

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

1 participant