-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python-package] UNKNOWN python package #6665
Comments
What Linux distribution are you using? That'd help us to replicate this. |
Ubuntu 22.04 from WSL in windows. I also updated cmake from 3.22 to 3.28
version. I can prepare a docker file as necessary to reproduce the issue if
necessary
…On Mon, Oct 7, 2024 at 9:03 AM James Lamb ***@***.***> wrote:
What Linux distribution are you using? That'd help us to replicate this.
—
Reply to this email directly, view it on GitHub
<#6665 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFPIDSOZWQR64LYKLLDM3XTZ2KBDDAVCNFSM6AAAAABPPA7BNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJWHA3TENRQGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I was able to reproduce this in an Ubuntu 22.04 container today (on my M2 mac). docker run \
--rm \
-it ubuntu:22.04 \
bash
apt-get update -y
apt-get install -y --no-install-recommends \
git \
ca-certificates \
curl \
build-essential \
libboost-dev \
libboost-system-dev \
libboost-filesystem-dev \
ocl-icd-opencl-dev \
python3-dev \
python3-pip
CMAKE_VERSION="3.30.0"
curl -O -L \
"https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-$(arch).sh"
mkdir /opt/cmake
sh "cmake-${CMAKE_VERSION}-linux-$(arch).sh" --skip-license --prefix=/opt/cmake
ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake
cmake --version
# cmake version 3.30.0
git clone --recursive https://github.com/microsoft/LightGBM
cd LightGBM
echo "commit: $(git rev-parse HEAD)"
# commit: bbeecc09af946c5ff9b84d1ada4749a9f26bca31
cmake -B build -S . -DUSE_GPU=1
cmake --build build -j$(nproc)
ln -sf /usr/bin/python3 /usr/bin/python
python -m pip install \
-U \
numpy \
scipy \
scikit-learn \
setuptools
sh ./build-python.sh install --precompile logs (click me)
Later, I'll try removing this line so I can inspect the build directory: Line 379 in bbeecc0
I suspect this MIGHT be related to #6624. Will provide more updates soon. |
Nope, this was not it. @ZhenyiLin I found that just updating to a more recent pip install --upgrade pip
sh build-python.sh install --precompile
I saw that work with pip --version
# pip 24.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10) I'm not sure what range of versions will work. Root CauseIt looks like
Your script is running
What
|
Thanks, updating pip works! |
Description
I have used cmake to precompiled a .so file. But when I use build-python to create python support. It ended up create a unknown-0.0.0 package.
Reproducible example
Environment info
LightGBM version or commit hash:
Command(s) you used to install LightGBM
Additional Comments
The text was updated successfully, but these errors were encountered: