Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix error brought from wrong python-magic deps #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

czxvan
Copy link

@czxvan czxvan commented Jul 1, 2024

The python-magic==0.4.28 has a bug that has been disscussed in ahupp/python-magic#313, which could cause this error:

root@65cd61496027:/workspaces/firmafl-repro# python3 -c "import magic"
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/magic/init.py", line 234, in
libmagic = loader.load_lib()
File "/usr/local/lib/python3.5/dist-packages/magic/loader.py", line 77, in load_lib
raise ImportError("python-magic: failed to find libmagic. Check your installation")
ImportError: python-magic: failed to find libmagic. Check your installation

We can just install python-magic from pypi whose version is 0.4.27, which is good.

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

Successfully merging this pull request may close these issues.

1 participant