pralab / secml_malware

Create adversarial attacks against machine learning Windows malware detectors
https://secml-malware.readthedocs.io/
GNU General Public License v3.0
203 stars 46 forks source link

undefined symbol: PySlice_Unpack #12

Closed vietvo89 closed 3 years ago

vietvo89 commented 3 years ago

Hi

I followed your instruction to create new virtual environment and pip install -r requirements.txt. But when I ran your notebook, I got an error like below. Can you help me address it?

ImportError Traceback (most recent call last)

in () 1 import os 2 import magic ----> 3 import secml_malware 4 from secml.array import CArray 5 from secml_malware.models.malconv import MalConv ... ImportError: /home/viet/anaconda3/envs/pesidious_secml/lib/python3.6/site-packages/torch/lib/libtorch_python.so: undefined symbol: PySlice_Unpack
vietvo89 commented 3 years ago

When I did "pip install secml_malware" I got another issue:

ERROR: Could not find a version that satisfies the requirement secml_malware ERROR: No matching distribution found for secml_malware

zangobot commented 3 years ago

Hello! Did you try with Python 3.7? I think I did not tested with py36. Because it seems it is a PyTorch issue on Python 3.6 (and the error should point that also).

zangobot commented 3 years ago

When I did "pip install secml_malware" I got another issue:

ERROR: Could not find a version that satisfies the requirement secml_malware ERROR: No matching distribution found for secml_malware

My bad, on pypi is ‘secml-malware‘! Fixed!

vietvo89 commented 3 years ago

Indeed, Thank @zangobot . But it seems that you have not corrected your instructions yet.

zangobot commented 3 years ago

As far as I checked, both pypi and GitHub readme has the pip install secml-malware command. Which instructions you mean?