deepops icon indicating copy to clipboard operation
deepops copied to clipboard

scripts/setup.sh fails on CentOS 7

Open chshr opened this issue 5 years ago • 3 comments

setup.sh fails with the following error

Error: Package: python36-virtualenv-15.1.0-5.el7.noarch (epel)
           Requires: python36-setuptools
Error: Package: python36-virtualenv-15.1.0-5.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-86.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-4.el7.x86_64 (zabbix)
               python(abi) = 3.4
           Available: python34-3.4.10-8.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-virtualenv-15.1.0-5.el7.noarch (epel)
           Requires: python36-devel
Error: Package: python36-virtualenv-15.1.0-5.el7.noarch (epel)
           Requires: /usr/bin/python3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
ERROR: Unable to create Python virtual environment, 'virtualenv' command not found

It seems that the setup script requires python3, which is not installed on CentOS 7 by default.

chshr avatar Oct 19 '21 08:10 chshr

This is also fails on RHEL 7.9, for slightly different reasons. I cannot figure out if the package is simply not available, or some other repo is needed:

-bash-4.2$ scripts/setup.sh
Package git-1.8.3.1-23.el7_8.x86_64 already installed and latest version
Package matching sshpass-1.06-1.el7.x86_64 already installed. Checking for update.
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Error: Package: python36-virtualenv-15.1.0-5.el7.noarch (epel)
           Requires: python36-devel
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
ERROR: Unable to create Python virtual environment, 'virtualenv' command not found
-bash-4.2$ yum list python36-devel
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Error: No matching Packages to list

jasonguy avatar Dec 10 '21 21:12 jasonguy

This issue is stale because it has been open for 60 days with no activity. Please update the issue or it will be closed in 7 days.

github-actions[bot] avatar Feb 09 '22 01:02 github-actions[bot]

I ran a few tests on this internally and have not been able to reproduce this issue on CentOS 7. If you need this fixed, feel free to re-open with additional OS information.

supertetelman avatar Feb 17 '22 01:02 supertetelman