Hi. When I try to start Katrain on my Ubuntu 22.04 machine, I get this output from the debug log"
Code:
[INFO ] Logger: Record log in /home/anthony/.kivy/logs/kivy_23-08-24_2.txt
[INFO ] Kivy: v2.2.1
[INFO ] Kivy: Installed at "/home/anthony/.local/lib/python3.10/site-packages/kivy/__init__.py"
[INFO ] Python: v3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
[INFO ] Python: Interpreter at "/usr/bin/python3"
[INFO ] Logger: Purge log fired. Processing...
[INFO ] Logger: Purge finished!
[INFO ] Factory: 190 symbols loaded
[DEBUG ] Cache: register <kv.resourcefind> with limit=None, timeout=60
[DEBUG ] Cache: register <kv.lang> with limit=None, timeout=None
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=None
[INFO ] ImageLoaderFFPy: Using ffpyplayer 4.5.0
[INFO ] Image: Providers: img_tex, img_dds, img_pil, img_ffpyplayer (img_pygame ignored)
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60
[DEBUG ] Cache: register <kv.shader> with limit=1000, timeout=3600
[DEBUG ] Cache: register <kv.graphics.texture> with limit=None, timeout=None
[INFO ] Clipboard: Provider: xclip
[INFO ] CutBuffer: cut buffer support enabled
[DEBUG ] Text: Ignored <pygame> (import error)
[DEBUG ] STREAM b'IHDR' 16 13
[DEBUG ] STREAM b'IDAT' 41 1216
[INFO ] Text: Provider: pil(['text_pygame'] ignored)
[DEBUG ] Window: Ignored <pygame> (import error)
[CRITICAL] Window: Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
pygame - ModuleNotFoundError: No module named 'pygame'
File "/home/anthony/.local/lib/python3.10/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
mod = importlib.__import__(name='{2}.{0}.{1}'.format(
File "<frozen importlib._bootstrap>", line 1129, in __import__
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/anthony/.local/lib/python3.10/site-packages/kivy/core/window/window_pygame.py", line 13, in <module>
import pygame
x11 - AttributeError: module 'kivy.core.window.window_info' has no attribute 'WindowInfoX11'
File "/home/anthony/.local/lib/python3.10/site-packages/kivy/core/__init__.py", line 59, in core_select_lib
mod = importlib.__import__(name='{2}.{0}.{1}'.format(
File "<frozen importlib._bootstrap>", line 1129, in __import__
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1184, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "kivy/core/window/window_x11.pyx", line 1, in init kivy.core.window.window_x11
[INFO ] KivyMD: v0.104.1
[CRITICAL] App: Unable to get a Window, abort.
I am unsure what to do--the game did work until I read to remove, then reinstall kivy to fix the issue of not having sound.
Quote:
In case the sound is not working, or there is no available wheel for your OS or Python version, try building kivy locally using:
pip3 uninstall kivy
pip3 install kivy --no-binary kivy
You can now start KaTrain by running python3 -m katrai