The current build from github for Koa fails. I’m not sure why but I did tried already installed setuptools for python. See the following error below:
TASK [supervisor : Install supervisor in its venv] *****************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'pkg_resources'
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (setuptools) on pupnode2's Python /usr/bin/python3. Please read module documentation and install in the appropriate location"}
and as I mentioned, setuptools is is installed
(edx_ansible) root@pupnode2:~/openedx# pip list installed|grep setuptools
setuptools 51.1.2
(edx_ansible) root@pupnode2:~/openedx# dpkg -l|grep setuptools
ii python-setuptools 44.0.0-2 all Python Distutils Enhancements
ii python3-setuptools 45.2.0-1 all Python3 Distutils Enhancements
TASK [common : pip install virtualenv] *****************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named pkg_resources
fatal: [127.0.0.1]: FAILED! => {“changed”: false, “msg”: “Failed to import the required Python library (setuptools) on aabsc.abc.com’s Python /usr/bin/python. Please read module documentation and install in the appropriate location”}
I have the same error, even after trying the workaround. Any suggestions?
@arbrandes and @Maksim_Sokolskiy figured out what was happening: the ansible-bootstrap.sh script instructs you to activate a virtualenv at the end. This was incorrect advice, and causes the failures above. You should not activate a virtualenv at that step of the installation.
We’re updating the installation instructions and the script.