-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Using apt-get in PRE_COMMANDS #3378
Comments
Try : |
It fails with the following error.
|
@InvincibleRMC apt-get is not available because megalinter is based on alpine linux Available packages are available at https://pkgs.alpinelinux.org/packages About your pip error, maybe it requires so dependencies to be previously installed ? |
Megalinter is using an Alpine-based image. Alpine uses the apk (alpine package keeper) package manager. Apt, used with Does using a python package bundled by the OS work for you use case? I think on alpine it is But installing from source might be impossible for you Here, for pyqt5 https://stackoverflow.com/questions/76266695/cant-install-pyqt5-using-pip-on-alpine-docker, the user wasn't able to compile with 32 GB RAM, it ended up OOM (out of memory). |
Haha, @nvuillam was writing when I was writing too. The first missing dependency mentioned in your trace (qmake) could be installed with https://pkgs.alpinelinux.org/package/edge/community/x86_64/qt6-qtbase-dev as mentioned (for qt5) in the SO post I linked to. |
For your use case, I see it is for mypy, would a stub-only package be enough? |
Yeah a stub file would be fine. |
Thanks everyone for letting me know that is running Alpine Linux not sure how I missed that. |
Ok finally got it working by using a third party stub package. Since my question has been answered I will close this issue. |
I'm sure I'm missing something but when I try to use apt-get it says no command apt-get. The reason I want to do this is so I can pip install pyqt6. This is failing because of a qmake error. The internet seems to suggest installing qt6-base-dev manually before using apt-get (or brew if on mac).
The text was updated successfully, but these errors were encountered: