map-reader icon indicating copy to clipboard operation
map-reader copied to clipboard

Error compiling when trying to train

Open behroozmrd47 opened this issue 6 years ago • 4 comments

I am trying to run your code on my local machine with Ubuntu 18.04, GPU-Tensorflow. I can run the Deepmind Lab perfectly, but in case of your code, I have encountering following effect when trying to train the agent:

neuwong@neuwong-PC:~/map-reader-master/lab$ bazel run //mapreader:train --define headless=osmesa
INFO: Invocation ID: 9d58fab2-9b50-4449-8bfa-5d9cc4450742
ERROR: /home/neuwong/map-reader-master/lab/BUILD:941:1: no such package '@zlib_archive//': The native new_http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule. and referenced by '//:libdmlab.so'
ERROR: Analysis of target '//mapreader:train' failed; build aborted: no such package '@zlib_archive//': The native new_http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 0.077s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 12 targets con\
FAILED: Build did NOT complete successfully (0 packages loaded, 12 targets con\
figured)
    currently loading: q3map2

Any idea what is the problem and how can I solve it. Thanks for your help in advance.

behroozmrd47 avatar Jan 17 '19 17:01 behroozmrd47

Did you install deepmind lab separately or did you use the version I have in my repo? A newer version of Deepmind lab might be inconsistent with my code

OliverRichter avatar Jan 17 '19 17:01 OliverRichter

I installed it separately too. But the above code is being ran from your depo downloaded to my local machine. So Deepmind lap and your repo are saved in two different and distinct folders.

behroozmrd47 avatar Jan 17 '19 17:01 behroozmrd47

The problem seems to be with the build and a missing package. Have you installed zlib? and have you tried an older version of bazel? I recommend googleing the issue, since it does not seem to be an issue with my part of the code...

OliverRichter avatar Jan 17 '19 17:01 OliverRichter

Got you. I will try debugging it. I will keep you posted if regarding the problem and debugging it.

behroozmrd47 avatar Jan 17 '19 17:01 behroozmrd47