elastic / ember

Elastic Malware Benchmark for Empowering Researchers
Other
948 stars 277 forks source link

AttributeError: module 'ember' has no attribute 'create_vectorized_features' #101

Open kartik-binzade opened 1 year ago

kartik-binzade commented 1 year ago

I'm working on a project of PE-Malware-Classification-with-Ember. using dataset of ember_2017_v2.

While training the 1st model I got this error and i don't have idea how to solve this. If there is anyone who can help me please guide me through this error. my project deadline is 30-Jan-23 if possible please try to solve it before.

Thank you. Kartik (kartikbinzade@gmail.com)

AttributeError

gxenos commented 1 year ago

Hi, how did you install ember? Maybe run dir(ember) as a check?

kartik-binzade commented 1 year ago

I clone the ember. I downloaded the dataset and decompress a .bz2 file then extract from tar file

gxenos commented 1 year ago

You have to follow the installation instructions first: https://github.com/elastic/ember#install-after-cloning-the-ember-repository

kartik-binzade commented 1 year ago

okay the pip cmd's or conda.

pip install -r requirements.txt python setup.py install

and then !pip install git+https://github.com/elastic/ember?

kartik-binzade commented 1 year ago

before this Error I got the build lief error: ERROR: Failed building wheel for lief No metadata found in /usr/local/lib/python3.8/dist-packages

error: legacy-install-failure

× Encountered error while trying to install package. ╰─> lief

gxenos commented 1 year ago

I think conda commands work out of the box. So maybe do it that way? You will have to install conda first.

gxenos commented 1 year ago

And maybe create a new environment first to make sure your ember installation is separated from everything else. A quick reference

kartik-binzade commented 1 year ago

I was working in google colab's jupyter notebook. So should I install Anaconda , set environment & lunch Jupyter Lab I did that too but some commands doesn't work.

if you have another reference related to this please attach link in the comment.

gxenos commented 1 year ago

I think the conda commands should work in a fresh environment. My environment is using python 3.8 so maybe specify that when creating the conda env. Also make sure jupyter is using the correct conda env.

kartik-binzade commented 1 year ago

okay, thank you.