Exodus-Privacy / exodus-core

Core functionality of εxodus
GNU Affero General Public License v3.0
18 stars 17 forks source link

TypeError: object of type 'generator' has no len() #10

Closed Gu1nness closed 5 years ago

Gu1nness commented 5 years ago

From exodus-standalone, but it belongs here :

I installed exodus-standalone within venv and get

`ile "exodus_analyze.py", line 59, in
analysis.print_apk_infos()
File "exodus-standalone/venv/lib/python3.7/site-packages/exodus_core/analysis/static_analysis.py", line 483, in print_apk_infos
print('- App libraries: %s' % len(libraries))
TypeError: object of type 'generator' has no len()``

Commenting the three lines makes it run again, but then of course no libraries are shown ;-)
Gu1nness commented 5 years ago

It seems to be an issue new with python3.7 Before, get_libraries() returned a list object, but now it is a generator.