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

typecode_libmagic_system_provided raises exception when running on Linux armv7l #50

Open
JonoYang opened this issue Nov 14, 2024 · 0 comments

Comments

@JonoYang
Copy link
Member

This exception is raised when running scancode-toolkit on Debian-based distro running on armv7l using the system provided plugins.

The packages 7zip, libmagic1, libmagic-mgc, and libarchive13 have been installed.

Exception: libmagic not found. Please refer to the scancode-toolkit documentation on how to install libmagic for your operating system.

The exception is caused by https://github.com/aboutcode-org/scancode-plugins/blob/main/builtins/typecode_libmagic_system_provided/src/typecode_libmagic/__init__.py#L58 where the generated path to the libmagic lib directory has the value /usr/lib/armv7l-linux-gnu, but the actual path to the libmagic lib directory on the system is /usr/lib/arm-linux-gnueabihf.

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

No branches or pull requests

1 participant