Closed mablue closed 1 week ago
pkg i libicu -y
thanks bro 🚶
another error during pyqt5 dependency installation
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
another error during pyqt5 dependency installation
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
Try:
pkg upgrade -y
pkg rem python python-pip pyqt5 -y
rm -rf ~/.pip/
pkg i python python-pip -y
pkg i pyqt5 -y
Hi there, I'm currently also trying to install libretranslate on Termux with Android 13, I ran amongst others also in above mentioned error and tried the solution given, but now I get another error with installing/running PyICU: Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [20 lines of output] (running 'icu-config --version')
Building PyICU 2.11 for ICU 73.1 (max ICU major version supported: 73)
(running 'icu-config --cxxflags --cppflags')
Adding CFLAGS="-std=c++11 -I/data/data/com.termux/files/usr/include" from /data/data/com.termux/files/usr/bin/icu-config
(running 'icu-config --ldflags')
Adding LFLAGS="-L/data/data/com.termux/files/usr/lib -licui18n -licuuc -licudata" from /data/data/com.termux/files/usr/bin/icu-config
running dist_info
creating /data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info
writing /data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/PKG-INFO
writing dependency_links to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/dependency_links.txt
writing top-level names to /data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/top_level.txt
writing manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/SOURCES.txt'
reading manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/SOURCES.txt'
creating '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU-2.11.dist-info'
error: [('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/PKG-INFO', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/PKG-INFO', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/PKG-INFO'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/dependency_links.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/dependency_links.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/dependency_links.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/top_level.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/top_level.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/top_level.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info/SOURCES.txt', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/SOURCES.txt', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__/SOURCES.txt'"), ('/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info', '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__', "[Errno 13] Permission denied: '/data/data/com.termux/files/usr/tmp/pip-modern-metadata-z0fdc5mq/PyICU.egg-info.__bkp__'")]
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
I get the same error when I run the pip install cmd for PyICU.
Any suggestions?
Ok. In the end the PyICU was resolved by just re installing python and trying again. Then I also ran into the pyqt5 problem, and pip couldn't find a way to install libretranslate with the version Termux gives (5.15.9), but wanted to install .4 - which I had to try to do manually, but after so many tries and errors and time wasted, I just gave up on it...
Problem description
Steps to reproduce the behavior.
pip install libretranslate
What is the expected behavior?
Run withoue error
System information