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

[Error when install library python]: #3948

Open
kimyugiixyz opened this issue May 13, 2024 · 7 comments
Open

[Error when install library python]: #3948

kimyugiixyz opened this issue May 13, 2024 · 7 comments

Comments

@kimyugiixyz
Copy link

kimyugiixyz commented May 13, 2024

Problem description

termux-report_issue_from_transcript.log

Steps to reproduce the behavior.

pkg install python-cryptography
pkg install pycryptodome
pip install pillow

What is the expected behavior?

No response

System information

  • Termux application version: 118
  • Android OS version: 4.19.127+ / 11
  • Device model: RMX3201
@kimyugiixyz
Copy link
Author

It could happen when I install python-cryptography, then the error again when installing pycryptodome and the last error when installing pillow

@Notorious2Beat
Copy link

It could happen when I install python-cryptography, then the error again when installing pycryptodome and the last error when installing pillow

Have you found s solution?

@Manamama
Copy link

Manamama commented May 29, 2024

If you mean: aarch64-linux-android-clang: error: unknown argument: '-fno-openmp-implicit-rpath' aarch64-linux-android-clang:.. one, then see the issues here or Perplexity AI etc be your friend.

In short: "The clang 17.0.2 in NDK supports the fopenmp-implicit-rpath option but clang 18.1.5 in termux-packages does not support that, so change needed it in pychache files. ". To fix, use e.g. : grep -Rl "fno-openmp-implicit-rpath" /data/data/com.termux/files/usr/lib/* 2>null

And then, carefully, e.g.:
for file in $(grep -Rl "fno-openmp-implicit-rpath" /data/data/com.termux/files/usr/lib/python3.11/site-packages/*); do echo "Changing $file..." ; sed -i 's/-fno-openmp-implicit-rpath//g' "$file"; done

but there is at least one .so that contains it, too: do not change it.

Just today i struggled with it, when compiling sentencepiece, which relied on these switches from numpy (!) config, and not from its git cloned package.

@Biswa96
Copy link

Biswa96 commented May 30, 2024

This issue has been fixed with python 3.11.9-1 package in termux.

@Manamama
Copy link

Manamama commented May 30, 2024

Oh, has it? I have forgotten re this error for weeks, but two days ago I had to purge and reinstall my python, and it has reappeared, so I had to manually run the above, yet again.

The newest Python, seemingly, so is its apt source wrong?:

$ apt show python
Package: python
Version: 3.11.9
Maintainer: @termux
Installed-Size: 63.3 MB
Provides: python3
Depends: gdbm, libandroid-posix-semaphore, libandroid-support, libbz2, libcrypt, libexpat, libffi, liblzma, libsqlite, ncurses, ncurses-ui-libs, openssl, readline, zlib
Recommends: python-ensurepip-wheels, python-pip
Suggests: python-tkinter
Breaks: python2 (<= 2.7.15), python-dev
Replaces: python-dev
Homepage: https://python.org/
Download-Size: 8141 kB
APT-Manual-Installed: yes
APT-Sources: https://mirror.leitecastro.com/termux/termux-main stable/main aarch64 Packages
Description: Python 3 programming language intended to enable clear programs

~ $ uname -a
Linux localhost 4.14.186+ #1 SMP PREEMPT Thu Mar 17 16:28:22 CST 2022 aarch64 Android
~ $

@Biswa96
Copy link

Biswa96 commented May 30, 2024

The newest Python, seemingly, so is its apt source wrong?:

Please try to update the packages first.

$ apt show python | grep Version
Version: 3.11.9-1

@Manamama
Copy link

Thanks for the tip. It somehow has updated itself on its own, probably via python- smth dependencies, since. Indeed, now, just some hours later:
Reading state information... Done All packages are up to date. ~ $ apt show python Package: python Version: 3.11.9-1 Maintainer: @termux Installed-Size: 63.4 MB Provides: python3 Depends: gdbm, libandroid-posix-semaphore, libandroid-support, libbz2, libcrypt, libexpat, libffi, liblzma, libsqlite, ncurses, ncurses-ui-libs, openssl, readline, zlib Recommends: python-ensurepip-wheels, python-pip Suggests: python-tkinter Breaks: python2 (<= 2.7.15), python-dev Replaces: python-dev Homepage: https://python.org/ Download-Size: 7738 kB ...

Ta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants