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

When I run bazel run :python_random_agent --define graphics=sdl -- \ --length=10000 --width=640 --height=480 in Ubuntu 18.04, I meet the following error. #213

Closed
VolcanicSnow opened this issue Apr 23, 2021 · 3 comments

Comments

@VolcanicSnow
Copy link

ERROR: /home/fei/lab/BUILD:995:10: C++ compilation of rule '//:deepmind_lab.so' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -MD -MF ... (remaining 83 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
python/dmlab_module.c:26:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
Target //:python_random_agent failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 8.709s, Critical Path: 0.39s
INFO: 6 processes: 5 internal, 1 linux-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

@VolcanicSnow VolcanicSnow changed the title When I run bazel run :python_random_agent --define graphics=sdl -- \ --length=10000 --width=640 --height=480 in a vitual Ubuntu 18.04, I meet the following error. When I run bazel run :python_random_agent --define graphics=sdl -- \ --length=10000 --width=640 --height=480 in Ubuntu 18.04, I meet the following error. Apr 23, 2021
@tkoeppe
Copy link
Collaborator

tkoeppe commented Apr 23, 2021

Please check out the build instructions, and in particular the details of how to adjust your bazel/python.BUILD file. You will most likely need to adjust that file to match your system's libraries. (We don't include Python source code in our hermetic build tree here, but instead expect it to come from the local system.)

@VolcanicSnow
Copy link
Author

VolcanicSnow commented Apr 23, 2021

Please check out the build instructions, and in particular the details of how to adjust your bazel/python.BUILD file. You will most likely need to adjust that file to match your system's libraries. (We don't include Python source code in our hermetic build tree here, but instead expect it to come from the local system.)

Thank you, it's successful.

@tkoeppe
Copy link
Collaborator

tkoeppe commented Apr 23, 2021

Great!

@tkoeppe tkoeppe closed this as completed Apr 23, 2021
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

2 participants