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
Please add chaquopy support to be built into a library module (AAR) #94
Comments
Yes, that would be a really nice feature. I would need it too. |
If anyone else would like this feature, please subscribe to this issue and add a thumbs-up above. |
I need too |
Agree - would be a great feature! |
I need to use chaquopy plugin from an android library too. |
This feature is great |
Hi, we need to use Python in an app module (com.android.library). It's possible to install ChaquoPy in a module with 7.0.2 version? Thanks! |
Currently Chaquopy can only be used in a top-level app, not in an AAR. |
We need this feature for our project. It's scheduled to develop this function in Chaquopy? |
Can you give some details of your development workflow, and explain why you want to use Chaquopy in an AAR rather than directly in the top-level app? |
Hello,
We have an application that is chunked into modules. Some modules are generic and reused in different applications. The module that should use chaquopy is an implementation of the generic module.
To use chaquopy I had to destroy the complete architecture of the application and put back the modules into the top level app. Now, the generic modules are dependant of the top level app to work which is an ugly implementation.
Audrey VIDAL
|
Hi Malcolm, |
Hi @mhsmith , I gave a thumbs up for this feature because my company has a Xamarin application that could make use of a separate python application we have. Xamarin cannot directly use Android code, however it can bind Android libraries for use. BTW The native Android application we tested Chaquopy with worked wonderfully well as a top level app! |
Thanks everyone for your replies. I'm thinking of adding support for a single Chaquopy-based AAR per app. So your options would be either:
Would this solve your use cases? |
Thanks Malcolm, |
All the Python settings would be in the library module's build.gradle file. The only change required to the app-level build.gradle file would be to add the library as a dependency. |
Thanks, I tested and I received this error (with ChaquoPy 6.3.0):
|
Yes, it won't work in the current version, I was talking about a plan for the next version. |
Yes, please. I'm also developing an Android app in Xamarin that need to use this library to run some python code. |
This would be a very useful feature. As it provides separation of concern and independence in development flow. |
This issue is fixed in Chaquopy 8.0.0. To upgrade, open your app's top-level build.gradle file and change the version number of As mentioned above, Chaquopy can still only be used in one module in a project: either in the app module, or in exactly one library module. Attempting to use it in multiple modules will give the error “More than one file was found with OS independent path”. |
Hi, Thank you for the new release! We use JitPack to easily sync up our library modules to the main app. I added a new release for the library and went to JitPack to import as dependency, but it is showing this error log:
Also, I'm getting this error while trying to add the dependency:
Are these issues connected? And how do I resolve them? I've passed the right dependencies for JitPack as well as Chaquopy. |
If you're using a service to build a Chaquopy-based module, then that service will need to have Python available. The only way to avoid this is if your module doesn't use any feature which runs Python at build time: specifically, the features in these sections of the documentation:
|
Okay, so the alternative would be to update the package manually on the main app whenever I make changes on the AAR right? |
I think your options are:
|
gecsbernat commentedMar 12, 2019
I am trying to use chaquopy https://chaquo.com/chaquopy/ android plugin for developing an android app that uses python script for some serious calculations, and I would like to make the app module as an android library (.AAR) to be able to reuse that in other project. (.eg ionic app).
The text was updated successfully, but these errors were encountered: