Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kartik-binzade opened this issue Jan 28, 2023 · 10 comments

Comments

@kartik-binzade
Copy link

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
([email protected])

AttributeError

@gxenos
Copy link

gxenos commented Jan 28, 2023

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

@kartik-binzade
Copy link
Author

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

@gxenos
Copy link

gxenos commented Jan 28, 2023

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

@kartik-binzade
Copy link
Author

kartik-binzade commented Jan 28, 2023

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
Copy link
Author

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
Copy link

gxenos commented Jan 28, 2023

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

@gxenos
Copy link

gxenos commented Jan 28, 2023

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

@kartik-binzade
Copy link
Author

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
Copy link

gxenos commented Jan 28, 2023

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
Copy link
Author

okay, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants