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

Failed to install lightgbm #391

Open
pabloj121 opened this issue Oct 26, 2020 · 2 comments
Open

Failed to install lightgbm #391

pabloj121 opened this issue Oct 26, 2020 · 2 comments
Labels

Comments

@pabloj121
Copy link

I am using Chaquopy to solve a Machine Learning problem. Here i show you part of the build.gradle

android { compileSdkVersion 30 buildToolsVersion "25.0.3"

defaultConfig { applicationId "de.dorianscholz.openlibre" minSdkVersion 16 targetSdkVersion 30 versionCode 5 versionName "0.2.3" multiDexEnabled true vectorDrawables.useSupportLibrary = true testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' project.ext.set("archivesBaseName", defaultConfig.applicationId + "-" + defaultConfig.versionName);

ndk { abiFilters "armeabi-v7a", "x86" }

    python{
        pip{
            install "pandas"
            install "sklearn"
            install "numpy"
            install "lightgbm"
        }
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
}

compileOptions{
    // Flag to enable support for the new language APIs
    coreLibraryDesugaringEnabled true
    // Sets Java compatibility to Java 8
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}

sourceSets{
    main{
        //python.srcDir "C:\\Users\\pablo\\Desktop\\Pablo\\TFG\\Proyecto\\OpenLibre\\TensorFlow"
        python{
            srcDirs = ["src/main/python"]
        }
    }
}

When I try to build the project, I obtain the next error:

ERROR: Failed to install lightgbm from https://files.pythonhosted.org/packages/0f/fe/3032d68f7bf3e3b65aafecc628cde020759eb23bde406855860f664cdf7d/lightgbm-3.0.0.tar.gz.
For assistance, please raise an issue at https://github.com/chaquo/chaquopy/issues.
Chaquopy: Exit status 1

@mhsmith
Copy link
Member

mhsmith commented Oct 26, 2020

Thanks for the report. This package isn't currently a priority, but if anyone else wants it too, please click the thumbs-up button above and subscribe to this issue.

@mhsmith
Copy link
Member

mhsmith commented Jul 16, 2023

The package build tool is now open-source, so if you'd like to try building this package yourself, follow the instructions here. And if you're successful, please make a pull request so we can add the package to the public repository.

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

No branches or pull requests

2 participants