Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some python tests fail to find the 'xgboost' executable #11215

Closed
yurivict opened this issue Feb 7, 2025 · 1 comment · Fixed by #11245
Closed

Some python tests fail to find the 'xgboost' executable #11215

yurivict opened this issue Feb 7, 2025 · 1 comment · Fixed by #11245

Comments

@yurivict
Copy link

yurivict commented Feb 7, 2025

For example:

    def get_exe(self):
        if platform.system() == 'Windows':
            exe = 'xgboost.exe'
        else:
            exe = 'xgboost'
        exe = os.path.join(self.PROJECT_ROOT, exe)
>       assert os.path.exists(exe)
E       AssertionError: assert False
E        +  where False = <function exists at 0x16d42354f560>('/usr/ports/misc/py-xgboost/work-py311/xgboost-2.1.4/xgboost')
E        +    where <function exists at 0x16d42354f560> = <module 'posixpath' (frozen)>.exists
E        +      where <module 'posixpath' (frozen)> = os.path

The /usr/ports/misc/py-xgboost/work-py311/xgboost-2.1.4/xgboost file doesn't exist, and it doesn't appear to be built by the CMakeLists.txt script either.

Where is this executable supposed to come from?

@trivialfis
Copy link
Member

Those are the tests for the deprecated CLI:

option(BUILD_DEPRECATED_CLI "Build the deprecated command line interface" OFF)

I will make those tests optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants