Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

pip_64 (as part of python-pip-10.0.1-1.aix6.1.noarch.rpm) fails (wrong version)

  • 1.  pip_64 (as part of python-pip-10.0.1-1.aix6.1.noarch.rpm) fails (wrong version)

    Posted Sun October 21, 2018 11:43 AM

    Originally posted by: Teej42


    The error message is:

     

    $ pip_64
    /opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/expat.py:4: RuntimeWarning: Python C API version mismatch for module pyexpat: This Python has API version 1013, module pyexpat has version 2.
      from pyexpat import *
    Memory fault(coredump)

     

    I can provide the full install list to get this, but basically get python-pip-10.0.1-1.aix6.1.noarch.rpm and all depedencies for this, and run pip_64 instead of pip.

     

    This behavior is replicated on two separate AIX 7.1 servers.  We need pip_64 to install and compile modules in 64 bits for Python.

     

    Please confirm.  Thanks.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: pip_64 (as part of python-pip-10.0.1-1.aix6.1.noarch.rpm) fails (wrong version)

    Posted Mon October 22, 2018 07:35 AM

    Originally posted by: AyappanP


    The problem seems to be happening because of python-xml package. This is actually PyXML package which is dead for so many years.

    Please uninstall this rpm and try again. We will remove this package from toolbox.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: pip_64 (as part of python-pip-10.0.1-1.aix6.1.noarch.rpm) fails (wrong version)

    Posted Mon October 22, 2018 08:13 AM

    Originally posted by: Teej42


    That was indeed the cause - python-xml-0.8.4-1.aix6.1.ppc.rpm was installed.  Once removed, everything worked.  Thank you.

     

    How were you able to pinpoint this?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: pip_64 (as part of python-pip-10.0.1-1.aix6.1.noarch.rpm) fails (wrong version)

    Posted Mon October 22, 2018 08:25 AM

    Originally posted by: AyappanP


    The error message shows this file "/opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/expat.py" which comes from python-xml rpm. 

    This package comes with its own modules which is not compatible with recent python versions.

    python_64 -v /opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/expat.py

    ....

    ....

    # trying /opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/pyexpat.so
    dlopen("/opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/pyexpat.so", 2);
    /opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/expat.py:4: RuntimeWarning: Python C API version mismatch for module pyexpat: This Python has API version 1013, module pyexpat has version 2.
      from pyexpat import *
    Segmentation fault(coredump)

     

    # rpm -qf /opt/freeware/lib64/python2.7/site-packages/_xmlplus/parsers/pyexpat.so

    python-xml-0.8.4-1.ppc


    #AIX-Open-Source-Software
    #AIXOpenSource