question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pandas recipe doesn't work

See original GitHub issue

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"..

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
tshirtmancommented, Feb 19, 2021

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.

1reaction
mp-007commented, Dec 7, 2021

I think the recipes is for pandas 1.0.3 (see the pull request)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pandas Worked, Now It Doesn't - Stack Overflow
The solution according to me would be open anaconda prompt and try conda install pandas ... If that doesn't work, try pip install...
Read more >
Simplify your Dataset Cleaning with Pandas | by Ulysse Petit
So I'll be honest with you: I won't give you the magic recipe to get rid of all the data issues you might...
Read more >
10 minutes to pandas — pandas 1.5.2 documentation
You can see more complex recipes in the Cookbook. ... of all floating-point values, and DataFrame.to_numpy() is fast and doesn't require copying data:...
Read more >
Method Chaining in Pandas: Bad Form Or a Recipe For ...
An interview with Python and pandas trainer Matt Harrison.
Read more >
Quick and Dirty Data Analysis with Pandas
In this post you will discover some quick and dirty recipes for Pandas to improve the ... consulting or working on competition data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found