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

Encoding issue in dump.py #192

Closed
rbk0 opened this issue Jun 16, 2016 · 2 comments
Closed

Encoding issue in dump.py #192

rbk0 opened this issue Jun 16, 2016 · 2 comments

Comments

@rbk0
Copy link

rbk0 commented Jun 16, 2016

I tried to get only the tags of the views with "dump -g" and got following error:

Exception in view=View[ class=android.widget.FrameLayout id= ] parent=None: TypeError:coercing to Unicode: need string or buffer, NoneType found
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/androidviewclient-11.5.8-py2.7.egg/com/dtmilano/android/viewclient.py", line 2731, in traverseShowClassIdAndText
_str += eis
TypeError: coercing to Unicode: need string or buffer, NoneType found

I tested multiple apps and it was always the same.

dump -a works and shows all the tags.

The android language is set to German, if that is of any help.
I didn't find a solution until now. Maybe you have any idea?

dtmilano added a commit that referenced this issue Jun 16, 2016
@dtmilano
Copy link
Owner

Try 11.5.9 it should fix your problem.

@rbk0
Copy link
Author

rbk0 commented Jun 17, 2016

Thanks for the quick response.

I updated it and there's no error anymore.

I just wonder where the difference between dump -a and dump -g is.
It appears to be the same ouput and the information about the tags is missing.

@dtmilano dtmilano closed this as completed Dec 1, 2017
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

2 participants