Comments (7)
Hi @morpheuslord , thanks for raising this issue! Can you describe the steps you took before seeing this error, as well as the platform you are using? If you can provide as much of the information which the bug report template here asks for, that will help us help you!
from ofrak.
i just ran
pip install -e .
from ofrak.
@EdwardLarson I was able to replicate this error by running pip install .
in the root of the clone OFRAK source directory.
@morpheuslord the recommended way to install OFRAK from source is this section on installing from source in the OFRAK docs. That page goes into detail and contains all of the relevant information. I've included a summary of that information (tested on a fresh Debian system) below.
The gist is that you have to install python3
, libmagic-dev
, and pip
—and nodejs
and npm
if you want to build the GUI—and then run make develop
in the relevant directories.
The install step on a Debian or Ubuntu system looks like the following.
sudo apt install git git-lfs python3 python3-pip libmagic-dev nodejs npm
python3 -m pip install --upgrade pip setuptools wheel
git clone https://github.com/redballoonsecurity/ofrak.git
cd ofrak
The step to run the make develop
in all of the OFRAK directories looks like the following. This first installs NPM dependencies, then finds all files named Makefile
and runs make develop
in their containing directory.
for DIR in ofrak_type ofrak_io ofrak_patch_maker ofrak_core disassemblers/ofrak_angr disassemblers/ofrak_capstone; do make -C "${DIR}" develop; done
cd frontend && npm install && make develop && cd ..
from ofrak.
i am doing this on windows is there any specific steps for windows
from ofrak.
@morpheuslord are you running commands from PowerShell, cmd.exe
, or from bash via Cygwin or Windows Subsystem for Linux? Are you using a package manager like Choco or Winget, or no package manager?
We don't officially have OFRAK Windows support yet, although I have gotten it mostly working. There will be some upcoming GitHub issues, fixes, and other documentation related to Windows to be released shortly. In the meantime, there will be a few fixes on this OFRAK on Windows pull request.
from ofrak.
ok did it but still there is an issue
from ofrak.
@morpheuslord I responded to your other comment here, but will copy the advice in this thread as well: run the following to fix the error you're having.
python -m pip uninstall python-magic python-magic-bin
python -m pip install --upgrade python-magic-bin
from ofrak.
Related Issues (20)
- OFRAK dependency keystone-engine not properly installed
- PE file complex block extraction not working with Angr
- Unpack Android OTA update payloads
- Decouple ResourceTreeNode.svelte from the resourceNodeDataMap
- Source install hurdles on WSL2/Ubuntu HOT 1
- Refactor frontend/src for smaller svelte components.
- Concurrent analyses of files with Ghidra backend clobber each other
- mac os install ??? HOT 1
- Add support for password protected zip files HOT 2
- Resource tree counter does not update when string search is applied
- Tests fail when using Python 3.11
- Create root resource from directory HOT 4
- Write symbolic links to disk HOT 5
- pip install for version 3.2.0 fails HOT 1
- Allow users to upload directories as a resource to the OFRAK server
- Confusion between "session_id" and "project_id" in `OfrakProject`
- apktool is_tool_installed() not working correctly. HOT 1
- java is_tool_installed() not working correctly. HOT 2
- Improve CPIO (and other archive) packer/unpacker pairs using `libarchive`
- angr install not working on 3.7 because of z3-solver issue
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 ofrak.