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

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

Closed
Gu1nness opened this issue Sep 5, 2018 · 1 comment
Closed

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

Gu1nness opened this issue Sep 5, 2018 · 1 comment
Assignees

Comments

@Gu1nness
Copy link
Contributor

Gu1nness commented Sep 5, 2018

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

Gu1nness commented Sep 5, 2018

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

@Gu1nness Gu1nness self-assigned this Sep 5, 2018
Gu1nness added a commit to Gu1nness/exodus-core that referenced this issue Sep 5, 2018
This information is useless and breaks compatibility between python<3.7
and python3.7

Fixes Exodus-Privacy#10
Gu1nness added a commit that referenced this issue Sep 5, 2018
This information is useless and breaks compatibility between python<3.7
and python3.7

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

No branches or pull requests

1 participant