Skip to content
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

[Package]: Pandas #13785

Closed
1 task done
indrastorms opened this issue Dec 8, 2022 · 17 comments · Fixed by #15079
Closed
1 task done

[Package]: Pandas #13785

indrastorms opened this issue Dec 8, 2022 · 17 comments · Fixed by #15079
Labels
package request A new package was requested. python Issue is about python-related stuff, including pip. wontfix Issue won't be fixed.

Comments

@indrastorms
Copy link

Why do you want to add this package to Termux?

Pandas need to compile from source on termux and it takes ages to update.
If you could add precompiled pandas package like numpy it would be great.

Home page URL

https://pandas.pydata.org/

Source code URL

https://github.com/pandas-dev/pandas

Packaging policy acknowledgement

Additional information

No response

@indrastorms indrastorms added the package request A new package was requested. label Dec 8, 2022
@xtkoba xtkoba added the python Issue is about python-related stuff, including pip. label Dec 8, 2022
@xtkoba
Copy link
Contributor

xtkoba commented Dec 8, 2022

Just taking some time to build does not fulfill our policy for packaging Python extensions.

@indrastorms
Copy link
Author

Just taking some time to build does not fulfill our policy for packaging Python extensions.

  1. It's more than some time, like more than 10min.
  2. Has some compiling issue needs some workaround.
  3. It's so much popular.
    If team doesn't want to add another package then ok.
    I requested because numpy is there why not pandas?

@xtkoba
Copy link
Contributor

xtkoba commented Dec 8, 2022

  1. Has some compiling issue needs some workaround.

This can be a good reason for us to package this. Can you show us what happens when you try to install pandas through pip?

@indrastorms
Copy link
Author

  1. Has some compiling issue needs some workaround.

This can be a good reason for us to package this. Can you show us what happens when you try to install pandas through pip?

Sorry for late reply, I just tried to upgrade pandas to show you the error on latest version.
But I think they fixed on the latest version. on previous version the MATHLIB="m" arg was needed to compile, same as numpy.

@T-Dynamos
Copy link
Contributor

Could be added to tur

@xtkoba
Copy link
Contributor

xtkoba commented Dec 10, 2022

Yeah, this is what third-party repos are for.

@xtkoba xtkoba closed this as completed Dec 10, 2022
@xtkoba xtkoba added the wontfix Issue won't be fixed. label Dec 10, 2022
@xtkoba
Copy link
Contributor

xtkoba commented Feb 4, 2023

Not being buildable on Android 12 (due to phantom process killing) would become a good reason for us to package this. But I don't believe it requires some ridiculous amount of resources to build like Chromium which is not buildable even on GitHub Actions CI.

@xtkoba
Copy link
Contributor

xtkoba commented Feb 10, 2023

pkg install python-numpy
pip install Cython setuptools wheel
pip install --no-build-isolation pandas

What could be controversial is whether --no-build-isolation can be considered as trivial or not. I would say it would be trivial if ever well-documented, which unfortunately is not the case as of now (#15048).

Building in GitHub Actions CI is rather trivial. Keeping the package up to date is rather easy because the source code is hosted in GitHub and we can use the auto-update mechanism. Probably it is just a matter of disk space. I will try building it on CI and check the footprint.

BTW, isn't this added in TUR yet?

@xtkoba
Copy link
Contributor

xtkoba commented Feb 10, 2023

Just 10 to 11 MiB per arch. I think this is acceptable.

@xtkoba xtkoba removed the wontfix Issue won't be fixed. label Feb 10, 2023
@xtkoba xtkoba reopened this Feb 10, 2023
@xtkoba xtkoba linked a pull request Feb 10, 2023 that will close this issue
xtkoba added a commit that referenced this issue Feb 11, 2023
due to packaging policy. It is installable through pip with some trivial
workaround. Pretty much a borderline case though. See discussions in
#13785.
@xtkoba
Copy link
Contributor

xtkoba commented Feb 11, 2023

Added as a disabled package. Maintainers are free to re-enable this. Thanks.

@xtkoba xtkoba added the wontfix Issue won't be fixed. label Feb 11, 2023
@licy183
Copy link
Member

licy183 commented Feb 11, 2023

Emmm... I'll add this to TUR.

itsaky pushed a commit to itsaky/termux-packages that referenced this issue Feb 18, 2023
due to packaging policy. It is installable through pip with some trivial
workaround. Pretty much a borderline case though. See discussions in
termux#13785.
@Jonaben1
Copy link

Jonaben1 commented May 9, 2023

python-pandas from TUR package not working on termux. Any atempt to create a DataFrame results in a valueError: expected int_tpt got long long

This renders python-pandas useless in my termux app whereas python-numpy is working. Also, using pip to install doesn't work, not even with MATHLIB='m'

So, please how can I install pandas on termux?

@djd1226
Copy link

djd1226 commented May 17, 2023

me too,Ran into the same problem!
open csv file:
valueError: expected int_tpt got long long
Python-pandas version:1.5.3

@xtkoba
Copy link
Contributor

xtkoba commented May 21, 2023

TUR things should go to TUR community.

Note that if the package in TUR does not work, then neither does our "official" package if ever enabled.

@djd1226
Copy link

djd1226 commented May 21, 2023

The problem has been solved,thanks!

@vbayda-kzn
Copy link

The problem has been solved,thanks!

how?)

@Ystyphn
Copy link

Ystyphn commented Oct 5, 2023

The problem has been solved,thanks!

Yah! How? I tried on using Pydroid 3, but has lots of ads. So how???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package request A new package was requested. python Issue is about python-related stuff, including pip. wontfix Issue won't be fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants