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

ImportError: failed to find libmagic. Check your installation #56

Open
seongilp opened this issue Nov 9, 2024 · 0 comments
Open

ImportError: failed to find libmagic. Check your installation #56

seongilp opened this issue Nov 9, 2024 · 0 comments

Comments

@seongilp
Copy link

seongilp commented Nov 9, 2024

Describe the bug
Not working

To Reproduce
$ fosslight-cli update project scan --prjId 1 --dir opensource/fosslight

Expected behavior

Screenshots
If applicable, add screenshots to help explain your problem.

Traceback (most recent call last): File "/Users/seongilp/.pyenv/versions/3.10.7/bin/fosslight-cli", line 8, in <module> sys.exit(main()) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/src/__main__.py", line 6, in main cli() File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/src/commands/update.py", line 74, in update_project_scan ProjectService().scan(prjId, dir) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/src/services/project.py", line 146, in scan result: ScanResult = FosslightScanner.scan_all(dir) File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/src/scanner.py", line 15, in scan_all from fosslight_scanner.fosslight_scanner import run_main File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/fosslight_scanner/fosslight_scanner.py", line 19, in <module> from fosslight_binary import binary_analysis File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/fosslight_binary/binary_analysis.py", line 11, in <module> import magic File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/magic/__init__.py", line 209, in <module> libmagic = loader.load_lib() File "/Users/seongilp/.pyenv/versions/3.10.7/lib/python3.10/site-packages/magic/loader.py", line 49, in load_lib raise ImportError('failed to find libmagic. Check your installation') ImportError: failed to find libmagic. Check your installation

System Environment (please complete the following information):

  • Browser [e.g. chrome, safari] chrome
  • Version [e.g. 22] python 3.10.7
  • Etc

Additional context
Add any other context about the problem here.

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