Red Hat Enterprise Linux 6.9 - Cannot Find or Install RPM Python Bindings?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am running Red Hat Enterprise Linux 6.9, and I cannot find the RPM Python bindings?



I am trying to install rpm-py-installer-0.7.0 and it throws an error:



RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.


So, I searched the Internet, and found RPM Python bindings, but nothing for RHEL 6...
I tried using pip and yum to install python2-rpm, but it found nothing (the package does not exist).



I need to be able to install python2-rpm so that I can get rpm-py-installer installed.




Here is the code that is failing:



if self.python.is_system_python():
if self.python.is_python_binding_installed():
message = '''
RPM Python binding already installed on system Python.
Nothing to do.
'''
Log.info(message)
raise InstallSkipError(message)
else:
message = '''
RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.
'''
raise InstallError(message)


Basically...



self.python.is_python_binding_installed()


... is returning false.







share|improve this question

















  • 1




    Have you tried yum install rpm-python ? That's in the CentOS6.9 base so I assume it's available on RedHat. It includes the /usr/lib64/python2.6/site-packages/rpm directory.
    – Stephen Harris
    Jun 27 at 22:43










  • I ran yum install rpm-python and it said it was already installed...
    – Erik343
    Jun 27 at 23:08














up vote
1
down vote

favorite












I am running Red Hat Enterprise Linux 6.9, and I cannot find the RPM Python bindings?



I am trying to install rpm-py-installer-0.7.0 and it throws an error:



RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.


So, I searched the Internet, and found RPM Python bindings, but nothing for RHEL 6...
I tried using pip and yum to install python2-rpm, but it found nothing (the package does not exist).



I need to be able to install python2-rpm so that I can get rpm-py-installer installed.




Here is the code that is failing:



if self.python.is_system_python():
if self.python.is_python_binding_installed():
message = '''
RPM Python binding already installed on system Python.
Nothing to do.
'''
Log.info(message)
raise InstallSkipError(message)
else:
message = '''
RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.
'''
raise InstallError(message)


Basically...



self.python.is_python_binding_installed()


... is returning false.







share|improve this question

















  • 1




    Have you tried yum install rpm-python ? That's in the CentOS6.9 base so I assume it's available on RedHat. It includes the /usr/lib64/python2.6/site-packages/rpm directory.
    – Stephen Harris
    Jun 27 at 22:43










  • I ran yum install rpm-python and it said it was already installed...
    – Erik343
    Jun 27 at 23:08












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am running Red Hat Enterprise Linux 6.9, and I cannot find the RPM Python bindings?



I am trying to install rpm-py-installer-0.7.0 and it throws an error:



RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.


So, I searched the Internet, and found RPM Python bindings, but nothing for RHEL 6...
I tried using pip and yum to install python2-rpm, but it found nothing (the package does not exist).



I need to be able to install python2-rpm so that I can get rpm-py-installer installed.




Here is the code that is failing:



if self.python.is_system_python():
if self.python.is_python_binding_installed():
message = '''
RPM Python binding already installed on system Python.
Nothing to do.
'''
Log.info(message)
raise InstallSkipError(message)
else:
message = '''
RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.
'''
raise InstallError(message)


Basically...



self.python.is_python_binding_installed()


... is returning false.







share|improve this question













I am running Red Hat Enterprise Linux 6.9, and I cannot find the RPM Python bindings?



I am trying to install rpm-py-installer-0.7.0 and it throws an error:



RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.


So, I searched the Internet, and found RPM Python bindings, but nothing for RHEL 6...
I tried using pip and yum to install python2-rpm, but it found nothing (the package does not exist).



I need to be able to install python2-rpm so that I can get rpm-py-installer installed.




Here is the code that is failing:



if self.python.is_system_python():
if self.python.is_python_binding_installed():
message = '''
RPM Python binding already installed on system Python.
Nothing to do.
'''
Log.info(message)
raise InstallSkipError(message)
else:
message = '''
RPM Python binding on system Python should be installed manually.
Install the proper RPM package of python,2,3-rpm.
'''
raise InstallError(message)


Basically...



self.python.is_python_binding_installed()


... is returning false.









share|improve this question












share|improve this question




share|improve this question








edited Jun 28 at 15:25
























asked Jun 27 at 21:46









Erik343

112




112







  • 1




    Have you tried yum install rpm-python ? That's in the CentOS6.9 base so I assume it's available on RedHat. It includes the /usr/lib64/python2.6/site-packages/rpm directory.
    – Stephen Harris
    Jun 27 at 22:43










  • I ran yum install rpm-python and it said it was already installed...
    – Erik343
    Jun 27 at 23:08












  • 1




    Have you tried yum install rpm-python ? That's in the CentOS6.9 base so I assume it's available on RedHat. It includes the /usr/lib64/python2.6/site-packages/rpm directory.
    – Stephen Harris
    Jun 27 at 22:43










  • I ran yum install rpm-python and it said it was already installed...
    – Erik343
    Jun 27 at 23:08







1




1




Have you tried yum install rpm-python ? That's in the CentOS6.9 base so I assume it's available on RedHat. It includes the /usr/lib64/python2.6/site-packages/rpm directory.
– Stephen Harris
Jun 27 at 22:43




Have you tried yum install rpm-python ? That's in the CentOS6.9 base so I assume it's available on RedHat. It includes the /usr/lib64/python2.6/site-packages/rpm directory.
– Stephen Harris
Jun 27 at 22:43












I ran yum install rpm-python and it said it was already installed...
– Erik343
Jun 27 at 23:08




I ran yum install rpm-python and it said it was already installed...
– Erik343
Jun 27 at 23:08










2 Answers
2






active

oldest

votes

















up vote
1
down vote













I assume you can install the package with following command.



yum localinstall rpm-py-installer-0.7.0


In normally, as you know, yum util is getting packages from repositories throughthe network.

But in this case, you have already downloaded rpm-py-installer-0.7.0 from internet to your server, so, designate localinstall command to install from local directory.

However, dependency related errors may occur.






share|improve this answer





















  • When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
    – Erik343
    Jun 28 at 15:12











  • I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
    – Erik343
    Jun 28 at 15:57


















up vote
0
down vote













I could not find 'rpm-python' package for pip anywhere, but I found a wheel for just 'rpm'.
Here is the link: https://pypi.org/project/rpm/#description



Just install that, then re-install 'rpm-py-installer' and it should have no more errors!



Thanks.
Erik W.






share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452311%2fred-hat-enterprise-linux-6-9-cannot-find-or-install-rpm-python-bindings%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    I assume you can install the package with following command.



    yum localinstall rpm-py-installer-0.7.0


    In normally, as you know, yum util is getting packages from repositories throughthe network.

    But in this case, you have already downloaded rpm-py-installer-0.7.0 from internet to your server, so, designate localinstall command to install from local directory.

    However, dependency related errors may occur.






    share|improve this answer





















    • When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
      – Erik343
      Jun 28 at 15:12











    • I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
      – Erik343
      Jun 28 at 15:57















    up vote
    1
    down vote













    I assume you can install the package with following command.



    yum localinstall rpm-py-installer-0.7.0


    In normally, as you know, yum util is getting packages from repositories throughthe network.

    But in this case, you have already downloaded rpm-py-installer-0.7.0 from internet to your server, so, designate localinstall command to install from local directory.

    However, dependency related errors may occur.






    share|improve this answer





















    • When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
      – Erik343
      Jun 28 at 15:12











    • I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
      – Erik343
      Jun 28 at 15:57













    up vote
    1
    down vote










    up vote
    1
    down vote









    I assume you can install the package with following command.



    yum localinstall rpm-py-installer-0.7.0


    In normally, as you know, yum util is getting packages from repositories throughthe network.

    But in this case, you have already downloaded rpm-py-installer-0.7.0 from internet to your server, so, designate localinstall command to install from local directory.

    However, dependency related errors may occur.






    share|improve this answer













    I assume you can install the package with following command.



    yum localinstall rpm-py-installer-0.7.0


    In normally, as you know, yum util is getting packages from repositories throughthe network.

    But in this case, you have already downloaded rpm-py-installer-0.7.0 from internet to your server, so, designate localinstall command to install from local directory.

    However, dependency related errors may occur.







    share|improve this answer













    share|improve this answer



    share|improve this answer











    answered Jun 28 at 10:02









    go-emon

    111




    111











    • When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
      – Erik343
      Jun 28 at 15:12











    • I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
      – Erik343
      Jun 28 at 15:57

















    • When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
      – Erik343
      Jun 28 at 15:12











    • I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
      – Erik343
      Jun 28 at 15:57
















    When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
    – Erik343
    Jun 28 at 15:12





    When I run that yum command, I get: Skipping: rpm-py-installer-0.7.0, filename does not end in .rpm. Also, with rpm-py-installer, I managed to compile the tarball, but when I went to install it, it gave the same error about the missing RPM Python bindings.
    – Erik343
    Jun 28 at 15:12













    I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
    – Erik343
    Jun 28 at 15:57





    I inspected the code again and found that the install.py script is looking for the 'rpm-python' or 'rpm' package names in pip. And, it is not there, so it errors out...
    – Erik343
    Jun 28 at 15:57













    up vote
    0
    down vote













    I could not find 'rpm-python' package for pip anywhere, but I found a wheel for just 'rpm'.
    Here is the link: https://pypi.org/project/rpm/#description



    Just install that, then re-install 'rpm-py-installer' and it should have no more errors!



    Thanks.
    Erik W.






    share|improve this answer

























      up vote
      0
      down vote













      I could not find 'rpm-python' package for pip anywhere, but I found a wheel for just 'rpm'.
      Here is the link: https://pypi.org/project/rpm/#description



      Just install that, then re-install 'rpm-py-installer' and it should have no more errors!



      Thanks.
      Erik W.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I could not find 'rpm-python' package for pip anywhere, but I found a wheel for just 'rpm'.
        Here is the link: https://pypi.org/project/rpm/#description



        Just install that, then re-install 'rpm-py-installer' and it should have no more errors!



        Thanks.
        Erik W.






        share|improve this answer













        I could not find 'rpm-python' package for pip anywhere, but I found a wheel for just 'rpm'.
        Here is the link: https://pypi.org/project/rpm/#description



        Just install that, then re-install 'rpm-py-installer' and it should have no more errors!



        Thanks.
        Erik W.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 28 at 23:50









        Erik343

        112




        112






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452311%2fred-hat-enterprise-linux-6-9-cannot-find-or-install-rpm-python-bindings%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)