Hi, are you referring to the red underline on the numpy import statement? If so, despite that, the program executed successfully as you can tell from the logs. This tells me that numpy was installed but I guess there was a delay in syncing the studio environment to that, which caused the underline to show
Hi, if your python folder is not showing, please watch from 01:50 - 02:10 of this video th-cam.com/video/8Bth0BuLhbs/w-d-xo.html I have covered this exact issue in that video. Hope this helps!
What if I want to apply opencv operations on a list of images passed view user or any method to python and then perform operations and then return them to show in image views.
Thanks! To create the python folder and py file this video could help: th-cam.com/video/G1P-RiUbAfI/w-d-xo.html If not let us know and we can troubleshoot further
Hi, if your python folder is not showing, please watch from 01:50 - 02:10 of this video th-cam.com/video/8Bth0BuLhbs/w-d-xo.html I have covered this exact issue in that video. Let us know how it goes. Hope this helps!
Thanks so much for the explanation! I have one doubt though, how would the code be different if I wanted to call the python script in another activity instead of MainActivity?
I'm assuming the "other activity" you mentioned is implemented by a Java class and that class has a method to call the Python module. The Python wrapper code should remain similar even if you are calling the Python module from a Java method of that Java class
Hello sir! Thankyou so much for the video. Can you please help me with the error i am getting when i try to sync the gradle file, it says "Gradle DSL method not found: 'python()'
@@laptopml Thankyou so much sir for replying, but I fixed that error myself. Now after creating a file with .py extension it is asking for me to configure python interpreter, can you please help me with that?
Thanks for the video! have one small error though: When I try to run the app, this exception appears when building: Configuration cache state could not be cached: app\build\python\env\debug\Lib does not exist
In your gradle.properties file, is there a line like 'org.gradle.unsafe.configuration-cache=true' If so, can you remove it and rebuild your project? Let me know if this line is not there, we may have to look elsewhere
Thanks for the video, however when i'm trying to run the mainactivity.java, this message keeps appearing Process 'command 'C:\Users\xxxx\python.exe'' finished with non-zero exit value 1 Have you encountered this error while using android studio, as I haven't seen it in your video?
I would start by wrapping the Python integration code in MainActivity.java in a try catch block and see if there is an exception we can catch and examine. try { Python py = Python.getInstance(); ... System.out.println("...."); } catch(Exception ex) { System.out.println("Exception caught: " + ex.getMessage()); } Hope this helps.
Have you tried abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' ? As it says x86 (x86_32) ABI support is missing in abiFilters. Some ChromeOS devices can run x86 chips. Hope this helps.
Pycharm and Anaconda are for different requirements. Anaconda does Python installation/distribution whereas Pycharm is a Development Environment (IDE) with an editor that you can use for code development. You can use Pycharm or other tools like Jupyter to code in Python. You will still need a tool like Anaconda to install and manage Python versions.
I needed this video, thank you so much❤
You're welcome
can you please help me to integrate python in android studio, i am having some trouble setup@@laptopml
Awesome! You saved me a lot of time. Thanks a lot. I made it using Jetpack compose of course with Kotlin and works.
You're welcome! Great to know it worked
Hello sir, why despite installing the library numpy, it still shows Errors in your my.helper.py file (12:24)
Hi, are you referring to the red underline on the numpy import statement? If so, despite that, the program executed successfully as you can tell from the logs. This tells me that numpy was installed but I guess there was a delay in syncing the studio environment to that, which caused the underline to show
1:18 Groovy DSL
Hi Sir,
Thank you for the video when I trying to right click on the python folder and creating new file that python file is not showing for me
Hi, if your python folder is not showing, please watch from 01:50 - 02:10 of this video th-cam.com/video/8Bth0BuLhbs/w-d-xo.html I have covered this exact issue in that video.
Hope this helps!
What if I want to apply opencv operations on a list of images passed view user or any method to python and then perform operations and then return them to show in image views.
I will post very soon a video on opencv android python. It works, I've tested it, will share the method that makes it work. Thanks for your question!
Check out OpenCV on Android Python: th-cam.com/video/yusiw_YyVlI/w-d-xo.html
Thank youuuu, I've subscribed. I have a question.. the python folder already exists, but why can't I create a python file? whats wrong🥲(7:50)
Thanks! To create the python folder and py file this video could help: th-cam.com/video/G1P-RiUbAfI/w-d-xo.html If not let us know and we can troubleshoot further
Thank you for the video sir, But when I giving right click on the python folder and I am not getting python file in the list
Hi, if your python folder is not showing, please watch from 01:50 - 02:10 of this video th-cam.com/video/8Bth0BuLhbs/w-d-xo.html I have covered this exact issue in that video.
Let us know how it goes. Hope this helps!
Created separate video on Python Source Folder creation issue: th-cam.com/video/G1P-RiUbAfI/w-d-xo.html Let me know if this helps
Wonderful, I enjoy this video..Thank you
Thank you too!
great video, which version of android studio is using to run smoothly.
Thanks.
For Android Studio version, please see video description
Thanks so much for the explanation! I have one doubt though, how would the code be different if I wanted to call the python script in another activity instead of MainActivity?
I'm assuming the "other activity" you mentioned is implemented by a Java class and that class has a method to call the Python module. The Python wrapper code should remain similar even if you are calling the Python module from a Java method of that Java class
Hello sir! Thankyou so much for the video. Can you please help me with the error i am getting when i try to sync the gradle file, it says "Gradle DSL method not found: 'python()'
Can you share your build.gradle file? We have to see if there is any config incorrectly set in a block or if a dependency is an issue
@@laptopml Thankyou so much sir for replying, but I fixed that error myself. Now after creating a file with .py extension it is asking for me to configure python interpreter, can you please help me with that?
See 04:38 in the video, I explain there the path of the python interpreter configuration in build.gradle
@@laptopml Thankyou so much. Your video was very helpful to me!!
I haven't an import statement on the eleven minute. What the reason?
What is the import statement you're expecting?
@@laptopml I expected "Sign in to start collecting".
Thanks for the video! have one small error though: When I try to run the app, this exception appears when building: Configuration cache state could not be cached: app\build\python\env\debug\Lib does not exist
In your gradle.properties file, is there a line like 'org.gradle.unsafe.configuration-cache=true'
If so, can you remove it and rebuild your project? Let me know if this line is not there, we may have to look elsewhere
@@laptopml Thanks again! That solved the problem, I'm definitely subscribing, good luck with everything!
Can you help me i got this error
error: systemerror: frame does not exist
Can you provide a bit more context of the error? E.g. what were you trying to configure or code or execute?
Thanks for the video, however when i'm trying to run the mainactivity.java, this message keeps appearing
Process 'command 'C:\Users\xxxx\python.exe'' finished with non-zero exit value 1
Have you encountered this error while using android studio, as I haven't seen it in your video?
I would start by wrapping the Python integration code in MainActivity.java in a try catch block and see if there is an exception we can catch and examine.
try {
Python py = Python.getInstance();
...
System.out.println("....");
}
catch(Exception ex) {
System.out.println("Exception caught: " + ex.getMessage());
}
Hope this helps.
Missing x86 ABI support for ChromeOS in abiFilters "arm64-v8a", "x86_64". whata hell should i do ?
Have you tried abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' ? As it says x86 (x86_32) ABI support is missing in abiFilters. Some ChromeOS devices can run x86 chips. Hope this helps.
when creating python script that python file is not showing to me ?
Can you share a bit more details? Do you mean you can't see the python script file from the left side i.e. of Android Studio viewer?
This video can help: th-cam.com/video/G1P-RiUbAfI/w-d-xo.html
Thank you sir,for thia wonderful video,how can I add installing opencv
I'll make a video on opencv shortly. Please stay tuned. Thank you!
Watch OpenCV install playlist: th-cam.com/play/PL1KT-ofSrkBmtwChLx_9dsRU6pauT-fPy.html
can i use pycharm instead of anaconda?
Pycharm and Anaconda are for different requirements. Anaconda does Python installation/distribution whereas Pycharm is a Development Environment (IDE) with an editor that you can use for code development. You can use Pycharm or other tools like Jupyter to code in Python. You will still need a tool like Anaconda to install and manage Python versions.
thanks so much ❤❤
You're welcome 😊
thank you so much
You're welcome!