GithubHelp home page GithubHelp logo

Comments (13)

chfl4gs avatar chfl4gs commented on May 12, 2024 1

Workaround until upstream fix.

cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/keystone/libkeystone.so /usr/local/lib/python3.6/dist-packages/keystone/

from qiling.

xwings avatar xwings commented on May 12, 2024

I guess running a ldconfig should fix the issue as mention in keystone installation guide.

i will add a note into qiling installation guide too.

from qiling.

bannsec avatar bannsec commented on May 12, 2024

ldconfig does not solve this. mainly since it's not a ld path issue, rather it's a keystone library placed into wrong location issue:

sudo ldconfig
[sudo] password for user:
(qiling) ✔ ~/work/opt/qiling [master|✔]
14:23 $ ./qltool
Traceback (most recent call last):
  File "./qltool", line 15, in <module>
    from keystone import *
  File "/home/user/.virtualenvs/qiling/lib/python3.6/site-packages/keystone/__init__.py", line 4, in <module>
    from .keystone import Ks, ks_version, ks_arch_supported, version_bind, debug, KsError, __version__
  File "/home/user/.virtualenvs/qiling/lib/python3.6/site-packages/keystone/keystone.py", line 75, in <module>
    raise ImportError("ERROR: fail to load the dynamic library.")
ImportError: ERROR: fail to load the dynamic library.

from qiling.

aquynh avatar aquynh commented on May 12, 2024

Please send a pull req to Keystone for this issue.

from qiling.

bannsec avatar bannsec commented on May 12, 2024

It appears the python library for keystone is over 3 years old. The source may be correct in the git tree, but it's never been pushed to pypi.

from qiling.

xwings avatar xwings commented on May 12, 2024

Ah, this is pypi issue. not the original install from source issue

from qiling.

bannsec avatar bannsec commented on May 12, 2024

from qiling.

xwings avatar xwings commented on May 12, 2024

if you are able to fix it, please sent in a pull request to keystone

from qiling.

bannsec avatar bannsec commented on May 12, 2024

from qiling.

xwings avatar xwings commented on May 12, 2024

@chfl4gs can you please check ? or update the the documents

from qiling.

phdphuc avatar phdphuc commented on May 12, 2024

Having issue with Keystone installation (keystone-engine>=0.9.1.post3) on macOS Catalina, due to macOS won't support 32bit executable furthermore. Same issue has been reported here

Temporary workaround:

Remove keystone-engine>=0.9.1.post3 in requirements.txt and install keystone-engine python binding from source.

from qiling.

0xjacklove avatar 0xjacklove commented on May 12, 2024

I have the same problem."cp /usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages/keystone/libkeystone.so /usr/lib/ " .I sovled the problem

from qiling.

0xjacklove avatar 0xjacklove commented on May 12, 2024

you just need to check kestone.py


if (_found == False) and (system() == 'Darwin'):
_lib_path = '/usr/local/lib/'
for _lib in _all_libs:
try:
_lib_file = join(_lib_path, _lib)
#print(">> 3: Trying to load %s" %_lib_file);
_ks = cdll.LoadLibrary(_lib_file)
_found = True
break
except OSError:
pass

if _found == False:
raise ImportError("ERROR: fail to load the dynamic library.")

from qiling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.