Comments (2)
Hi,
Few things here :
- In order to import a module, you need to use the
add module
feature on the web interface (or you need to usedo_clone()
in a python script...see install.py for details). Editing the file structure directly is not supported, and will not work - This is because some additional operations are being carried out when cloning/updating a repo. More specifically:
- After the clone/pull, FAME will try to (re)import all python files of the repo, looking for instances of
Module
classes in them. - If it finds any, it will register it in the database. This will cause the module to appear on the web interface, to be considered by the worker, etc...
- Note that python files that are invalid (syntax error, import error, etc..) are silently ignored. This is the reason why most modules have try/except blocks when importing external dependencies (the search for
Module
classes is done before installingrequirements.txt
) - The code carrying out the imports/search of Module classes can be found here.
- After the clone/pull, FAME will try to (re)import all python files of the repo, looking for instances of
What likely happens is that your python file yara_proc.py
has an error, and that FAME is not able to import it (why? I can't tell without seeing your python module).
You could possibly tune the try/except
in module_dispatcher to reveal & analyse the error?
This issue make me think of a new feature to be added : to display a warning message on the web interface when FAME is not being able to import a python file.
Also, regarding troubleshoot.py
: indeed, thanks for the report. This will be corrected.
from fame.
Hey, thanks for the swift reply!
that was indeed the problem it relied on a lib that needed installing, I wrongly assumed the requirements would be processed before trying to run it.
I can now see the module in the UI ... it still doesn't work but I can figure that out from here :)
from fame.
Related Issues (20)
- Error at install due to the version of Flask HOT 4
- Build fail due to Flask-Login dependency HOT 1
- error when i try to enable a module HOT 1
- Filetype modules example
- remote worker : Race condition when a remote worker is retrieving a file to analyze
- Errror processing extracted files when using a remote worker
- [Docker] `dockerd` sometimes fail to start inside the worker
- Allow FAME instances to be reachable from multiple URLs
- Errors when leading and trailing spaces are present in user email
- Installation fails with Python3.10.6 - AttributeError: module 'collections' has no attribute 'Iterable' HOT 1
- nginx not serving pictures of FAME after fresh install?! HOT 2
- Docker : Python: error libcrypto.so.1.1 HOT 13
- `worker.py` is stuck on the run screen. HOT 1
- chaining modules (peepdf and url_preview) ? HOT 2
- API Enhancements HOT 1
- API hash case insensitive HOT 3
- Password reset HOT 2
- Magic on extracted files HOT 1
- Error updating via utils/run.sh utils/update.py 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 fame.