You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote the following code. It works in my windows with python 3.11.
It also worked when i use "python for android" to compile the android apk.
But the apk is failed when i run the apk after install the apk.
I tried many times, all failed, hope for you help and support. Thanks!!!
The error msgs are as following:
--------------
12-15 14:15:08.131 26124 14916 I python : File "/home/liuxiaoming/txtreader/.buildozer/android/app/Render.py", line 2, in <module>
12-15 14:15:08.131 26124 14916 I python : File "/home/liuxiaoming/txtreader/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/txtreader/arm64-v8a/pygame/freetype.py", line 3, in <module>
12-15 14:15:08.131 888 22230 I netd : interfaceSetEnableIPv6(wlan1, true) <0.17ms>
12-15 14:15:08.131 26124 14916 I python : ModuleNotFoundError: No module named 'pygame._freetype'
12-15 14:15:08.131 26124 14916 I python : Python for android ended.
--------------
I have checked my buildozer.spec, all the requirements are there, including the pygame-ce:
And my python code are as following, seems no problem.
--------------
import pygame as pg
from pygame import freetype as ft # [[[trigger the problem]]]
# import pygame.freetype as ft
...
ft.Font(self.cfg.font_name, size=self.fonts_size[i], ) for i in range(len(self.fonts_size))
...
--------------
I also checked the freetype.pc, line 3 is import the Font.
--------------
from pygame._freetype import (
Font,
...
--------------
The text was updated successfully, but these errors were encountered:
I happened to be looking into this the other day and found the line for freetype is commented out in the Android build configuration, I haven't had a chance to uncomment it, build and check if this resolves the issue or not but thought it'd be helpful to share:
I wrote the following code. It works in my windows with python 3.11.
It also worked when i use "python for android" to compile the android apk.
But the apk is failed when i run the apk after install the apk.
I tried many times, all failed, hope for you help and support. Thanks!!!
The error msgs are as following:
I have checked my buildozer.spec, all the requirements are there, including the pygame-ce:
And my python code are as following, seems no problem.
I also checked the freetype.pc, line 3 is import the Font.
The text was updated successfully, but these errors were encountered: