Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

[RFR] Fix travis distutils #10311

Merged
merged 1 commit into from
Sep 1, 2020
Merged

Conversation

mshriver
Copy link
Member

@mshriver mshriver commented Aug 31, 2020

Travis is failing with a distutils import error.

Couldn't replicate locally, but travis's ubuntu image is running with python 3.7.1.

Updated travis to bionic and cleaned up the config a bit

Explicitly set virtualenv path for quickstart

Ignored/logged site import failure in disable_bytecache, as it should be non-blocking failure.

QS $ /home/travis/virtualenv/python3.7.1/bin/python3 -m cfme.scripting.disable_bytecode

Traceback (most recent call last):

  File "/home/travis/build/ManageIQ/integration_tests/cfme/scripting/disable_bytecode.py", line 24, in <module>

    site_packages = distutils.sysconfig_get_python_lib()

AttributeError: module 'distutils' has no attribute 'sysconfig_get_python_lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/opt/python/3.7.1/lib/python3.7/runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "/opt/python/3.7.1/lib/python3.7/runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "/home/travis/build/ManageIQ/integration_tests/cfme/scripting/disable_bytecode.py", line 27, in <module>

    site_packages = site.getsitepackages()[0]

AttributeError: module 'site' has no attribute 'getsitepackages'

@mshriver mshriver force-pushed the fix-travis-distutils branch 4 times, most recently from 8e50cd3 to 0f7f99e Compare September 1, 2020 00:41
remove distutil import attempt from disable_bytecode
explicit virtualenv path on travis for quickstart

site import broke on travis on Aug 31, no real idea why
@mshriver mshriver force-pushed the fix-travis-distutils branch from 0f7f99e to 7871183 Compare September 1, 2020 00:51
@mshriver mshriver changed the title Fix travis distutils [RFR] Fix travis distutils Sep 1, 2020
@mshriver mshriver merged commit fe703b8 into ManageIQ:master Sep 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant