Unable to set up python2 for specific App version : 0.11-beta-8c81c98d8b #5594
Answered
by
adhiamboperes
whyash8
asked this question in
Q&A (Installation)
-
Operating SystemUbuntu Android Studio Versionandroid-studio-2021.1.1.23-linux RAM size8 gb ram Free disk space25.6 gb Which step are you stuck on?i was trying to build bazel for that specific application version but getting the error below . Error LogERROR: /home/yash-sharma/.cache/bazel/_bazel_yash-sharma/be3345fe8849b7df3b0505581d7f3bab/external/maven/BUILD:1388:11: AarResourcesExtractor external/maven/_aar/unzipped/resources/androidx_cardview_cardview failed: (Exit 1): aar_resources_extractor failed: error executing command bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor --input_aar ... (remaining 9 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox aar_resources_extractor failed: error executing command bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor --input_aar ... (remaining 9 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
Traceback (most recent call last):
File "/home/yash-sharma/.cache/bazel/_bazel_yash-sharma/be3345fe8849b7df3b0505581d7f3bab/sandbox/processwrapper-sandbox/25/execroot/__main__/bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor.runfiles/bazel_tools/tools/android/aar_resources_extractor.py", line 35, in <module>
from absl import app
File "/home/yash-sharma/.cache/bazel/_bazel_yash-sharma/be3345fe8849b7df3b0505581d7f3bab/sandbox/processwrapper-sandbox/25/execroot/__main__/bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor.runfiles/bazel_tools/third_party/py/abseil/absl/app.py", line 38, in <module>
from absl import flags
File "/home/yash-sharma/.cache/bazel/_bazel_yash-sharma/be3345fe8849b7df3b0505581d7f3bab/sandbox/processwrapper-sandbox/25/execroot/__main__/bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor.runfiles/bazel_tools/third_party/py/abseil/absl/flags/__init__.py", line 40, in <module>
from absl.flags import _argument_parser
File "/home/yash-sharma/.cache/bazel/_bazel_yash-sharma/be3345fe8849b7df3b0505581d7f3bab/sandbox/processwrapper-sandbox/25/execroot/__main__/bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor.runfiles/bazel_tools/third_party/py/abseil/absl/flags/_argument_parser.py", line 29, in <module>
from absl.flags import _helpers
File "/home/yash-sharma/.cache/bazel/_bazel_yash-sharma/be3345fe8849b7df3b0505581d7f3bab/sandbox/processwrapper-sandbox/25/execroot/__main__/bazel-out/host/bin/external/bazel_tools/tools/android/aar_resources_extractor.runfiles/bazel_tools/third_party/py/abseil/absl/flags/_helpers.py", line 38, in <module>
from six.moves import range # pylint: disable=redefined-builtin
^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'six.moves'
----------------
Note: The failure of target @bazel_tools//tools/android:aar_resources_extractor (with exit code 1) may have been caused by the fact that it is a Python 2 program that was built in the host configuration, which uses Python 3. You can change the host configuration (for the entire build) to instead use Python 2 by setting --host_force_python=PY2.
If this error started occurring in Bazel 0.27 and later, it may be because the Python toolchain now enforces that targets analyzed as PY2 and PY3 run under a Python 2 and Python 3 interpreter, respectively. See https://github.com/bazelbuild/bazel/issues/7899 for more information.
----------------
Target //:oppia failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.240s, Critical Path: 1.09s
INFO: 20 processes: 19 internal, 1 processwrapper-sandbox.
FAILED: Build did NOT complete successfully Approaches already used to resolve the issuesudo apt install python2 Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Answered by
adhiamboperes
Dec 13, 2024
Replies: 3 comments 3 replies
-
@adhiamboperes please help! |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
whyash8
-
thanks a lot it worked ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@whyash8, might this or this help?