-
Notifications
You must be signed in to change notification settings - Fork 499
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
Black screen when import transformers #1621
Comments
Hi @Benoit-W ! Can you please post a full log? However, Feel free to share the full log here, then, after the triaging, we will move the issue to the appropriate repository (or split this issue into multiple ones, each one, targeting a specific package) |
Hi @misl6 ! I just have few logs from the buildozer android debug command, but no log from test on android device because i didn't achieve to connect my phone to the computer because i am using wsl. When I download the apk on my phone, there is a black screen and it fail to load. But if you want to try the compilation by yourself, my testing code is here : from kivy.app import App class TransformersImport(App): TransformersImport().run() |
To get a log copy the .apk to Windows and install with adb: But as misl6 points out this is not going to work unless you add the transformers dependencies to requirements and these dependencies are ported to Android if necessary |
Versions
Description
I am trying to use transformers library in order to do offline ML. When i try to import transformers, i have a black screen and nothing launch. I tried to import the library and print("transformers imported") through a button function. The app is well launched, but the app crash when I push the import button which import the transformers library.
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: