Is it possible to get pyqt5 on a device with 4 GB RAM 2 GB Swap?
Hi I am using
pip install pyqt5 --config-settings --confirm-license= -vvv
on OFW Samsung Galaxy S7 Android 8 and it runs until printing this message
and prints nothing more for several hours, but ps -ef
shows it is using clang++
to compile C++ code in the background. It looks like -j1
already because it looks like only one instance of clang++
runs at a time.
but during this, in htop
it looks like "Mem
" remains about 2.2G/3.64G used while "Swp
" gradually fills up to 1.99G/2.00G, then, after about 3 hours, the command fails with this error:
and pip
prints a lot of python related information but does not show any output of clang++
or linker, so I cannot see the real error.
is it possible for me to inject --max-load 1
into the make
invocation of pip
somehow to see if that might help?8 Replies
I can see here that people have succeeded here https://github.com/termux/termux-packages/discussions/8775
but all of the errors and fixes in that thread seem like runtime not compile time
so i don't know how they reached the point of runtime anyway
GitHub
Build PyQt · Discussion #8775 · termux/termux-packages
I have successfully built PyQt5 with Python3.10.2, but an error is coming out Is there
ok from there i have found this documentation https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html which explains a way to build pyqt5 without using
pip
and i can see more compiler messages. so this might help meeventually i got error message
undeclared identifier 'GL_BYTE'
and google showed me one result, which was this
https://github.com/termux/termux-packages/tree/master/x11-packages/pyqt5
which i realized is an already precompiled pyqt5
in termux official repository, which i didn't notice existed
wow such a dumb mistake sorry, i will try the precompiled package to see if it works for what i needGitHub
termux-packages/x11-packages/pyqt5 at master · termux/termux-packages
A build system and primary set of packages for Termux. - termux-packages/x11-packages/pyqt5 at master · termux/termux-packages
@owokitty If the device only has 4 GB of RAM, remember that some of it needs to be used by Android itself. It is very possible for Android to kill it off if it needs the RAM to load up another program / app.
yeah because the device doesn't have root i was unable to compile custom build of pyqt5.
but i was able to get pyqt5 to work by using the precompiled package from termux repository, which i did not notice existed until after i wrote the thread
@owokitty So is this now "solved"? (respond to me and my main @Cuteness) if it is.
yes i put the "solved" tag a long time ago is that not the right way? @NyaNyaCutie
Thanks.