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

Which version Xgboost works with Python 3.7?

  • 1.  Which version Xgboost works with Python 3.7?

    Posted Fri May 05, 2023 10:14 AM

    Hi,

    I have tried many versions of Xgboost with our python 3.7 environment. But none of them working (see below for error messages). I am wondering maybe someone know some specific old version Xgboost works with python 3.7.

    Thanks

    Mi

    For Xgboost versions >=1.7.0, I got "ERROR: Package 'xgboost' requires a different Python: 3.7.12 not in '>=3.8'". 

    For version<1.7.0, I got the following error:

    copying xgboost/CMakeLists.txt -> build/lib.aix-7.1-3.7/xgboost
    Traceback (most recent call last):
    File "", line 1, in
    File "/tmp/pip-install-4mfse1hj/xgboost/setup.py", line 317, in
    url='https://github.com/dmlc/xgboost')
    File "/opt/freeware/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
    return distutils.core.setup(**attrs)
    File "/opt/freeware/lib64/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
    File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
    File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
    File "/opt/freeware/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 299, in run
    self.run_command('build')
    File "/opt/freeware/lib64/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
    File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
    File "/opt/freeware/lib64/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
    File "/opt/freeware/lib64/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
    File "/opt/freeware/lib64/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
    File "/opt/freeware/lib/python3.7/site-packages/setuptools/command/build_py.py", line 58, in run
    self.build_package_data()
    File "/opt/freeware/lib/python3.7/site-packages/setuptools/command/build_py.py", line 132, in build_package_data
    srcfile in self.distribution.convert_2to3_doctests):
    AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'



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