chaquo / chaquopy

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

PaddlePaddle Support #136

Open SegalMan opened 4 years ago

SegalMan commented 4 years ago

Hello,

Currently trying to run a script using PaddlePaddle 1.5.1 in its dependencies. So my default config includes:

python { buildPython "C:\Path\To\Python\Interpreter\python.exe" pip { install "paddlepaddle==1.5.1" } }

I'm using Python 3.6 on Windows, and when I build I get:

Executing tasks: [:app:generateDebugSources] in project C:\Path\Tol\My\Project\Project

Configure project :app Warning: This version of Chaquopy has not been tested with Android Gradle plugin versions beyond 3.4.0. If you experience problems, please edit com.android.tools.build:gradle in the top-level build.gradle. See https://chaquo.com/chaquopy/doc/current/versions.html.

Task :app:preBuild UP-TO-DATE Task :app:preDebugBuild UP-TO-DATE Task :app:checkDebugManifest UP-TO-DATE Task :app:compileDebugRenderscript NO-SOURCE Task :app:compileDebugAidl NO-SOURCE Task :app:generateDebugBuildConfig UP-TO-DATE Task :app:extractPythonBuildPackages UP-TO-DATE

Task :app:generateDebugPythonRequirements Chaquopy: Installing for arm64-v8a Looking in indexes: https://pypi.org/simple, https://chaquo.com/pypi-2.1, https://chaquo.com/pypi-6.2 Collecting paddlepaddle==1.5.1 Could not find a version that satisfies the requirement paddlepaddle==1.5.1 (from versions: ) No matching distribution found for paddlepaddle==1.5.1 Chaquopy: Exit status 1

Task :app:generateDebugPythonRequirements FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:generateDebugPythonRequirements'. buildPython failed (org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Segal\Downloads\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64\python.exe'' finished with non-zero exit value 1). For full details, open the 'Build' window and switch to text mode with the 'Toggle view' button on the left.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 5s 4 actionable tasks: 1 executed, 3 up-to-date

About the warning: I use grade plugin version 3.5.0, don't know if that might have anything to do with it, but I'm guessing the package is currently not supported? If so, is there a way to add it somehow? Would downloading the wheel file from pypi and installing locally help somehow? These are paddlepaddle's dependencies according to pipdeptree:

paddlepaddle==1.5.1

mhsmith commented 4 years ago

Thanks for the request. 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 for updates.

mhsmith commented 3 years ago

Since only one person has requested this package, we won't be adding it in the foreseeable future. If anyone else is interested, please post a comment and I'll reopen the issue.

daniyal214 commented 2 years ago

Collecting paddlepaddle Could not find a version that satisfies the requirement paddlepaddle (from versions: ) No matching distribution found for paddlepaddle

Any update?

mhsmith commented 2 years ago

Sorry, no update for now. But I've seen how many people have given the issue a thumbs up, and I'll take that into account when deciding which packages to add in the future.

daniyal214 commented 2 years ago

Sorry, no update for now. But I've seen how many people have given the issue a thumbs up, and I'll take that into account when deciding which packages to add in the future.

Thanks for reply.. One more question does it support paddleocr? Because the package that are necessary for it are not getting built.

mhsmith commented 2 years ago

It looks like paddleocr requires lmdb, which we don't currently support.

mhsmith commented 1 year 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.