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

The system cannot find the file specified #4

Closed
rekmolly opened this issue Mar 16, 2020 · 5 comments
Closed

The system cannot find the file specified #4

rekmolly opened this issue Mar 16, 2020 · 5 comments

Comments

@rekmolly
Copy link

python apkdiff.py -o test xxx.apk xxx2.apk I get next error:

Traceback (most recent call last): File "apkdiff.py", line 145, in <module> main() File "apkdiff.py", line 64, in main apktoolit(args.apk1, at1) File "apkdiff.py", line 81, in apktoolit call(["apktool", "d", "--no-debug-info", "-o", dir, file], stdout=open(os.devnull, 'w'), stderr=STDOUT) File "\Programs\Python\Python38-32\lib\subprocess.py", line 340, in call with Popen(*popenargs, **kwargs) as p: File "\Programs\Python\Python38-32\lib\subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

What is the reason for this?

@xurixin
Copy link

xurixin commented Apr 10, 2020

Traceback (most recent call last):
File "apkdiff.py", line 145, in
main()
File "apkdiff.py", line 64, in main
apktoolit(args.apk1, at1)
File "apkdiff.py", line 81, in apktoolit
call(["apktool", "d", "--no-debug-info", "-o", dir, file], stdout=open(os.devnull, 'w'), stderr=STDOUT)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

@Kladdkaka
Copy link

if you install apktool using https://github.com/lukesampson/scoop/, then you can change the string "apktool" to "apktool.cmd" here

call(["apktool", "d", "--no-debug-info", "-o", dir, file], stdout=open(os.devnull, 'w'), stderr=STDOUT)

And it will work :)

@umkhanqta
Copy link

I am using ubuntu and still getting same error
i have put
apktool_2.4.0.jar
in the same directory where apkdiff.py is present

@umkhanqta
Copy link

getting error

Traceback (most recent call last):
File "apkdiff.py", line 146, in
main()
File "apkdiff.py", line 67, in main
compare(at1, at2)
File "apkdiff.py", line 87, in compare
report_full_closure(compared)
File "apkdiff.py", line 91, in report_full_closure
print(list(self.diff_files))
File "/usr/lib/python2.7/filecmp.py", line 238, in getattr
self.methodmapattr
File "/usr/lib/python2.7/filecmp.py", line 174, in phase3
xx = cmpfiles(self.left, self.right, self.common_files)
File "/usr/lib/python2.7/filecmp.py", line 238, in getattr
self.methodmapattr
File "/usr/lib/python2.7/filecmp.py", line 143, in phase2
for x in self.common:
File "/usr/lib/python2.7/filecmp.py", line 238, in getattr
self.methodmapattr
File "/usr/lib/python2.7/filecmp.py", line 132, in phase1
a = dict(izip(imap(os.path.normcase, self.left_list), self.left_list))
File "/usr/lib/python2.7/filecmp.py", line 238, in getattr
self.methodmapattr
File "/usr/lib/python2.7/filecmp.py", line 124, in phase0
self.left_list = _filter(os.listdir(self.left),
OSError: [Errno 2] No such file or directory: './myoutput/1/at/'

@umkhanqta
Copy link

if you install apktool using https://github.com/lukesampson/scoop/, then you can change the string "apktool" to "apktool.cmd" here

call(["apktool", "d", "--no-debug-info", "-o", dir, file], stdout=open(os.devnull, 'w'), stderr=STDOUT)

And it will work :)

need to change
call(["apktool", "d", "--no-debug-info", "-o", dir, file], stdout=open(os.devnull, 'w'), stderr=STDOUT, shell=True)
for ubuntu

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

4 participants