qark icon indicating copy to clipboard operation
qark copied to clipboard

exec command failed -- bug report

Open yougar0 opened this issue 6 years ago • 6 comments

below is error info:

A:\android>qark --apk mojitianqi_7070802.apk Decompiling... Error running dex2jar command: b'C:\\Users\\yougar\\AppData\\Roaming\\ Python\\Python36\\site-packages\\qark\\decompiler\\..\\lib\\dex2ja r-2.0\\d2j-dex2jar.bat A:\\android\\build\\qark\\classes.dex -o A:\\ android\\build\\qark\\mojitianqi_7070802.jar' Traceback (most recent call last): File "C:\Users\yougar\AppData\Roaming\Python\Python36\site-packages\qark\decom piler\decompiler.py", line 217, in _run_dex2jar ret_code = subprocess.call(shlex.split(dex2jar_command)) File "c:\program files\python36\lib\shlex.py", line 305, in split return list(lex) File "c:\program files\python36\lib\shlex.py", line 295, in next token = self.get_token() File "c:\program files\python36\lib\shlex.py", line 105, in get_token raw = self.read_token() File "c:\program files\python36\lib\shlex.py", line 136, in read_token nextchar = self.instream.read(1) AttributeError: 'bytes' object has no attribute 'read' Error running dex2jar command

I change File "C:\Users\yougar\AppData\Roaming\Python\Python36\site-packages\qark\decom piler\decompiler.py", line 217, in _run_dex2jar ret_code = subprocess.call(shlex.split(dex2jar_command)) to ret_code = subprocess.call(shlex.split(dex2jar_command.decode(encoding="utf-8")))

then fixes it.

yougar0 avatar Dec 17 '18 10:12 yougar0

I faced this is issue in Windows, though in Ubuntu there was no such error

krviolent avatar Sep 20 '19 10:09 krviolent

Is this Issue solved? I am facing the same issue

ibrahimbroachwala avatar Dec 05 '19 06:12 ibrahimbroachwala

same issue

XhstormR avatar Jan 01 '20 15:01 XhstormR

still having this same issue on windows.

GwenTheKween avatar Oct 09 '20 11:10 GwenTheKween

i have the same issue on Windows 10 with Python 3.9

sagarkm avatar Nov 19 '21 09:11 sagarkm

i facing the same issue can't be able to decompile. i using python 3.10 o n window 10,

fawadbutt avatar Feb 26 '24 11:02 fawadbutt