pyaxmlparser icon indicating copy to clipboard operation
pyaxmlparser copied to clipboard

show "Failed to get the attribute with namespace" when try to decode HKnews.apk

Open bs111 opened this issue 5 years ago • 9 comments

win 10 pro 1903 python 3.7.4 pyaxmlparser-0.3.20 the apk please see to HKNews2.zip

from pyaxmlparser import APK apk=APK(r"G:\MyPython\Studty\1.3处理apk获取apk的xml格式的图标\HKNews2.apk") Failed to get the attribute with namespace Failed to get the attribute with namespace Failed to get the attribute with namespace Failed to get the attribute with namespace Failed to get the attribute with namespace

os.chdir(r"G:\MyPython\Studty\1.3处理apk获取apk的xml格式的图标") apk=APK("HKNews2.apk") Failed to get the attribute with namespace Failed to get the attribute with namespace Failed to get the attribute with namespace Failed to get the attribute with namespace Failed to get the attribute with namespace

bs111 avatar Sep 29 '19 09:09 bs111

+1

zhangao0086 avatar Nov 13 '19 10:11 zhangao0086

I’ll have a look at this today 👍

subho007 avatar Nov 14 '19 06:11 subho007

Same problem..

kyak avatar Dec 27 '19 15:12 kyak

Ok, so this happens with each and every apk. Might have to do with my versions of dependencies: python-lxml is 4.4.2 and python-click is 7.0.

This, in turn, breaks gplaycli with --update switch.

kyak avatar Jan 13 '20 18:01 kyak

I have the same problem

AyanPerez avatar Apr 26 '20 04:04 AyanPerez

Same problem here. I ran pdb and found that the warning message is emitted by the get_value_from_tag function in core.py when it tries to get one of the following attributes: maxSdkVersion, description, permissionGroup, label, or protectionLevel However, sometimes it is successful in getting those attributes, and no warning message is emitted.

vapniks avatar May 01 '20 14:05 vapniks

Is there anything new regarding this issue? Pyaxmlparser still manages to get the data from the APK perfectly fine on my case, but it would be nice to know the root cause of this problem and suppress the warnings without any hacky ways.

Pnikanti avatar Sep 16 '20 09:09 Pnikanti

@kyak is pyaxmlparser still a problem ?

subho007 avatar May 17 '21 20:05 subho007

@kyak is pyaxmlparser still a problem ?

No idea. I'm not using these anymore.

kyak avatar May 20 '21 02:05 kyak

The latest version of pyaxmlparser fixes all of these 👍

subho007 avatar Dec 05 '23 13:12 subho007