Coder Social home page Coder Social logo

Close this issue about subpar HOT 3 OPEN

google avatar google commented on May 15, 2024
Close this issue

from subpar.

Comments (3)

duggelz avatar duggelz commented on May 15, 2024

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.

jeb2239 avatar jeb2239 commented on May 15, 2024

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.

duggelz avatar duggelz commented on May 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.