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 python3-Cython package

    Posted Wed October 25, 2023 11:55 AM

    Hi Ranjit,

    When I installed pyreadstat 1.2.2 package, Python 3.9.17 doesn't recognize the installed python3-Cython package (see below). I have to install PYPI Cython 0.29.36 instead and pyreadstat 1.2.2 then got installed successfully. During the installation of Cython 9.29.36, Python does find Toolbox's Cython 0.29.24 and uninstalled it (this is strange). Can you please help on this? I prefer using python3-Cython 0.29.24.

    Thanks

    Mi

    python3 -m pip install --no-index --no-build-isolation --find-links=/usr/opt/python3 pyreadstat==1.2.2
    Looking in links: /usr/opt/python3
    Processing ./pyreadstat-1.2.2.tar.gz
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error

     

      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [13 lines of output]
          Traceback (most recent call last):
            File "/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
              main()
            File "/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
              json_out['return_val'] = hook(**hook_input['kwargs'])
            File "/opt/freeware/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
              return hook(metadata_directory, config_settings)
            File "/opt/freeware/lib/python3.9/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
              self.run_setup()
            File "/opt/freeware/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup
              exec(code, locals())
            File "<string>", line 21, in <module>
          ModuleNotFoundError: No module named 'Cython'
          [end of output]



    ------------------------------
    Mi Wang
    ------------------------------


  • 2.  RE: Issue with python3-Cython package

    Posted Thu October 26, 2023 02:39 AM
    Edited by Ranjit Ranjan Thu October 26, 2023 02:39 AM

    Hi

    you said 'During the installation of Cython 9.29.36, Python does find Toolbox's Cython 0.29.24 and uninstalled it (this is strange).' . 
    So at least Cython 0.29.36 must in your system, right ??

    First verify which Cython is installed in your system. 

    Remove it if it's not provided from AIX tool box. 

    Then install again from toolbox.

    I don't see any issue with pyreadstat with Cython provided from AIX Toolbox.

    Thanks

    Ranjit



    ------------------------------
    Ranjit Ranjan
    ------------------------------