[graalvm-users] Build stop of pandas with graalpython

Tim Felgentreff tim.felgentreff at oracle.com
Fri May 14 06:04:59 PDT 2021


Hi,

it looks like you didn't create a venv.

Can you try to create a venv first and report back?

The steps you should run are:

$GRAALVM_HOME/graalpython -m venv pandas_venv
source pandas_venv/bin/activate
python -m ginstall install pandas

Best,
Tim


Hi,

I am following the website docs for the test of graalpython
https://www.graalvm.org/reference-manual/python/

The installation of pandas seems to stop without an error.

— Would appreciate some advice on how I can possibly fix this.

Best,
Marius

---

1.) Check for installable packages:

marius at shell<https://oss.oracle.com/mailman/listinfo/graalvm-users>:~/Downloads/graalvm-ce-java11-21.1.0/languages/python/bin$ ./graalpython -m ginstall install --help
usage: ginstall.py install [-h] [--prefix PREFIX] package

Install a known package. Known packages are pytest, pytest_parallel, py, attrs, pyparsing, packaging, more_itertools,
… pandas, scipy, cycler ...

2.) Install package

graalpython -m ginstall install pandas
...
building 'pandas._libs.algos' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/pandas
creating build/temp.linux-x86_64-3.8/pandas/_libs
/home/marius/Downloads/graalvm-ce-java11-21.1.0/languages/llvm/native/bin/graalvm-native-clang -stdlib=libc++ -DNDEBUG -fPIC -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/home/marius/.local/lib/python3.8/site-packages/numpy-1.16.4-py3.8-linux-x86_64.egg/numpy/core/include -I/home/marius/Downloads/graalvm-ce-java11-21.1.0/languages/python/include -c pandas/_libs/algos.c -o build/temp.linux-x86_64-3.8/pandas/_libs/algos.o -Wno-unused-function

marius at shell<https://oss.oracle.com/mailman/listinfo/graalvm-users>:~/Downloads/graalvm-ce-java11-21.1.0/languages/python/bin$ ./graalpython
Python 3.8.5 (Fri Apr 16 11:46:53 UTC 2021)
[Graal, GraalVM CE, Java 11.0.11] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named ‘pandas'

3.) List installed packages

graalpython -m ginstall list
Installed packages:

setuptools-41.0.1-py3.8.egg
setuptools_scm-1.15.0-py3.8.egg
python_dateutil-2.7.5-py3.8.egg
six-1.12.0-py3.8.egg
numpy-1.16.4-py3.8-linux-x86_64.egg

4.) Test interactively

graalpython
Python 3.8.5 (Fri Apr 16 11:46:53 UTC 2021)
[Graal, GraalVM CE, Java 11.0.11] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>> import numpy as np

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20210512/2dabca45/attachment.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20210514/b37026fb/attachment.html 


More information about the GraalVM-Users mailing list