Comments (3)
What kind of error message are you getting? Python 2.6 is a problem, but my Googling says that RHEL 7 ships with Python 2.7.
from subpar.
some of the tests fail
Successfully installed setuptools-0.9.8
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
INFO: Analysed 62 targets (27 packages loaded).
INFO: Found 32 targets and 30 test targets...
FAIL: //runtime:support_test (see /home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/execroot/subpar/bazel-out/k8-fastbuild/testlogs/runtime/support_test/test.log)
INFO: From Testing //runtime:support_test:
==================== Test output for //runtime:support_test:
....EE
======================================================================
ERROR: test_setup (__main__.SupportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/bazel-sandbox/4866906574489874724/execroot/subpar/bazel-out/k8-fastbuild/bin/runtime/support_test.runfiles/subpar/runtime/support_test.py", line 143, in test_setup
zip_safe=True)
File "/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/bazel-sandbox/4866906574489874724/execroot/subpar/bazel-out/k8-fastbuild/bin/runtime/support_test.runfiles/subpar/runtime/support.py", line 326, in setup
_setup_pkg_resources('pkg_resources')
File "/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/bazel-sandbox/4866906574489874724/execroot/subpar/bazel-out/k8-fastbuild/bin/runtime/support_test.runfiles/subpar/runtime/support.py", line 157, in _setup_pkg_resources
__import__(pkg_resources_name)
File "/home/vagrant/subpar/.env/lib/python3.6/site-packages/pkg_resources.py", line 1545, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
======================================================================
ERROR: test_setup__extract (__main__.SupportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/bazel-sandbox/4866906574489874724/execroot/subpar/bazel-out/k8-fastbuild/bin/runtime/support_test.runfiles/subpar/runtime/support_test.py", line 168, in test_setup__extract
success = support.setup(import_roots=['some_root'], zip_safe=False)
File "/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/bazel-sandbox/4866906574489874724/execroot/subpar/bazel-out/k8-fastbuild/bin/runtime/support_test.runfiles/subpar/runtime/support.py", line 326, in setup
_setup_pkg_resources('pkg_resources')
File "/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/bazel-sandbox/4866906574489874724/execroot/subpar/bazel-out/k8-fastbuild/bin/runtime/support_test.runfiles/subpar/runtime/support.py", line 157, in _setup_pkg_resources
__import__(pkg_resources_name)
File "/home/vagrant/subpar/.env/lib/python3.6/site-packages/pkg_resources.py", line 1545, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------------------------------------
Ran 6 tests in 0.010s
FAILED (errors=2)
================================================================================
ERROR: /home/vagrant/subpar/tests/BUILD:66:1: Building par file //tests:package_f/f.par failed (Exit 1)
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "bazel-out/host/bin/compiler/compiler.par/__main__.py", line 19, in <module>
File "bazel-out/host/bin/compiler/compiler.par/subpar/runtime/support.py", line 326, in setup
File "bazel-out/host/bin/compiler/compiler.par/subpar/runtime/support.py", line 157, in _setup_pkg_resources
File "/home/vagrant/subpar/.env/lib/python3.6/site-packages/pkg_resources.py", line 1545, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
INFO: Elapsed time: 1.466s, Critical Path: 0.45s
FAILED: Build did NOT complete successfully
//compiler:cli_test NO STATUS
//compiler:manifest_parser_test NO STATUS
//compiler:python_archive_test NO STATUS
//compiler:stored_resource_test NO STATUS
//tests:basic_nopar_test NO STATUS
//tests:basic_test NO STATUS
//tests:dir_shadowing_nopar_test NO STATUS
//tests:dir_shadowing_test NO STATUS
//tests:direct_dependency_nopar_test NO STATUS
//tests:direct_dependency_test NO STATUS
//tests:external_workspace_nopar_test NO STATUS
//tests:external_workspace_test NO STATUS
//tests:extract_nopar_test NO STATUS
//tests:extract_test NO STATUS
//tests:import_root_nopar_test NO STATUS
//tests:import_root_test NO STATUS
//tests:import_roots_nopar_test NO STATUS
//tests:import_roots_test NO STATUS
//tests:indirect_dependency_nopar_test NO STATUS
//tests:indirect_dependency_test NO STATUS
//tests:main_boilerplate_nopar_test NO STATUS
//tests:main_boilerplate_test NO STATUS
//tests:pkg_resources_nopar_test NO STATUS
//tests:pkg_resources_test NO STATUS
//tests:shadow_nopar_test NO STATUS
//tests:shadow_test NO STATUS
//tests:test_compiler_label_wrapper NO STATUS
//tests:version_nopar_test NO STATUS
//runtime:support_test FAILED in 0.4s
/home/vagrant/.cache/bazel/_bazel_vagrant/e1bb13c0ba0852c4a2b5e67d0e8cc6ca/execroot/subpar/bazel-out/k8-fastbuild/testlogs/runtime/support_test/test.log
Executed 1 out of 30 tests: 1 fails to build, 1 fails locally and 28 were skipped.
[vagrant@localhost subpar]$
from subpar.
There is already a CentOS 7 test in the test suite, and a version check in the code, but I guess there is some difference between CentOS 7 and RHEL 7 being exposed here. It's sort of hard for me to test that environment, unfortunately.
Are you using the run_tests.sh
script to test? If so, there should be output lines like Testing /some/path/python[X.Y]
and Testing virtualenv tests/requirements-test-[something].txt
. Can you paste those lines in here?
If you need a quick workaround, you can try to update your setuptools
to a more recent version via pip install --upgrade setuptools
or similar.
from subpar.
Related Issues (20)
- Fix tests to use proper select() for python version
- Tests fail for centos7 configuration
- Tests may fail when run via `bazel test` HOT 1
- Incompatible search for main files
- Development Best Practices HOT 1
- bazel 0.27.1 deprecated API usages
- Move subpar to the bazelbuild org HOT 1
- Conflicting package names HOT 1
- CODEOWNERS HOT 1
- cython modules import fails when running par file HOT 1
- Why is the generated dpkg_parser having a #!/usr/bin/python3 shebang? HOT 1
- Flag --incompatible_no_implicit_file_export will break Subpar in Bazel 1.2.1
- Flag --incompatible_no_implicit_file_export will break Subpar in a future Bazel release
- [Documentation] Should README setup example use http_archive rather than git_repository? HOT 1
- Running `bazel-bin/*.par ` has ModuleNotFoundError: No module named issue
- Support hermetically built python interperters
- Python cannot run Subpars larger than 2GiB because they are Zip64 formatted.
- Subpar is failing on Bazel CI since the upgrade to Ubuntu 20.04 HOT 1
- Migration guide for existing subpar users now that it is "unmaintained and considered deprecated"?
- Build fails with bazel 0.25 --incompatible_use_python_toolchains HOT 19
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 subpar.