qilingframework / qilingframework/qiling

ERROR: fail to load the dynamic library

Open
#1,474 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.1k
Forks
798
Avg merge
1d 1h
Merged PRs (30d)
9

Description

*Describe the bug
Im having the following issue on MacOS Sonoma 14.5 everytime Im trying to run qltool.

Sample Code

python qltool
Traceback (most recent call last):
  File "/Users/0xh3l1x/Tools/Emulation/qiling/qltool", line 19, in <module>
    from qiling.arch import utils as arch_utils
  File "/Users/0xh3l1x/Tools/Emulation/qiling/qiling/arch/utils.py", line 14, in <module>
    from keystone import (Ks, KS_ARCH_ARM, KS_ARCH_ARM64, KS_ARCH_MIPS, KS_ARCH_X86, KS_ARCH_PPC,
  File "/Users/0xh3l1x/.pyenv/versions/3.10.14/lib/python3.10/site-packages/keystone/__init__.py", line 4, in <module>
    from .keystone import Ks, ks_version, ks_arch_supported, version_bind, debug, KsError, __version__
  File "/Users/0xh3l1x/.pyenv/versions/3.10.14/lib/python3.10/site-packages/keystone/keystone.py", line 74, in <module>
    raise ImportError("ERROR: fail to load the dynamic library.")
ImportError: ERROR: fail to load the dynamic library.

Additional context
I know that the issue is described on https://github.com/qilingframework/qiling/issues/18 but didnt work.

I already installed also keystone-engine from source and didnt fix it anything

Thanks for the help, will be awesome to fix this :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the qltool import failure on macOS Sonoma and inspect qltool, qiling/arch/utils.py, and the installed keystone package shown in the traceback. Review the linked issue 18 for prior context; done means qltool loads without the dynamic-library ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
operating-systems, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.