pkumza / LibRadar

LibRadar - A detecting tool for 3rd-party libraries in Android apps.
Apache License 2.0
258 stars 51 forks source link

ImportError: No module named LibRadar.libradar #22

Closed singhaniashrinkhala closed 7 years ago

singhaniashrinkhala commented 7 years ago

I have successfully installed LibRadar.

My script looks like this:

from LibRadar.libradar import LibRadar
from collections import defaultdict
output = defaultdict(list)

if __name__ == '__main__':
        for dirname, dirnames, filenames in os.walk('..\download'):
.........

However, when I try running it, I get this:

Traceback (most recent call last): File "script.py", line 4, in from LibRadar.libradar import LibRadar ImportError: No module named LibRadar.libradar

Not sure why.

pkumza commented 7 years ago

Maybe you could try the source code in release of version 2.1 first

On 03/13/2017 08:14, fringi wrote:

I have successfully installed LibRadar.

My script looks like this:

from LibRadar.libradar import LibRadar from collections import defaultdict output = defaultdict(list)

if name == 'main': for dirname, dirnames, filenames in os.walk('..\download'): .........

However, when I try running it, I get this:

Traceback (most recent call last): File "script.py", line 4, in from LibRadar.libradar import LibRadar ImportError: No module named LibRadar.libradar

Not sure why.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

singhaniashrinkhala commented 7 years ago

i didn't get you

pkumza commented 7 years ago

Github has a release tab for this repo

发自网易邮箱大师 On 03/13/2017 08:40, fringi wrote:

i didn't get you

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

pkumza commented 7 years ago

Oh, I know what you got. You tried use LibRadar as a module.

if you want to use 'from LibRadar.libradar import LibRadar', you'd better know how to use 'from future import absolute_import' first.