catboost/catboost

Python package--build from source failed

ccylance opened this issue · 11 comments

Problem: build from source failed
Catboost version: latest source code
Operating System: OS 14.0
CPU: Apple M1 Pro

I downloaded the latest code from GitHub and prepared to build the Python Whl package according to the official website instructions, but it showed an error.

image

BTW, does there exist any debug mode for catboost? Really feel confused about how the tree is built. I tried using plain mode and plot the tree structure but found that the tree is also a symmetric tree.

Problem: build from source failed Catboost version: latest source code Operating System: OS 14.0 CPU: Apple M1 Pro

I downloaded the latest code from GitHub and prepared to build the Python Whl package according to the official website instructions, but it showed an error.

What is your python version, pip version and do you have setuptools, wheel and build python packages installed?

BTW, does there exist any debug mode for catboost? Really feel confused about how the tree is built. I tried using plain mode and plot the tree structure but found that the tree is also a symmetric tree.

You can build CatBoost from source with build type set to Debug either using build_native.py with the option --build-type=Debug or when invoking CMake directly and specifying CMAKE_BUILD_TYPE.

If you are talking about debug mode in a sense that more additional information is output then:

  • I think there are too many things and scenarios for what should be output and what not to build a some kind of universally useful debug mode. But we are open to suggestions.

  • CatBoost is open source so you can modify the source code to output what is useful in your debugging case.

What is your python version, pip version and do you have setuptools, wheel and build python packages installed?

@andrey-khropov
Python: 3.9.6
pip: 24.0
setuptools: 69.2.0
wheel: 0.37.0
build: 1.2.1

BTW, I noticed that the piror_numerator might be different in one tree of different depths. Why is this?

one tree of different depths

I don't understand what you mean by this.

P.S. Please don't ask unrelated questions in a single issue, open a separate one or ask in the Discussions page on in the Telegram chat

@andrey-khropov Ok, let's continue discussing the build failure issue here.

image

What revision of the the source code did you use exactly?

Your error is reported on line 311. but this code with user_options has been on line 312 for quite some time.

I am using the latest version from git. I previously made some modifications to the code because I wanted to use GPT to fix the problem. So I pull the code again and try to compile, it showed a new error
image
@andrey-khropov

I am using the latest version from git. I previously made some modifications to the code because I wanted to use GPT to fix the problem. So I pull the code again and try to compile, it showed a new error image @andrey-khropov

This is very weird and I don't think it depends on CatBoost. Try to cleanup .eggs directory and run the build command again.