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

pylint executable not found in path on udi image / CVP test failing (python 3.9 update)

XMLWordPrintable

    • False
    • None
    • False
    • n/a
    • Not Required

      with the update to python 3.9 in CRW-2619, support for pylint appears to have broken again (was last fixed in https://github.com/redhat-developer/devspaces-images/pull/238/files via CRW-2904)

      Unclear if this is due to a compilation failure, wrong path to artifacts collected into the tarball (...//lib64/python3.9/site-packages/pip ?) , or some other problem, but pylint module doesn't exist:

      python basic install:
      
      Python 3.9.7
      
      pip:   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'
      
      pylint:    /usr/bin/python3.9: No module named pylint
      
      ========
      
      python venv install:
      
      Python 3.9.7
      
      pip:   pip 20.2.4 from /.venv/lib64/python3.9/site-packages/pip (python 3.9)
      
      pylint:    /usr/bin/python3.9: No module named pylint
      

      python CVP test is also failing due to update to python 3.9:

      2022-09-20 04:18:00,732 p=1987 u=default |  TASK [Make sure go, php, python (venv) commands are available in the container] ***
      2022-09-20 04:18:01,746 p=1987 u=default |  fatal: [localhost]: FAILED! => {"changed": true, "cmd": "oc exec udi-cmd-test-1-9nww9 -- bash -c \"php --version; echo; go version; echo; python3.8 -m venv .venv && . .venv/bin/activate; python -V; pip -V; pylint --version\"", "delta": "0:00:00.838808", "end": "2022-09-20 04:18:01.721561", "msg": "non-zero return code", "rc": 1, "start": "2022-09-20 04:18:00.882753", "stderr": "Failed loading /usr/lib64/php/modules/xdebug.so:  /usr/lib64/php/modules/xdebug.so: undefined symbol: zend_get_properties_for\nbash: python3.8: command not found\nTraceback (most recent call last):\n  File \"/usr/bin/pip\", line 5, in <module>\n    from pip._internal.cli.main import main\nModuleNotFoundError: No module named 'pip._internal'\n/usr/bin/python3.9: No module named pylint\ncommand terminated with exit code 1", "stderr_lines": ["Failed loading /usr/lib64/php/modules/xdebug.so:  /usr/lib64/php/modules/xdebug.so: undefined symbol: zend_get_properties_for", "bash: python3.8: command not found", "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'", "/usr/bin/python3.9: No module named pylint", "command terminated with exit code 1"], "stdout": "PHP 7.3.20 (cli) (built: Jul  7 2020 07:53:49) ( NTS )\nCopyright (c) 1997-2018 The PHP Group\nZend Engine v3.3.20, Copyright (c) 1998-2018 Zend Technologies\n    with Zend OPcache v7.3.20, Copyright (c) 1999-2018, by Zend Technologies\n\ngo version go1.17.12 linux/s390x\n\nPython 3.9.7", "stdout_lines": ["PHP 7.3.20 (cli) (built: Jul  7 2020 07:53:49) ( NTS )", "Copyright (c) 1997-2018 The PHP Group", "Zend Engine v3.3.20, Copyright (c) 1998-2018 Zend Technologies", "    with Zend OPcache v7.3.20, Copyright (c) 1999-2018, by Zend Technologies", "", "go version go1.17.12 linux/s390x", "", "Python 3.9.7"]}
      

      We should also make sure pip is updated to 22 (not 20) so we have the latest. Might require updating the python lang server build.sh:

      /usr/bin/python3.9 -m pip install -U pip
      

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

                Created:
                Updated:
                Resolved: