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

ERROR: Could not complete analysis. #39

Closed
GianfrancoMS opened this issue Nov 11, 2021 · 0 comments
Closed

ERROR: Could not complete analysis. #39

GianfrancoMS opened this issue Nov 11, 2021 · 0 comments

Comments

@GianfrancoMS
Copy link

GianfrancoMS commented Nov 11, 2021

Hi, I'm trying to run this script on my project (muli-module setup) and I am having this problem:

Processing:
[14:52:52] rappi - packaged resources processed!                       app.py:31
ERROR:root:Could not complete analysis.
Traceback (most recent call last):
  File "/Users/usuario/.pyenv/versions/3.9.7/lib/python3.9/site-packages/android_resources_checker/entrypoint.py", line 81, in launch
    application.execute(app, client, check, delete)
  File "/Users/usuario/.pyenv/versions/3.9.7/lib/python3.9/site-packages/android_resources_checker/app.py", line 33, in execute
    usage_references = self.resources_fetcher.fetch_used_resources(app_path)
  File "/Users/usuario/.pyenv/versions/3.9.7/lib/python3.9/site-packages/android_resources_checker/resources.py", line 73, in fetch_used_resources
    styles_references = self._style_usages_in_xml(filepath)
  File "/Users/usuario/.pyenv/versions/3.9.7/lib/python3.9/site-packages/android_resources_checker/resources.py", line 113, in _style_usages_in_xml
    for line in self.files_handler.file_content(filepath):
  File "/Users/usuario/.pyenv/versions/3.9.7/lib/python3.9/site-packages/android_resources_checker/files.py", line 33, in file_content
    return open(filepath).readlines()
  File "/Users/usuario/.pyenv/versions/3.9.7/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 1: invalid continuation byte

Python version: 3.9.7
OS: macOS Monterrey 12.0.1

@GianfrancoMS GianfrancoMS changed the title ERROR:root:Could not complete analysis. ERROR: Could not complete analysis. Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant