Comments (5)
Thanks for reporting your issue. I notice you're on Ubuntu 16.04. I don't know what version of GCC you're using, but I believe the latest version provided with that release of Ubuntu is GCC-5.4, which was released in June 2016. This might be too old to compile the riegeli dependency.
Could you double check your GCC version with gcc --version
and try compiling with a more recent version of GCC or Clang? You could do this either by installing a new version in your current VM, or by using a more recent version of Ubuntu.
from code_contests.
@jtkeeling I am also facing a similar issue:
$ ~/Desktop/CodeGen/bazel run -c opt :print_names_and_sources ~/Desktop/CodeGen/dm-code_contests/code_contests_test.riegeli
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: Rule 'com_github_grpc_grpc' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "96b73272eadc01afb5fb45b92b408c47e4387274", shallow_since = "1624063996 -0700" and dropping ["tag"]
DEBUG: Repository com_github_grpc_grpc instantiated at:
C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:4:15: in <toplevel>
Repository rule git_repository defined at:
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
Analyzing: target //:print_names_and_sources (1 packages loaded, 0 targets configured)
Analyzing: target //:print_names_and_sources (32 packages loaded, 117 targets configured)
Analyzing: target //:print_names_and_sources (38 packages loaded, 177 targets configured)
Analyzing: target //:print_names_and_sources (38 packages loaded, 177 targets configured)
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97", shallow_since = "1641866895 -0800" and dropping ["tag"]
DEBUG: Repository com_google_protobuf instantiated at:
C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:22:15: in <toplevel>
Repository rule git_repository defined at:
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
Analyzing: target //:print_names_and_sources (38 packages loaded, 177 targets configured)
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "76ef44fdb8aaa8d5c607721ffe1b1cbf1e8f08dd", shallow_since = "1635214215 -0700" and dropping ["tag"]
DEBUG: Repository rules_python instantiated at:
C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:14:15: in <toplevel>
Repository rule git_repository defined at:
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
INFO: Repository local_config_python instantiated at:
C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:12:10: in <toplevel>
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/bazel/grpc_deps.bzl:414:21: in grpc_deps
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/bazel/grpc_python_deps.bzl:43:21: in grpc_python_deps
Repository rule python_configure defined at:
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl:365:35: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_python':
Traceback (most recent call last):
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 347, column 35, in _python_autoconf_impl
_create_single_version_package(
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 316, column 42, in _create_single_version_package
python_include = _normalize_path(python_include)
Error: local variable 'python_include' is referenced before assignment.
ERROR: C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:12:10: fetching python_configure rule //external:local_config_python: Traceback (most recent call last):
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 347, column 35, in _python_autoconf_impl
_create_single_version_package(
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 316, column 42, in _create_single_version_package
python_include = _normalize_path(python_include)
Error: local variable 'python_include' is referenced before assignment.
ERROR: C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_google_riegeli/python/riegeli/records/BUILD:54:13: @com_google_riegeli//python/riegeli/records:record_position_cc depends on @local_config_python//:python_headers in repository @local_config_python which failed to fetch. no such package '@local_config_python//': local variable 'python_include' is referenced before assignment.
ERROR: Analysis of target '//:print_names_and_sources' failed; build aborted:
INFO: Elapsed time: 28.900s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (45 packages loaded, 186 targets configured)
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (45 packages loaded, 186 targets configured)
It would be really helpful if you could give me some insights about how to proceed from here.
from code_contests.
Hi ayush1801.
This is a distinct issue. You might want to raise a new issue.
But looking at https://github.com/grpc/grpc/blob/master/third_party/py/python_configure.bzl#L313, the error is that python_include
is not set.
From reading the source code here, it looks like this will happen on Windows machines that do not have Python2 installed. Whilst Python2 is not actually a requirement of code_contests, this is happening in our indirect GRPC dependency over which we don't have much control.
I would recommend installing Python2 and seeing if this fixes your problem.
from code_contests.
Hi @jtkeeling!
Thanks for the suggestion, however similar error is coming after installing python 2.7.
$ ~/Desktop/CodeGen/bazel run -c opt :print_names_and_sources ~/Desktop/CodeGen/dm-code_contests/code_contests_test.riegeli
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Analyzing: target //:print_names_and_sources (1 packages loaded, 0 targets configured)
INFO: Repository local_config_python instantiated at:
C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:12:10: in <toplevel>
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/bazel/grpc_deps.bzl:414:21: in grpc_deps
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/bazel/grpc_python_deps.bzl:43:21: in grpc_python_deps
Repository rule python_configure defined at:
C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl:365:35: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_python':
Traceback (most recent call last):
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 347, column 35, in _python_autoconf_impl
_create_single_version_package(
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 316, column 42, in _create_single_version_package
python_include = _normalize_path(python_include)
Error: local variable 'python_include' is referenced before assignment.
ERROR: C:/users/t-agrawala/desktop/codegen/code_contests/WORKSPACE:12:10: fetching python_configure rule //external:local_config_python: Traceback (most recent call last):
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 347, column 35, in _python_autoconf_impl
_create_single_version_package(
File "C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 316, column 42, in _create_single_version_package
python_include = _normalize_path(python_include)
Error: local variable 'python_include' is referenced before assignment.
ERROR: C:/users/t-agrawala/_bazel_t-agrawala/2bxpaxyo/external/com_google_riegeli/python/riegeli/records/BUILD:54:13: @com_google_riegeli//python/riegeli/records:record_position_cc depends on @local_config_python//:python_headers in repository @local_config_python which failed to fetch. no such package '@local_config_python//': local variable 'python_include' is referenced before assignment.
ERROR: Analysis of target '//:print_names_and_sources' failed; build aborted:
INFO: Elapsed time: 7.217s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (50 packages loaded, 182 targets configured)
ERROR: Build failed. Not running target
Can you suggest any workaround for this issue or maybe another way to read the RIEGELI files?
from code_contests.
Sorry for the late reply. Can you try the instructions that worked for someone else here: #9 (comment) ?
from code_contests.
Related Issues (20)
- Is there any plan to release C++ test sandbox? HOT 2
- Failed: Gregor and Cryptography problem not found. Did you pass the validation dataset? HOT 2
- Auto-Configuration Error when run Bazel HOT 3
- Some test solutions do not return outputs in sandbox running, while they output successfully on CLI. HOT 1
- bazel building error on grpc dependency when using Python 3.10 HOT 2
- SANDBOX VIOLATION HOT 2
- Compilation error when using gcc versions {7,9,10,11} HOT 1
- Compilation error when using gcc versions {7,9} HOT 1
- Problem with getting data from riegeli files when not using bazel and trying to run print_names_and_sources.py directly HOT 2
- License of data usage HOT 1
- Can't compile with clang 14 and gcc 12 HOT 1
- AlphaCode Model Implementation Questions
- Executing and evaluating solutions 3x Compilation failure with many python versions HOT 2
- Executing fail in linux docker HOT 1
- Details of codeforces generated tests HOT 1
- How to compile C++ programs?
- Dataset Unavailable HOT 1
- Dataset Update. AlphaCode 2 HOT 2
- Validation setup HOT 1
- zlib checksum error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code_contests.