-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
autoclass: Class only found when called in specific places? #2242
Comments
Hmm, interesting.... All the examples show autoclass calls that are global (and probably more to the point static) And while digging I found this, which may be also be interesting |
In my case the build itself fails while using below in spec file |
I think the issue is most likely that you're trying to resolve the class from a new native thread. See #2533 for details. |
@cathay Was this resolved by the comment above? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Versions
Description
I tried to use ffprobe in my
helper.py
as:We got the error
jnius.jnius.JavaException: Class not found b'com/arthenica/mobileffmpeg/FFprobe'
. The fix for it is putffprobe = autoclass('com.arthenica.mobileffmpeg.FFprobe')
in__init__.py
but it seems not straightforward to me. I would like to get some thoughts on it.get_video_length
was called on different thread from main threadbuildozer.spec
ffmpeg repository: https://github.com/tanersener/mobile-ffmpeg
Command:
The text was updated successfully, but these errors were encountered: