python-for-android: Pandas recipe doesn't work
Versions
- Python: 3.7.5
- OS: android
- Kivy: 2.0.0 master
- Cython: 0.29.21
- OpenJDK: 8
Description
I’m trying to include pandas via the requirements in buildozer.spec file. The apk builds ok, but when I try to run it on my device, I get the error: ImportError: dlopen failed: cannot locate symbol “_ZTVSt12length_error” referenced by “/data/data/org.test.matplotlib_testapp/files/app/_python_bundle/site-packages/pandas/_libs/window/aggregations.so”…
The curious thing is that this is supposedly addressed in the build recipe, but I still get the same error when trying to import pandas in my main.py file.
buildozer.spec
This is what the requirements line looks like in the spec file requirements = python3==3.7.5,kivy==2.0.0,hostpython3==3.7.9,numpy,pandas
Command:
buildozer android debug
Logs
ImportError: dlopen failed: cannot locate symbol "_ZTVSt12length_error" referenced by "/data/data/org.test.matplotlib_testapp/files/app/_python_bundle/site-packages/pandas/_libs/window/aggregations.so"..
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 22 (7 by maintainers)
I just forked my lottie demo repository to add pandas in the requirements, the package built and run on my phone, displaying a DataFrame.
https://github.com/tshirtman/p4a_pandas_test/actions/runs/579782702
you can grab the apk there and look at the code and configuration in the repository if it helps.
I think the recipes is for pandas 1.0.3 (see the pull request)
Feel free to open a pull request for the necessary changes 😃