Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10841

Python precommit failing: Parent module 'setuptools' not loaded

    XMLWordPrintableJSON

    Details

      Description

      10:28:06 > Task :sdks:python:test-suites:tox:py35:testPy35Cloud FAILED
      10:28:06 py35-cloud create: /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-cloud/py35-cloud
      10:28:06 ERROR: invocation failed (exit code 1), logfile: /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py35/build/srcs/sdks/python/target/.tox-py35-cloud/py35-cloud/log/py35-cloud-0.log
      10:28:06 ================================== log start ===================================
      10:28:06 Traceback (most recent call last):
      10:28:06 File "/usr/lib/python3.5/runpy.py", line 174, in _run_module_as_main
      10:28:06 mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
      10:28:06 File "/usr/lib/python3.5/runpy.py", line 133, in _get_module_details
      10:28:06 return _get_module_details(pkg_main_name, error)
      10:28:06 File "/usr/lib/python3.5/runpy.py", line 109, in _get_module_details
      10:28:06 _import_(pkg_name)
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/_init_.py", line 3, in <module>
      10:28:06 from .run import cli_run, session_via_cli
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/run/_init_.py", line 12, in <module>
      10:28:06 from .plugin.creators import CreatorSelector
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/run/plugin/creators.py", line 6, in <module>
      10:28:06 from virtualenv.create.via_global_ref.builtin.builtin_way import VirtualenvBuiltin
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/create/via_global_ref/builtin/builtin_way.py", line 7, in <module>
      10:28:06 from virtualenv.create.creator import Creator
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/create/creator.py", line 15, in <module>
      10:28:06 from virtualenv.discovery.cached_py_info import LogCmd
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/discovery/cached_py_info.py", line 16, in <module>
      10:28:06 from virtualenv.discovery.py_info import PythonInfo
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/virtualenv/discovery/py_info.py", line 16, in <module>
      10:28:06 from distutils import dist
      10:28:06 File "<frozen importlib._bootstrap>", line 969, in _find_and_load
      10:28:06 File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
      10:28:06 File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
      10:28:06 File "<frozen importlib._bootstrap>", line 577, in module_from_spec
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/site-packages/distutils_hack/init_.py", line 82, in create_module
      10:28:06 return importlib.import_module('._distutils', 'setuptools')
      10:28:06 File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/build/gradleenv/-1227304285/lib/python3.5/importlib/_init_.py", line 126, in import_module
      10:28:06 return _bootstrap._gcd_import(name[level:], package, level)
      10:28:06 File "<frozen importlib._bootstrap>", line 981, in _gcd_import
      10:28:06 File "<frozen importlib._bootstrap>", line 931, in _sanity_check
      10:28:06 SystemError: Parent module 'setuptools' not loaded, cannot perform relative import

        Attachments

          Activity

            People

            • Assignee:
              bhulette Brian Hulette
              Reporter:
              ibzib Kyle Weaver
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m