-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
python resource_extractor.py <input jar> <output zip> | ||
""" | ||
|
||
from __future__ import print_function | ||
|
||
import sys | ||
import zipfile | ||
|
||
|
@@ -95,7 +97,7 @@ def ExtractResources(input_jar, output_zip): | |
|
||
def main(argv): | ||
if len(argv) != 3: | ||
print USAGE | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
akirabaruah
Author
Contributor
|
||
print(USAGE) | ||
sys.exit(1) | ||
with zipfile.ZipFile(argv[1], 'r') as input_jar: | ||
with zipfile.ZipFile(argv[2], 'w') as output_zip: | ||
|
1 comment
on commit 408ea37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excuse me, i meet a problem when i build tensorflow_android_demo:
/tools/android/resource_extractor.py", line 98
print USAGE
SyntaxError: Missing parentheses in call to 'print'
The script need and assumes the default /usr/bin/python is linked to python 2.x which in my case is not,
It is an auto generated script. Though i correct the script, it will report the same error in the next build. I don't know where to change the suitable python path and how to solve the problem. You say that update tools and modules, and i don't understand which tool or module to update. I have updated the bazel to the latest version,but it's useless.
I also tried to change the python path in the build file and bazel.rc, it was also useless.
I hope to get your answer as soon as possible. Thank you very much.
Excuse me, i meet a problem when i build tensorflow_android_demo:
/tools/android/resource_extractor.py", line 98
print USAGE
SyntaxError: Missing parentheses in call to 'print'
The script need and assumes the default /usr/bin/python is linked to python 2.x which in my case is not,
It is an auto generated script. Though i correct the script, it will report the same error in the next build. I don't know where to change the suitable python path and how to solve the problem. You say that update tools and modules, and i don't understand which tool or module to update. I have updated the bazel to the latest version,but it's useless.
I also tried to change the python path in the build file and bazel.rc, it was also useless.
I hope to get your answer as soon as possible. Thank you very much.