-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Pandas recipe doesn't work #2425
Comments
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. |
That comment in the recipe indicates |
Apparently one needs to use p4a.branch=develop for pandas. |
😄 |
I solved this using python lists to manage data instead of pandas module.. don't know if it's the best solution but its working now |
Yep, using develop branch fixed the issues. Thank you! |
It was working for a while, but using develop branch suddenly stopped working with the same dlopen failed issue. IDK why that would be. Everything else is the same |
@tugsag, have you solved a problem? Having same when running apk file built with kivy on Android 11 Sasmung S10e |
@yukhnovskiy my app is working and stable so far using python native lists instead of pandas to manage data, same phone and also built with kivy |
@Revoluti0n thanks its possible way but not desired one, as a lot of refactoring is needed in my current project. Is there any workaround using pandas? |
btw here: https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipes/pandas/__init__.py |
Changing in recipe.py "need_stl_shared = True" solved issue for me. And pandas works fine. |
@yukhnovskiy good job, thanks for sharing |
For me, things worked fine on Android 10, Galaxy S10. On Android 11, Galaxy S21, I had the
|
Feel free to open a pull request for the necessary changes :) |
Fixed via #2478 thanks for the pull request 💪 |
I keep having issues with pandas:
Below my spec file
|
I think the recipes is for pandas 1.0.3 (see the pull request) |
Thanks! |
I still encounter issues for this, I tried to follow suggestions provided in this bug report comments but at the moment I cannot make my project work on android with pandas:
I don't know if it is the same problem or a related one, I also pinned pandas version to 1.0.3 the one indicated by recipe, to be sure I was using a fixed one, here it is mine buildozer.spec file:
|
Hi @magowiz ! I've just merged a fix on Feel free to open a new issue if you still encounter any issues. |
Hi @misl6, |
Versions
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:
Logs
The text was updated successfully, but these errors were encountered: