-
Notifications
You must be signed in to change notification settings - Fork 430
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
b"Exception in connect function: Class not found b'org/jnius/NativeInvocationHandler'" when trying to use camera module #527
Comments
Thanks for testing the PR and posting your results. To figure out what's going on, I need some info:
|
I am using kivy 1.8.0
there no more information in the logs, just the line i sent you. is there a way to get a more detailed log? |
pyjnius seems to be 1.2.0 |
python for android currently pins pyjnius to commit |
@tshirtman I tried the official version also. Same issue, that's why i have tried to change. |
I'm looking into building/using latest pyjnius with android, at the moment it's not possible. I'm not sure this would solve this particular issue, but it would maybe help finding the cause and fixing it. |
I couldn't get the NativeInvocationHandler issue reproduced, but i couldn't get a picture either, i think the plyer's code is obsolete, so i looked into ways to get it up to current apis, but couldn't get the result picture from java to kivy, https://gist.github.com/4bf8fdf745eb4a961b0f83066fe6a8d3 if anyone wants to have a look, sorry, this is not exactly beautiful code, as i tried different things and kept things that were nearly working commented just in case. This is using latest pyjnius, with a slight update to the recipe to get it to build, but i don't think it's related. kivy/python-for-android#2036 i created a pull request, you can use these files as a local recipe if you want to try with latest pyjnius. |
@tshirtman Thanks! |
Once a working and reliable method is found, it can be generalized again and put inside plyer, for now, it's just easier to experiment with pyjnius direclty to find that method. |
For the camera to work, one has to add an android fileprovider to solve #500. The PR for that is kivy/python-for-android#1922 but unfortunately I could not find time to document its usage yet. |
@Fak3 any updates about that ? how can I manually apply your fix? |
You can checkout git branch from that pr somwhere, then launch |
@Fak3 is that already in main ? |
after applying @franccisco's #520 fix, i am getting this error when trying to access the camera with camera.take_picture:
b"Exception in connect function: Class not found b'org/jnius/NativeInvocationHandler'"
The text was updated successfully, but these errors were encountered: