Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2904

pylint executable not found in path on udi image / CVP test failing

XMLWordPrintable

    • False
    • None
    • False

      Latest build to test is quay.io/devspaces/udi-rhel8:3.0-13 ...

      podman run -it --rm --entrypoint /bin/bash quay.io/devspaces/udi-rhel8:3.0-13 -c "python -V; pip -V; pylint --version"
      
      Python 3.8.8
      Traceback (most recent call last):
        File "/usr/bin/pip", line 5, in <module>
          from pip._internal.cli.main import main
      ModuleNotFoundError: No module named 'pip._internal'
      Traceback (most recent call last):
        File "/usr/bin/pylint", line 5, in <module>
          from pylint import run_pylint
      ModuleNotFoundError: No module named 'pylint'
      

      But if we use venv:

      podman run -it --rm --entrypoint /bin/bash quay.io/devspaces/udi-rhel8:3.0-13 -c "PYTHON_VERSION=3.8;python${PYTHON_VERSION} -m venv .venv && . .venv/bin/activate; python -V; pip -V; pylint --version"
      
      Python 3.8.8
      pip 19.3.1 from /projects/.venv/lib64/python3.8/site-packages/pip (python 3.8)
      Traceback (most recent call last):
        File "/usr/bin/pylint", line 5, in <module>
          from pylint import run_pylint
      ModuleNotFoundError: No module named 'pylint'
      

      So, we have working go, python, pip, but not pylint

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: