When I compile graalpython -m ginstall install pandas or graalpython -m ginstall install bumpy
I got the following error, please comment how to fix the error. Thank you.
line 54, in __init__
File "number.c", line 284, in array_power
File "ufunc_object.c", line 4688, in ufunc_generic_call
File "ufunc_object.c", line 3178, in PyUFunc_GenericFunction
File "ufunc_type_resolution.c", line 180, in PyUFunc_DefaultTypeResolver
File "ufunc_type_resolution.c", line 2028, in linear_search_type_resolver
File "ufunc_type_resolution.c", line 1639, in ufunc_loop_matches
File "convert_datatype.c", line 904, in PyArray_CanCastArrayTo
java.lang.AssertionError
It seems that you may be mixing packages installed by your default system python and those installed by graalpython. By default graalpython installs into the same site-wide directory as CPython (
~/.local/lib/python3.8/site-packages/).The simplest way to fix this is to use venv, which GraalPython supports. For example:
Edit: GraalPy specific
ginstallpackage is deprecated in favor of using vanillapipjust like on CPython:python -m pip install pandasshould work on GraalPy.