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 Xgboost Installation

    Posted Fri October 13, 2023 04:36 PM

    Hi AIX Expert,

    I have previously installed xgboost successfully on one of our AIX servers (related to another thread: "Error during installing xgboost"  - https://community.ibm.com/community/user/power/discussion/error-during-installing-xgboost). Now I just installed xgboost on another AIX server and it has issue: 1) in the installation log, it has some warning message "DEPRECATION: xgboost was installed using the legacy 'setup.py install' method"; 2) when I tried to do 'import xgboost', I got some file permission error (see below for details). The only difference between the 2 servers is: the previous installed server has python 3.9.17 and the current one has python 3.9.18. Can you please help?

    Thanks

    Mi

    Warning message is the installation log:

    ......

    running install_scripts
      writing list of installed files to '/tmp/pip-record-w_ulk_0g/install-record.txt'
      Running setup.py install for xgboost ... done
      DEPRECATION: xgboost was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368
    Successfully installed xgboost-1.7.5

    Error message when run 'import xgboost':

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/opt/freeware/lib64/python3.9/site-packages/xgboost/__init__.py", line 7, in <module>
        from . import collective, dask, rabit
     ......


      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 621, in add_entry
        for dist in find_distributions(entry, True):
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2096, in find_on_path
        for dist in factory(fullpath):
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2161, in distributions_from_metadata
        yield Distribution.from_location(
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2609, in from_location
        return cls(
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3010, in _reload_version
        md_version = self._get_version()
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2791, in _get_version
        version = _version_from_file(lines)
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2575, in _version_from_file
        line = next(iter(version_lines), '')
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2786, in _get_metadata
        for line in self.get_metadata_lines(name):
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1441, in get_metadata_lines
        return yield_lines(self.get_metadata(name))
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1431, in get_metadata
        value = self._get(path)
      File "/opt/freeware/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1635, in _get
        with open(path, 'rb') as stream:
    PermissionError: [Errno 13] Permission denied: '/opt/freeware/lib64/python3.9/site-packages/xgboost-1.7.5-py3.9.egg-info/PKG-INFO'

    /opt/freeware/lib64/python3.9/site-packages/xgboost-1.7.5-py3.9.egg-info: ls -lrt
    total 72
    -rw-------    1 root     system            1 Mar 30 2023  not-zip-safe
    -rw-------    1 root     system         1323 Oct 13 15:15 PKG-INFO
    -rw-------    1 root     system            1 Oct 13 15:15 dependency_links.txt
    -rw-------    1 root     system          189 Oct 13 15:15 requires.txt
    -rw-------    1 root     system           19 Oct 13 15:15 top_level.txt
    -rw-------    1 root     system        14769 Oct 13 15:15 SOURCES.txt



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


  • 2.  RE: Issue with Xgboost Installation

    Posted Mon October 16, 2023 03:00 AM

    What command is used for installation. As a good practice , do share the commands used.

    In above output of file access permission, looks, only the root user is having the access for read/write. 

    Normally, it should be like '-rw-r--r--'  so all users will have at least  read access.

    Thanks

    Ranjit



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