Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

AttributeError: 'EncodedMethod' object has no attribute 'is_external' #2

Open
Acwingzjk opened this issue Jul 12, 2022 · 3 comments
Open

Comments

@Acwingzjk
Copy link

Hello,Thanks for your hard work,I have a problem when i run process_dataset.py from android-malware-detection
if node.is_external():
AttributeError: 'EncodedMethod' object has no attribute 'is_external'
I would appreciate it if you could reply to me!

@vinayakakv
Copy link
Owner

The EncodedMethod comes from the package androguard -- https://androguard.readthedocs.io/en/v3.3.5/api/androguard.core.bytecodes.html#androguard.core.bytecodes.dvm.EncodedMethod. As per the latest version, there is no is_external() method there.

The thing was that I forget to pin its version in requirements.txt 😅. Seems like you need build it from its master branch since it contains is_external() method.

If you get it working, please feel free to open a PR updating the README.md mentioning this as a note.

@Acwingzjk
Copy link
Author

Thank you for your reply. I will try it according to your guidance. I am a beginner and may reply slowly. Thank you for answering my doubts.

@kimnhuvu
Copy link

You must install androguard version 3.4.0a1 then you can fix this issue

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

No branches or pull requests

3 participants