-
Notifications
You must be signed in to change notification settings - Fork 198
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
[bug]: ImportError: failed to find libmagic. Check your installation #1078
Labels
Comments
Hey, thanks for the report. I've created #1083 to address this issue! |
Reopening again, because the fix was reverted, and it shouldn't be the case to have kapitan not working after installing the dependencies. Also you shouldn't have to install specific dependencies manually afterwards... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug
If libmagic is not installed you get an
ImportError
,I think it should be reported some other way, preferibably it should say that it's missing at
pip install
time. Or preferably install it automatically somehow.I see that there was some work for that but it doesn seem to work on alpine at least , see the steps to reproduce below
Steps to reproduce
docker run --rm -ti alpine:3.18 apk add git gettext helm curl python3 python3-dev py3-pip make g++ go python -m venv kapitan-venv source kapitan-venv/bin/activate pip install -U pip pip install -U kapitan kapitan ImportError: failed to find libmagic. Check your installation
Then if I manually install
libmagic
it works:What happened?
I got an ImportError because libmagic is missing.
I would expect an error at
pip install
time not a runtime. Or mention in the documentation.Additional context
#952
#951
Version (kapitan)
v0.31.0 (stable)
Version (kapitan)
I use kapitan directly (pip, docker)
Python virtual environment
OS information
Alpine 3.18
Relevant log output
The text was updated successfully, but these errors were encountered: