Comments (8)
Followed everything straight from https://github.com/keystone-engine/keystone/blob/master/docs/COMPILE-NIX.md
and now I get #5
root@kali:~# metame -i /root/Desktop/untitled.exe -o /root/Desktop/untitled_.exe
Traceback (most recent call last):
File "/usr/local/bin/metame", line 5, in <module>
metame.main()
File "/usr/local/lib/python2.7/dist-packages/metame/__init__.py", line 5, in main
import metame.r2parser as r2parser
File "/usr/local/lib/python2.7/dist-packages/metame/r2parser.py", line 2, in <module>
import metame.x86handler as x86handler
File "/usr/local/lib/python2.7/dist-packages/metame/x86handler.py", line 6, in <module>
from keystone import *
File "/usr/local/lib/python2.7/dist-packages/keystone/__init__.py", line 4, in <module>
from .keystone import Ks, ks_version, ks_arch_supported, version_bind, debug, KsError, __version__
File "/usr/local/lib/python2.7/dist-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.
from metame.
Quite a bit later, I know, but I have been seeing the exact same error under multiple attempted installs under Kali and Ubuntu installations. I've installed from scratch, a couple times start to finish, installing metame last after radare2 and keystone.
Could this be related to OpenStack having a "keystone" module as well?
from metame.
same NameError: name 'Ks' is not defined
just pipinstalling keystone, after keystone-engine then the new ImportError: ERROR: fail to load the dynamic library.
, that is solved with this so, you have to compile and install also shared libraries...
question is, wtf dont they say this already in the INSTALL.md? lol
I think case is closed.
from metame.
This looks like the same problem as #3. Can you check if your Keystone installation is correct?
from metame.
I checked, last time I ran metame and installed everything I had some problems with Keystone indeed, however I paused metame installation and installed Keystone successfully and then went onto metame and restarted the installation and it installed properly, however the issue still appeared.
This is what shows up after trying to install keystone-engine:
root@kali:~# pip install keystone-engine
Requirement already satisfied: keystone-engine in /usr/local/lib/python2.7/dist-packages
I will redo everything installing keystone from git and will report back.
from metame.
Yes, that seems to be the problem. I commented it in #3 as well.
from metame.
@live4java sorry did you find a solution by now?
from metame.
edit, actually I do that on ubuntu and it turns out that for some obscure reasons the init file remain empty, and even following the stuff in previous message doesnt works, so to solve put:
# Keystone Python bindings, by Nguyen Anh Quynnh <[email protected]>
from . import arm_const, arm64_const, mips_const, sparc_const, hexagon_const, systemz_const, ppc_const, x86_const
from .keystone_const import *
from .keystone import Ks, ks_version, ks_arch_supported, version_bind, debug, KsError, __version__
in /usr/local/lib/python3.5/dist-packages/keystone/__init__.py
PS possibly related to https://docs.angr.io/introductory-errata/install#attributeerror-module-object-has-no-attribute-ks_arch_x-86
from metame.
Related Issues (16)
- cool! HOT 1
- Key error in fcn_ctx HOT 1
- JSON decode error HOT 1
- metame crash with last radare version HOT 2
- What's the problem
- Python HOT 3
- Radare 2? Somebody said Binary too big..
- JSON DECODE ERROR
- Use r2.cmdj not r2.cmd HOT 4
- installed everything you described still an error HOT 2
- ARM support HOT 1
- ImportError: ERROR: fail to load the dynamic library. HOT 1
- Error after installing everything right HOT 1
- Stuck HOT 4
- Quick question HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metame.