AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Issue with pip install lxml

    Posted Thu June 08, 2023 01:33 PM

    Unable to install lxml using pip on a AIX 7200-05-03-2148.    Any help in getting this installed would be appreciated.    

    # export PATH=${PATH}:/opt/freeware/bin
    #python3 -m pip install lxml               
    Collecting lxml
      Using cached lxml-4.9.2.tar.gz (3.7 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Building wheels for collected packages: lxml
      Building wheel for lxml (pyproject.toml) ... error
      error: subprocess-exited-with-error
      
      × Building wheel for lxml (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [116 lines of output]
          Building lxml version 4.9.2.
          Building without Cython.
          Building against libxml2 2.10.3 and libxslt 1.1.37
          Building against libxml2/libxslt in the following directory: /opt/freeware/lib64
          running bdist_wheel
          running build
          running build_py
          creating build
          creating build/lib.aix-7.2-cpython-37
          creating build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/ElementInclude.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/__init__.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/_elementpath.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/builder.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/cssselect.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/doctestcompare.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/pyclasslookup.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/sax.py -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/usedoctest.py -> build/lib.aix-7.2-cpython-37/lxml
          creating build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/__init__.py -> build/lib.aix-7.2-cpython-37/lxml/includes
          creating build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/ElementSoup.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/__init__.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/_diffcommand.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/_html5builder.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/_setmixin.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/builder.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/clean.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/defs.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/diff.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/formfill.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/html5parser.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/soupparser.py -> build/lib.aix-7.2-cpython-37/lxml/html
          copying src/lxml/html/usedoctest.py -> build/lib.aix-7.2-cpython-37/lxml/html
          creating build/lib.aix-7.2-cpython-37/lxml/isoschematron
          copying src/lxml/isoschematron/__init__.py -> build/lib.aix-7.2-cpython-37/lxml/isoschematron
          copying src/lxml/etree.h -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/etree_api.h -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/lxml.etree.h -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/lxml.etree_api.h -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/etree.pyx -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/objectify.pyx -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/apihelpers.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/classlookup.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/cleanup.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/debug.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/docloader.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/dtd.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/extensions.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/iterparse.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/nsclasses.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/objectpath.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/parser.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/parsertarget.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/proxy.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/public-api.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/readonlytree.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/relaxng.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/saxparser.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/schematron.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/serializer.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xinclude.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xmlerror.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xmlid.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xmlschema.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xpath.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xslt.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/xsltext.pxi -> build/lib.aix-7.2-cpython-37/lxml
          copying src/lxml/includes/__init__.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/c14n.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/config.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/dtdvalid.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/etreepublic.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/htmlparser.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/relaxng.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/schematron.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/tree.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/uri.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/xinclude.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/xmlerror.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/xmlparser.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/xmlschema.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/xpath.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/xslt.pxd -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/etree_defs.h -> build/lib.aix-7.2-cpython-37/lxml/includes
          copying src/lxml/includes/lxml-version.h -> build/lib.aix-7.2-cpython-37/lxml/includes
          creating build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources
          creating build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/rng
          copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/rng
          creating build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl
          copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl
          copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl
          creating build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.aix-7.2-cpython-37/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
          running build_ext
          building 'lxml.etree' extension
          creating build/temp.aix-7.2-cpython-37
          creating build/temp.aix-7.2-cpython-37/src
          creating build/temp.aix-7.2-cpython-37/src/lxml
          gcc -maix64 -fPIC -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -Wl,-brtl -O2 -fPIC -I/usr/include -I/opt/freeware/include -I/opt/freeware/include/ncurses -DAIX_GENUINE_CPLUSCPLUS -D_LINUX_SOURCE_COMPAT -Wl,-brtl -O2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/opt/freeware/include/libxml2 -I/opt/freeware/include -Isrc -Isrc/lxml/includes -I/opt/freeware/include/python3.7m -c src/lxml/etree.c -o build/temp.aix-7.2-cpython-37/src/lxml/etree.o -w
          /tmp//cc2XjHpr.s: Assembler messages:
          /tmp//cc2XjHpr.s:16: Internal error, aborting at config/tc-ppc.c line 3300 in md_assemble
          Please report this bug.
          Compile failed: command '/usr/bin/gcc' failed with exit code 1
          creating tmp
          cc -I/opt/freeware/include/libxml2 -I/opt/freeware/include -I/usr/include/libxml2 -c /tmp/xmlXPathInitqu6rsfm7.c -o tmp/xmlXPathInitqu6rsfm7.o
          *********************************************************************************
          Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
          *********************************************************************************
          error: command '/usr/bin/gcc' failed with exit code 1
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for lxml
    Failed to build lxml
    ERROR: Could not build wheels for lxml, which is required to install pyproject.toml-based projects
     #rpm -qa | grep libxml2
    libxml2-2.10.3-1.ppc
    libxml2-devel-2.10.3-1.ppc



    ------------------------------
    Kenneth Foust
    ------------------------------


  • 2.  RE: Issue with pip install lxml

    Posted Mon June 12, 2023 03:23 AM

    Looks like an assembler error. Do you have binutils rpm installed ? If so, can you remove it and then try again? 



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Issue with pip install lxml

    Posted Wed June 28, 2023 12:33 PM

    binutils is not installed on the server.



    ------------------------------
    Kenneth Foust
    ------------------------------



  • 4.  RE: Issue with pip install lxml

    Posted Mon July 03, 2023 03:15 AM

    The error you are getting "Internal error, aborting at config/tc-ppc.c line 3300 in md_assemble" , this code is from GNU assembler. 

    GNU assembler is provided through binutils rpm in AIX Toolbox. 



    ------------------------------
    Ayappan P
    ------------------------------