It is currently Sat Apr 27, 2024 2:55 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Offline
 Post subject: Katrain installation help
Post #1 Posted: Thu Aug 24, 2023 9:15 am 
Beginner

Posts: 6
Liked others: 0
Was liked: 0
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

Top
 Profile  
 
Offline
 Post subject: Re: Katrain installation help
Post #2 Posted: Thu Aug 24, 2023 10:42 am 
Lives in sente

Posts: 911
Liked others: 22
Was liked: 168
Rank: panda 5 dan
IGS: kvasir
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

Top
 Profile  
 
Offline
 Post subject: Re: Katrain installation help
Post #3 Posted: Thu Aug 24, 2023 12:30 pm 
Beginner

Posts: 6
Liked others: 0
Was liked: 0
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?

Top
 Profile  
 
Offline
 Post subject: Re: Katrain installation help
Post #4 Posted: Thu Aug 24, 2023 1:53 pm 
Beginner

Posts: 6
Liked others: 0
Was liked: 0
I got Katrain working again.

Top
 Profile  
 
Offline
 Post subject: Re: Katrain installation help
Post #5 Posted: Thu Aug 24, 2023 2:07 pm 
Lives in sente

Posts: 911
Liked others: 22
Was liked: 168
Rank: panda 5 dan
IGS: kvasir
a1872 wrote:
I got Katrain working again.


That is fantastic. Is the sound working now?

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group