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
Expand all | Collapse all

How to install cx_Freeze on AIX?

  • 1.  How to install cx_Freeze on AIX?

    Posted Tue August 08, 2023 06:06 AM

    Is it any way to install cx_freeze on AIX 7.1, 7.2 or 7.3?

    when I try to install it by using pip install, there is some error... not sure how to resolve it, please help to give some advice. 

    I'm using  python3.9.12 and pip 23.2.1

    I tried both gcc and openxlc, but not albe to install

    $ pip3 install cx_Freeze
    Defaulting to user installation because normal site-packages is not writeable
    Collecting cx_Freeze
      Using cached cx_Freeze-6.15.5.tar.gz (1.5 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Requirement already satisfied: setuptools<69,>=62.6 in /home/cecuser/.local/lib/python3.9/site-packages (from cx_Freeze) (68.0.0)
    Building wheels for collected packages: cx_Freeze
      Building wheel for cx_Freeze (pyproject.toml) ... error
      error: subprocess-exited-with-error
    
      Building wheel for cx_Freeze (pyproject.toml) did not run successfully.
      exit code: 1
    
      [113 lines of output]
      /tmp/pip-build-env-spif1gz8/overlay/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
        config = read_configuration(filepath, True, ignore_option_errors, dist)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.aix-7301-2319-64-cpython-39
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/__main__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/_compat.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/cli.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/common.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/darwintools.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/exception.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/executable.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/finder.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/freezer.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/module.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/parser.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/setupwriter.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/winmsvcr.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/winversioninfo.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/bases
      copying cx_Freeze/bases/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/bases
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/_bdist_msi.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/_pydialog.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/bdist_mac.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/bdist_msi.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/bdist_rpm.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/build_exe.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/install.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/install_exe.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/_libs.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/_qthooks.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/clr.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/crypto.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/cv2.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/exclude.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/glib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/matplotlib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/multiprocessing.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/numpy.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/pil.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/pytz.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/scipy.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/skimage.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/sklearn.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/ssl.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/tkinter.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/torch.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/xlib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/__startup__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/console.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/consolesetlibpath.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/sharedlib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/sharedlibsource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/_append_to_init.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/resource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      copying cx_Freeze/hooks/pyqt6/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      copying cx_Freeze/hooks/pyqt6/debug.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/debug.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/resource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/debug.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/resource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      running egg_info
      writing cx_Freeze.egg-info/PKG-INFO
      writing dependency_links to cx_Freeze.egg-info/dependency_links.txt
      writing entry points to cx_Freeze.egg-info/entry_points.txt
      writing requirements to cx_Freeze.egg-info/requires.txt
      writing top-level names to cx_Freeze.egg-info/top_level.txt
      reading manifest file 'cx_Freeze.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'doc/src/license.rst'
      writing manifest file 'cx_Freeze.egg-info/SOURCES.txt'
      copying cx_Freeze/util.pyi -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/initscripts/frozen_application_license.txt -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/hooks/pyqt5/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/resource.qrc -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/resource.sh -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt6/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      copying cx_Freeze/hooks/pyside2/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/resource.qrc -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/resource.sh -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside6/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/resource.qrc -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/resource.sh -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      running build_ext
      creating build/temp.aix-7301-2319-64-cpython-39
      creating build/temp.aix-7301-2319-64-cpython-39/source
      creating build/temp.aix-7301-2319-64-cpython-39/source/bases
      gcc -maix64 -DNDEBUG -O2 -qmaxmem=-1 -I/usr/opt/python3/include -I/usr/include -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -qbitfields=signed -qalloca -O2 -qmaxmem=-1 -I/usr/opt/python3/include -I/usr/include -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -qbitfields=signed -qalloca -O2 -qmaxmem=-1 -I/usr/opt/python3/include/python3.9 -c source/bases/console.c -o build/temp.aix-7301-2319-64-cpython-39/source/bases/console.o
      gcc: error: unrecognized command-line option '-qmaxmem=-1'
      gcc: error: unrecognized command-line option '-qbitfields=signed'
      gcc: error: unrecognized command-line option '-qalloca'; did you mean '-Walloca'?
      gcc: error: unrecognized command-line option '-qmaxmem=-1'
      gcc: error: unrecognized command-line option '-qbitfields=signed'
      gcc: error: unrecognized command-line option '-qalloca'; did you mean '-Walloca'?
      gcc: error: unrecognized command-line option '-qmaxmem=-1'
      error: command '/opt/freeware/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 cx_Freeze
    Failed to build cx_Freeze
    ERROR: Could not build wheels for cx_Freeze, which is required to install pyproject.toml-based projects



    ------------------------------
    Jun Hu
    ------------------------------



  • 2.  RE: How to install cx_Freeze on AIX?

    Posted Sun August 13, 2023 09:39 PM

    Hi,

    Any one can help with this? thanks



    ------------------------------
    Jun Hu
    ------------------------------



  • 3.  RE: How to install cx_Freeze on AIX?

    Posted Mon August 14, 2023 03:23 AM

    You are using AIX base python3 which ships with AIX 7.3. It is built using xlc compiler, so if you are using gcc as CC , then it will not work. Because the options are not compatible.



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



  • 4.  RE: How to install cx_Freeze on AIX?

    Posted Mon August 14, 2023 03:55 AM

    Hi Ayappan, 

    On AIX7.2, I have python3.9 and xlc installed,  I can install cx_freeze from pip, but can not compile files successful.  could you help? thanks. 

    It shows error below.  it seems sth. is missing when install it from pip. 

    install successful. 

    python3 -m pip install cx_freeze
    Defaulting to user installation because normal site-packages is not writeable
    Collecting cx_freeze
      Using cached cx_Freeze-6.15.5.tar.gz (1.5 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Requirement already satisfied: setuptools<69,>=62.6 in /home/test/.local/lib/python3.9/site-packages (from cx_freeze) (68.0.0)
    Building wheels for collected packages: cx_freeze
      Building wheel for cx_freeze (pyproject.toml) ... done
      Created wheel for cx_freeze: filename=cx_Freeze-6.15.5-cp39-cp39-aix_7205_2319_64.whl size=297891 sha256=07dad3ad5d52e5635c09c1c50fa66ba51d74692dfdeb9415e746268c55cfb807
      Stored in directory: /home/test/.cache/pip/wheels/a3/d4/f6/733c0676ad242863b2b7d4b2f3476f0a39f90b70a1ef2b5cdd
    Successfully built cx_freeze
    Installing collected packages: cx_freeze
    Successfully installed cx_freeze-6.15.5

    can not build, shows missing Console-cpython-39. 

    and there is nothing in python3.9/site-packages/cx_Freeze/bases. not sure how to get the Console-cpython-39.

    python3 setup.py build
    Traceback (most recent call last):
      File "/home/test/hc/setup.py", line 20, in <module>
        Executable('HC_OS_SCAN_AIX_PYTHON.py', base=base)
      File "/home/test/.local/lib/python3.9/site-packages/cx_Freeze/executable.py", line 43, in __init__
        self.base = base
      File "/home/test/.local/lib/python3.9/site-packages/cx_Freeze/executable.py", line 77, in base
        raise OptionError(f"no base named {name!r} ({name_base!r})")
    cx_Freeze.exception.OptionError: no base named 'Console' ('Console-cpython-39')

    on AIX 7.3 I have python3.9 and openxlc installed, when I try to install cx_freeze, it has error below

    python3 -m pip install cx_freeze
    Defaulting to user installation because normal site-packages is not writeable
    Collecting cx_freeze
      Using cached cx_Freeze-6.15.5.tar.gz (1.5 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... done
    Collecting setuptools<69,>=62.6
      Using cached setuptools-68.0.0-py3-none-any.whl (804 kB)
    Building wheels for collected packages: cx_freeze
      Building wheel for cx_freeze (pyproject.toml) ... error
      error: subprocess-exited-with-error
    
      Building wheel for cx_freeze (pyproject.toml) did not run successfully.
      exit code: 1
    
      [113 lines of output]
      /tmp/pip-build-env-k3mf0fex/overlay/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
        config = read_configuration(filepath, True, ignore_option_errors, dist)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.aix-7301-2319-64-cpython-39
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/__main__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/_compat.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/cli.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/common.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/darwintools.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/exception.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/executable.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/finder.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/freezer.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/module.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/parser.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/setupwriter.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/winmsvcr.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/winversioninfo.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/bases
      copying cx_Freeze/bases/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/bases
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/_bdist_msi.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/_pydialog.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/bdist_mac.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/bdist_msi.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/bdist_rpm.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/build_exe.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/install.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      copying cx_Freeze/command/install_exe.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/command
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/_libs.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/_qthooks.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/clr.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/crypto.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/cv2.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/exclude.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/glib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/matplotlib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/multiprocessing.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/numpy.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/pil.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/pytz.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/scipy.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/skimage.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/sklearn.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/ssl.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/tkinter.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/torch.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      copying cx_Freeze/hooks/xlib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/__startup__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/console.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/consolesetlibpath.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/sharedlib.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/initscripts/sharedlibsource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/_append_to_init.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/resource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      copying cx_Freeze/hooks/pyqt6/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      copying cx_Freeze/hooks/pyqt6/debug.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/debug.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/resource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      creating build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/__init__.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/debug.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/resource.py -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      running egg_info
      writing cx_Freeze.egg-info/PKG-INFO
      writing dependency_links to cx_Freeze.egg-info/dependency_links.txt
      writing entry points to cx_Freeze.egg-info/entry_points.txt
      writing requirements to cx_Freeze.egg-info/requires.txt
      writing top-level names to cx_Freeze.egg-info/top_level.txt
      reading manifest file 'cx_Freeze.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'doc/src/license.rst'
      writing manifest file 'cx_Freeze.egg-info/SOURCES.txt'
      copying cx_Freeze/util.pyi -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze
      copying cx_Freeze/initscripts/frozen_application_license.txt -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/initscripts
      copying cx_Freeze/hooks/pyqt5/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/resource.qrc -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt5/resource.sh -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt5
      copying cx_Freeze/hooks/pyqt6/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyqt6
      copying cx_Freeze/hooks/pyside2/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/resource.qrc -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside2/resource.sh -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside2
      copying cx_Freeze/hooks/pyside6/qt.conf -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/resource.qrc -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      copying cx_Freeze/hooks/pyside6/resource.sh -> build/lib.aix-7301-2319-64-cpython-39/cx_Freeze/hooks/pyside6
      running build_ext
      creating build/temp.aix-7301-2319-64-cpython-39
      creating build/temp.aix-7301-2319-64-cpython-39/source
      creating build/temp.aix-7301-2319-64-cpython-39/source/bases
      ibm-clang_r -DNDEBUG -O2 -qmaxmem=-1 -I/usr/opt/python3/include -I/usr/include -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -qbitfields=signed -qalloca -O2 -qmaxmem=-1 -I/usr/opt/python3/include -I/usr/include -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT -qbitfields=signed -qalloca -O2 -qmaxmem=-1 -I/usr/opt/python3/include/python3.9 -c source/bases/console.c -o build/temp.aix-7301-2319-64-cpython-39/source/bases/console.o
      .orig: error: unknown argument: '-qmaxmem=-1'
      .orig: error: unknown argument: '-qbitfields=signed'
      .orig: error: unknown argument: '-qalloca'
      .orig: error: unknown argument: '-qmaxmem=-1'
      .orig: error: unknown argument: '-qbitfields=signed'
      .orig: error: unknown argument: '-qalloca'
      .orig: error: unknown argument: '-qmaxmem=-1'
      error: command '/opt/IBM/openxlC/17.1.0/bin/ibm-clang_r' 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 cx_freeze
    Failed to build cx_freeze
    ERROR: Could not build wheels for cx_freeze, which is required to install pyproject.toml-based projects



    ------------------------------
    Jun Hu
    ------------------------------



  • 5.  RE: How to install cx_Freeze on AIX?

    Posted Mon August 14, 2023 04:20 AM

    if you read your logs carefully you might notice that you are NOT using xlc but ibm clang which is not compatible. as said the aix delivered python3 is build using xlc compiler so you have to use the xlc compiler to build python modules, or better use the freeware python3 to spare you from all this hassles.



    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 6.  RE: How to install cx_Freeze on AIX?

    Posted Mon August 14, 2023 04:31 AM

    on the AIX 7.3, I use openxlc, not xlc since I don't have a xlc version can install on 7.3. 

    so I try it on the AIX 7.2, I use xlc, and installed cx_Freeze successful, but I can not use it compile any python file, because it shows error. seems Console-cpython-39 is not generated during install cx_freeze with pip. could you help to give some advice how to generate Console-cpython-39? thanks. 

    cx_Freeze.exception.OptionError: no base named 'Console' ('Console-cpython-39')



    ------------------------------
    Jun Hu
    ------------------------------



  • 7.  RE: How to install cx_Freeze on AIX?

    Posted Mon August 21, 2023 02:14 AM

    Hey everyone, I've been digging through the logs and noticed something odd. It seems we're using IBM Clang, not XLC. Just a heads up, the AIX-delivered Python3 was built using the XLC compiler, so for building Python modules, XLC should be the go-to. Maybe consider using the freeware Python3 to save some headaches? Honestly, looking back, I wish I hadn't even started this thread. My apologies. 🤦‍♂️



    ------------------------------
    Abdullah Ahmmas
    ------------------------------



  • 8.  RE: How to install cx_Freeze on AIX?

    Posted Mon August 14, 2023 04:29 AM

    https://cx-freeze.readthedocs.io/en/latest/installation.html

    As mentioned by @C- -T I think you can go with Toolbox python3. Get the source tar file of cx_Freeze, extract it and then run "python3 setup.py build". This will build the Console-cpython-39 I guess. Then install it.

    You need the below changes in the setup.py 

    --- setup.py_orig       2023-08-14 03:12:57.722973777 +0000
    +++ setup.py    2023-08-14 03:16:06.002972958 +0000
    @@ -26,6 +26,7 @@
     PLATFORM = get_platform()
     IS_MACOS = PLATFORM.startswith("macos")
     IS_MINGW = PLATFORM.startswith("mingw")
    +IS_AIX = PLATFORM.startswith("aix")
     IS_WINDOWS = PLATFORM.startswith("win")
     IS_CONDA = Path(sys.prefix, "conda-meta").is_dir()
     
    @@ -105,6 +106,8 @@
                 if IS_MACOS:
                     extra_args.append("-Wl,-export_dynamic")
                     extra_args.append("-Wl,-rpath,@loader_path/lib")
    +            if IS_AIX:
    +                pass
                 else:
                     if get_config_var("LINKFORSHARED"):
                         extra_args.extend(get_config_var("LINKFORSHARED").split())



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



  • 9.  RE: How to install cx_Freeze on AIX?

    Posted Tue August 15, 2023 02:25 AM

    thanks for the steps, it build console-cpython-39 on AIX 7.2 with xlc. 

    and after patchelf isntalled, I can use the cx_freeze to compile the py file. 

    I will try to build executable and run on other AIX servers. 

    Thank you very much. 



    ------------------------------
    Jun Hu
    ------------------------------



  • 10.  RE: How to install cx_Freeze on AIX?

    Posted Fri September 01, 2023 09:31 AM
    Great tip, @C--T! It's awesome that you've found a workaround for getting cx_Freeze to work on different platforms. The changes to the setup.py file look straightforward but are probably crucial for anyone working on a system like AIX. These are the little adjustments that can make a big difference but are often overlooked in broader documentation.
     
    And for anyone who isn't familiar with modifying setup files, this is a good reminder that sometimes you've got to dive in and make changes to get things to work in your specific environment. Just make sure to backup any original files before making changes, so you can revert if needed.
     
    Keep these tips coming; they're valuable for tv tackling those nuanced issues that can be huge roadblocks.


    ------------------------------
    Abdullah Ahmmas
    ------------------------------



  • 11.  RE: How to install cx_Freeze on AIX?

    Posted Thu September 07, 2023 12:10 AM

    I have installed cx_Freeze and able to use it create excutable file. 

    I'm able to run it on the same server which I create the excutable file, but when I copy the files to other servers and run it. 

    it got some error...

    exec(): 0509-036 Cannot load program ./CALL_PYTHON because of the following errors:
            0509-150   Dependent module libpython3.9.a(libpython3.9.so) could not be loaded.
            0509-022 Cannot load module libpython3.9.a(libpython3.9.so).
            0509-026 System error: A file or directory in the path name does not exist

    even I included libpython3.9.a(libpython3.9.so) in the build, still has the same error, 

    could you advice how to resolve this issue? thanks. 



    ------------------------------
    Jun Hu
    ------------------------------



  • 12.  RE: How to install cx_Freeze on AIX?

    Posted Thu September 21, 2023 09:14 AM
    Oh man, dependency issues like these can be a real headache, can't they? I've run into similar roadblocks when porting Python executables to different servers. It seems like the server where you're trying to run the executable doesn't know where to find libpython3.9.a(libpython3.9.so).
     
    First things first, did you try specifying the path of the library in your environment variables or during the build process? Sometimes, adding the path to LD_LIBRARY_PATH can do the trick.
     
    Another thing to consider is if the server you're moving the file to has a compatible architecture and system libraries. It's possible that there might be inconsistencies that are causing the library not to load.
     
    Finally, it could also be a permissions issue. Double-check that the library goku tu and the directories it resides in have appropriate permissions to be accessed by your executable.
     
    I'd recommend trying these out to see if it solves your issue. Let me know how it goes. Good luck!


    ------------------------------
    Abdullah Ahmmas
    ------------------------------



  • 13.  RE: How to install cx_Freeze on AIX?

    Posted Wed August 16, 2023 01:32 AM
    Installing cx_Freeze on AIX (Advanced Interactive eXecutive) can be a bit more involved than on other platforms due to its unique nature. However, here are the general steps you can follow:
     
    Prerequisites:
     
    Ensure you have Python installed on your AIX system. If not, you'll need to get it from the AIX toolbox or compile it from source.
    Development tools and libraries (like GCC) are required to compile certain packages.
    Install pip (if not already installed):
     
    Copy code
    Use pip to install cx_Freeze:
     
    Copy code
    pip install cx_Freeze
    If you run into errors during installation, it might be due to missing dependencies or AIX-specific quirks. You may need to obtain these dependencies manually or make adjustments to the installation process to accommodate AIX.
     
    Compile from Source:
    If you're unable to install cx_Freeze using pip, you can try compiling it from source:
     
    Download the cx_Freeze source code from its GitHub repository or PyPI.
    Navigate to the directory containing the source code.
    Run the following commands to compile and install:
     
    Copy code
    python setup.py build
    python setup.py install
    Check Installation:
    After installation, you can verify it by running:
     
    Copy code
    cxfreeze --version
    Remember, GB AIX might not always have the same vast libraries and easy setups as Linux or other UNIX-like OSs, so you may need to adjust these instructions to fit your specific setup or environment. If you run into specific issues, consider reaching out to AIX-specific forums or communities, as they might have encountered similar challenges.


    ------------------------------
    Abdullah Ahmmas
    ------------------------------