Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCL package installation returns an error #308

Closed
mspaulding06 opened this issue May 16, 2016 · 2 comments · Fixed by #312
Closed

SCL package installation returns an error #308

mspaulding06 opened this issue May 16, 2016 · 2 comments · Fixed by #312

Comments

@mspaulding06
Copy link

Tried to install python using scl and it failed since the package names are wrong. It looks like the python version that is set (python27) is just being inserted into the package name which is breaking things. If I try using just the version (27) instead of python27 then installing the epel repository fails.

Here is my configuration in puppet:

  class { '::python':
      version    => 'python27',
      provider   => 'rhscl',
      pip        => present,
      dev        => present,
      virtualenv => present,
    }

The error I received:

Notice: /Stage[main]/Yum/Yumrepo[epel]/ensure: removed
Notice: /Stage[main]/Yum/Yumrepo[epel-source]/ensure: removed
Notice: /Stage[main]/Yum/Yumrepo[epel-testing]/ensure: removed
Notice: /Stage[main]/Yum/Yumrepo[epel-debuginfo]/ensure: removed
Notice: /Stage[main]/Yum/Yumrepo[epel-testing-source]/ensure: removed
Notice: /Stage[main]/Yum/Yumrepo[epel-testing-debuginfo]/ensure: removed
Notice: /Stage[main]/Python::Install/Package[rhscl-python27-epel-6-x86_64]/ensure: created
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list pythonpython27' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Python::Install/Package[python]/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list pythonpython27' returned 1: Error: No matching Packages to list
Notice: /Stage[main]/Python::Install/Package[virtualenv]: Dependency Package[python] has failures: true
Warning: /Stage[main]/Python::Install/Package[virtualenv]: Skipping because of failed dependencies
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list pythonpython27-scldevel' returned 1: Error: No matching Packages to list
Error: /Stage[main]/Python::Install/Package[pythonpython27-scldevel]/ensure: change from purged to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list pythonpython27-scldevel' returned 1: Error: No matching Packages to list
Notice: /Stage[main]/Python::Install/Exec[python-scl-pip-install]: Dependency Package[python] has failures: true
Notice: /Stage[main]/Python::Install/Exec[python-scl-pip-install]: Dependency Package[pythonpython27-scldevel] has failures: true
Warning: /Stage[main]/Python::Install/Exec[python-scl-pip-install]: Skipping because of failed dependencies
Info: Class[Python::Install]: Unscheduling all events on Class[Python::Install]
@epleterte
Copy link
Contributor

I encountered the same error. I have made a fix here: https://github.com/epleterte/puppet-python/tree/explicit_default_version
If this is an acceptable change/fix, I'll make a PR :)

On a side note: I am running RHEL, but using 'scl' rather than 'rhscl' as provider seeing as my systems are already set up with SCL channels (via Spacewalk).

@epleterte
Copy link
Contributor

Hmm - this works for me, so I'll just do the PR. It can be rejected if there is a more appropriate way :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants