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.  python3.9 -m pip install pymupdf install errors

    Posted Thu September 05, 2024 10:36 PM

    Hi Community,

    Can some help on the issues? getting errors while trying to install pymupdf

    python3.9 -m pip install pymupdf
    Collecting pymupdf
      Using cached PyMuPDF-1.24.10.tar.gz (47.0 MB)
      Getting requirements to build wheel ... done
      Installing backend dependencies ... done
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error
     
      Preparing metadata (pyproject.toml) did not run successfully.
      exit code: 1
     
      [154 lines of output]
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: ### Starting.
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: __name__: 'setup'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: platform.platform(): 'AIX-2-00FBFC144B00-powerpc-64bit'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: platform.python_version(): '3.9.19'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: sys.executable: '/usr/bin/python3.9'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: CPU bits: 64 sys.maxsize=9223372036854775807
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: __file__: '/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: os.getcwd(): '/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: sys.argv (3):
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     0: '/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     1: 'prepare_metadata_for_build_wheel'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     2: '/tmp/tmp2g1cwf74'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: os.environ (43):
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     AUTHSTATE: 'compat'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     A__z: '! LOGNAME'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CABIN: '/opt/CA/SharedComponents/bin'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CALIB: '/opt/CA/SharedComponents/lib'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CANOLOG_flag: ''
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CASHCOMP: '/opt/CA/SharedComponents'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CA_CAILANGUAGE: 'enu'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CSAM_LOGGER_CONF: '/opt/CA/SharedComponents/Csam/SockAdapter/cfg/logger.cfg'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     CSAM_SOCKADAPTER: '/opt/CA/SharedComponents/Csam/SockAdapter'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     FCEDIT: '/usr/bin/vi'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     HOME: '/root'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     HOST: 'nedwapd01'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     JAVA_HOME: '/usr/java8_64/'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     LANG: 'en_US'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     LC__FASTMSG: 'true'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     LIBPATH: '/opt/CA/SharedComponents/Csam/SockAdapter/lib:/opt/CA/SharedComponents/Csam/SockAdapter/lib64:/opt/CA/SharedComponents/lib:/opt/CA/CAlib'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     LOCPATH: '/usr/lib/nls/loc'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     LOGIN: 'root'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     LOGNAME: 'root'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     MAIL: '/usr/spool/mail/root'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     MAILMSG: '[YOU HAVE NEW MAIL]'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     NLSPATH: '/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     ODMDIR: '/etc/objrepos'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PATH: '/tmp/pip-build-env-akpj2v_6/overlay/bin:/tmp/pip-build-env-akpj2v_6/normal/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/opt/CA/SharedComponents/bin:/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/opt/freeware/:/usr/ucb:/root/bin:/home/bin:/usr/bin/X11:/usr/lpp/EMC/Symmetrix/bin:/root/swing/swingbench/bin:/root/swing/swingbench/sql:/root/swing/swingbench/bin/data'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PEP517_BACKEND_PATH: '/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PEP517_BUILD_BACKEND: 'setup'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PIP_BUILD_TRACKER: '/tmp/pip-build-tracker-93hbba8s'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PLAT: 'aix-7205-2345-64'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PS1: '${HOST}:${PWD}:#'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PWD: '/root'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PYTHONNOUSERSITE: '1'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     PYTHONPATH: '/tmp/pip-build-env-akpj2v_6/site'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     RES_RETRY: '1'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     RES_TIMEOUT: '1'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     SHELL: '/usr/bin/ksh'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     SHLVL: '1'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     SSH_CLIENT: '10.92.117.169 60110 22'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     SSH_CONNECTION: '10.92.117.169 60110 10.48.24.219 22'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     SSH_TTY: '/dev/pts/3'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     TERM: 'xterm'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     TZ: 'EST5EDT'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     USER: 'root'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py:     _: '/usr/bin/python3.9'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: get_mupdf_internal(): out='dir' location=None sha=None
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: Download location='https://mupdf.com/downloads/archive/mupdf-1.24.9-source.tar.gz' local_tgz='mupdf-1.24.9-source.tar.gz' name='mupdf-1.24.9-source'
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: Downloading from location='https://mupdf.com/downloads/archive/mupdf-1.24.9-source.tar.gz' to local_tgz='mupdf-1.24.9-source.tar.gz'.
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: Extracting mupdf-1.24.9-source.tar.gz
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: Setting XCFLAGS and XCXXFLAGS to predefine TOFU_CJK_EXT.
      pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py: Building MuPDF by running: cd /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source && XCFLAGS=-DTOFU_CJK_EXT XCXXFLAGS=-DTOFU_CJK_EXT /usr/bin/python3.9 ./scripts/mupdfwrap.py -d build/PyMuPDF-00FBFC144B00-shared-tesseract-release -b all && echo /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source/build/PyMuPDF-00FBFC144B00-shared-tesseract-release: && ls -l /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source/build/PyMuPDF-00FBFC144B00-shared-tesseract-release
      (+0.1s): -b: m: __main__.py:1617:build: Building libmupdf.so ...
      (+0.1s): -b: m: __main__.py:1218:_get_m_command: Setting -j to  multiprocessing.cpu_count()=48
      (+0.1s): -b: m: __main__.py:1619:build: running: cd /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source && make -j 48 HAVE_GLUT=no HAVE_PTHREAD=yes verbose=yes shared=yes HAVE_LEPTONICA=yes HAVE_TESSERACT=yes build=release build_prefix=PyMuPDF-00FBFC144B00-shared-tesseract-
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makefile", line 3: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makefile", line 5: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makefile", line 7: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 4: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 10: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 18: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 21: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 23: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 26: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 28: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 31: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 33: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 36: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 38: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 41: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 43: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 47: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 49: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 53: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 57: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 60: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 62: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 65: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 67: make: 1254-057 Shell command needs a leading tab.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 70: make: 1254-057 Shell command needs a leading tab.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 72: make: 1254-057 Shell command needs a leading tab.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 73: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 75: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 77: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 79: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 84: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 85: make: 1254-057 Shell command needs a leading tab.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 87: make: 1254-057 Shell command needs a leading tab.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 89: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 91: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 94: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 97: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 105: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 107: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 108: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 111: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 113: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 116: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 119: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 122: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 125: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 128: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 131: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 134: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 137: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 140: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 143: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 145: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 147: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 149: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 150: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 151: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: "Makerules", line 154: make: 1254-055 Dependency line needs colon or double colon operator.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build: make: 1254-051 Equal sign not found in macro substitution.
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build:
      (+0.2s): -b: m: __main__.py:1619:build: (+0.1s): -b: m: __main__.py:1619:build:
      (+0.2s): -b: m: __main__.py:1619:build: [returned e=2]
      Traceback (most recent call last):
          scripts/mupdfwrap.py:6:<module>(): wrap.__main__.main()
          scripts/wrap/__main__.py:3062:main(): jlib.exception_info()
          ^except raise:
          scripts/wrap/__main__.py:3060:main(): main2()
          scripts/wrap/__main__.py:2445:main2(): build( build_dirs, swig_command, args, vs_upgrade, make_command)
          scripts/wrap/__main__.py:1619:build(): jlib.system( command, prefix=jlib.log_text(), out='log', verbose=1)
          scripts/jlib.py:1700:system(): raise Exception( message)
      Exception: Command failed: cd /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source && make -j 48 HAVE_GLUT=no HAVE_PTHREAD=yes verbose=yes shared=yes HAVE_LEPTONICA=yes HAVE_TESSERACT=yes build=release build_prefix=PyMuPDF-00FBFC144B00-shared-tesseract-
      Traceback (most recent call last):
        File "/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/pipcl.py", line 639, in build_wheel
          items = self._call_fn_build(config_settings)
        File "/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/pipcl.py", line 809, in _call_fn_build
          ret = self.fn_build()
        File "/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py", line 533, in build
          mupdf_build_dir = build_mupdf_unix( mupdf_local, build_type, overwrite_config)
        File "/tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/setup.py", line 824, in build_mupdf_unix
          subprocess.run( command, shell=True, check=True)
        File "/opt/freeware/lib64/python3.9/subprocess.py", line 528, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command 'cd /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source && XCFLAGS=-DTOFU_CJK_EXT XCXXFLAGS=-DTOFU_CJK_EXT /usr/bin/python3.9 ./scripts/mupdfwrap.py -d build/PyMuPDF-00FBFC144B00-shared-tesseract-release -b all && echo /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source/build/PyMuPDF-00FBFC144B00-shared-tesseract-release: && ls -l /tmp/pip-install-frmrcg70/pymupdf_51c53d51c39a4d1a8fc74b21522c3ead/mupdf-1.24.9-source/build/PyMuPDF-00FBFC144B00-shared-tesseract-release' returned non-zero exit status 1.
      [end of output]
     
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed
     
    Encountered error while generating package metadata.
     
    See above for output.
     
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.



    ------------------------------
    Chris
    ------------------------------



  • 2.  RE: python3.9 -m pip install pymupdf install errors

    Posted Fri September 06, 2024 02:43 AM

    Looks like AIX make is not able to interpret the syntaxes from the Makefile. Please use GNU make ( gmake or / opt/freeware/bin/make) available from the AIX Toolbox. 



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



  • 3.  RE: python3.9 -m pip install pymupdf install errors

    Posted Fri September 06, 2024 01:29 PM

    Getting same errors even I tried use make from the toolbox. 

    :$/opt/freeware/bin:#which make
    /opt/freeware/bin/make
    $:/opt/freeware/bin:#rpm -qa |grep -i gmake
    :$/opt/freeware/bin:#rpm -qa |grep -i make
    cmake-3.22.0-1.ppc
    cmake-data-3.22.0-1.ppc
    make-4.4.1-1.ppc
    :$/opt/freeware/bin:#ls -al /opt/freeware/bin/make
    lrwxrwxrwx    1 root     system            7 Sep 06 13:13 /opt/freeware/bin/make -> make_64



    ------------------------------
    Chris
    ------------------------------