chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
753 stars 129 forks source link

Failed to install lightgbm #391

Open pabloj121 opened 3 years ago

pabloj121 commented 3 years ago

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 commented 3 years ago

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 commented 11 months ago

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.