Life In 19x19 http://www.lifein19x19.com/ |
|
Katrain installation help http://www.lifein19x19.com/viewtopic.php?f=18&t=19262 |
Page 1 of 1 |
Author: | a1872 [ Thu Aug 24, 2023 9:15 am ] |
Post subject: | Katrain installation help |
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 |
Author: | kvasir [ Thu Aug 24, 2023 10:42 am ] |
Post subject: | Re: Katrain installation help |
You appear to be trying to fix some sound issues by forcing something to be compiled on your machine while installing "kivy", this something is, presumably, normally included as pre-built binaries. Maybe this compiling step wasn't successful or produced something that wasn't immediately usable (compiling can sometimes be tricky)? BTW the log output that you provided had the following instructions: Quote: [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
|
Author: | a1872 [ Thu Aug 24, 2023 12:30 pm ] |
Post subject: | Re: Katrain installation help |
Hi. I did enable the debugging log with the command "katrain -d"--that's what was posted. I was hoping that someone could "identify potential causes" (as the log says). I figure that was the part where you stated that I appeared to be compiling something to try to fix the sound issue. The problem the log seems to indicate is "Window: Unable to find any valuable Window provider"--does someone know how to fix this? |
Author: | a1872 [ Thu Aug 24, 2023 1:53 pm ] |
Post subject: | Re: Katrain installation help |
I got Katrain working again. |
Author: | kvasir [ Thu Aug 24, 2023 2:07 pm ] |
Post subject: | Re: Katrain installation help |
a1872 wrote: I got Katrain working again. That is fantastic. Is the sound working now? |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |