-
Notifications
You must be signed in to change notification settings - Fork 117
Bazel Build Issues #6
Comments
Hello, |
I am facing the same problem. Any solution? |
Ok. I am not familiar with Bazel syntax at all, but after a long hustle and long searching and reading, the following solved the problem Modify the last part of the BUILD file in the light_curve directory: load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") Also in the WORKSPACE file, I updated the ProtoBuf library at the end of the file http_archive( protobuf_deps() |
@jalalirs Above solution worked for |
Just remove cc_api_version |
@jalalirs I did. then it gave numerous other errors.
|
I am facing the same problem, what versions of the packages you are using? |
@zoe4cs |
@zoe4cs Any luck here? |
I will fork the project tonight and commit my changes. I don’t remember all the modifications I made but lets see if my version works with you. |
@jalalirs Ohk sure, thanks :) |
I guess versions of bazel and TensorFlow causing problem, but I haven't find a solution . |
So here is what I did to make it run. First, I ran it over a tensorflow image from docker hub. I used this tag 2.0.1-gpu-py3-jupyter https://hub.docker.com/r/tensorflow/tensorflow In the container, I installed bazel, cloned this repository and did the following modifications Modify the last part of the BUILD file in the light_curve directory: load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") Also in the WORKSPACE file, I updated the ProtoBuf library at the end of the file http_archive( I ran the test with the following command bazel test astronet/... astrowavenet/... light_curve/... tf_util/... third_party/... --test_arg=--test_srcdir=/home/exoplanet-ml/exoplanet-ml/ https://pbs.twimg.com/media/EOGoWSOXUAUy0Yj?format=jpg&name=large |
@jalalirs They were all version issues. tensorflow and tensorflow_probability.
Still two test cases are failing as below. Don't know why. From logs I can see -
|
You need to pass the data source by adding the following parameter to the run command --test_arg=--test_srcdir= |
@jalalirs Thanks a lot for that but still after using
It gives errors as
|
Probably you need tensorflow 2 |
@jalalirs But with TensorFlow 2 lots of other things are breaking :( |
@jalalirs Tensorflow 2.0 is not supported as this project code uses.
and tf.contrib is deprecated in tf 2. Can you please check which version of tensorflow are you using? |
You are actually right, I am using 1.15 |
I got it correct. It was all version issues.
Above versions passes all tests |
@jalalirs Did the steps worked for you till the end as mentioned in this For me it is giving lots of exceptions in Prediction step which is the last step:
is there any code change? |
@ritwik12 no I just ran the test command. After that I started using some of the modules directly. I am working on it intermittently, so I didn’t do any training yet. I am an amateur in the astronomy field and just starting to get my hand dirty with its data. Yet, for this specific project, I am planning to skip all the bazel thing and build the code using direct python calls. |
Ohk got it. Thanks a lot :) @jalalirs |
leaving a modified version here for people who happen to stumble upon this thread. I've linked the docker image at the top of the readme that I used to get it to work with my AMD Vega 56 and ROCm. Make sure to also follow the ROCm docker install guide If you have issues with rocm-dkms installing, switch to and older kernel version. I was running 5.8 (on Ubuntu 20 LTS which is the recommended distro) and installing 5.6 fixed the issue. |
Following the AstroNet readme as much as possible I have been running into some major problems in the Bazel building phase.
Bazel Version: 0.24.1
TensorFlow Version: 1.14.0
When running: bazel test astronet/... astrowavenet/... light_curve/... tf_util/... third_party/...
ERROR: /private/var/tmp/_bazel_rathjo14/d5d70ed4975039d87f5635d66a43ed87/external/com_google_protobuf/protobuf_deps.bzl:18:9: no such package '': BUILD file not found in any of the following directories.
ERROR: Analysis of target '//light_curve:light_curve_py_pb2' failed; build aborted: Analysis failed
INFO: Elapsed time: 8.122s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (23 packages loaded, 158 targets configured)
FAILED: Build did NOT complete successfully (23 packages loaded, 158 targets configured)
Fetching @local_config_cc_toolchains; fetching
Looking into the file mentioned in the error here is what I see (lines 17:23):
The text was updated successfully, but these errors were encountered: