Open FlorianCcj opened 3 years ago
Could you link to the solution you found? You are saying this is a py 3.9.5 vs 3.9 issue? That seems very strange
it is very strange, I don't have any solution, that why I ask if you ve already seen this problem or if you have a solution ... it seems not ^^ It s not a 3.9 problem, I had python 3.8 and I see somewhere "update it will solve the problem" that why I test with 3.9
I will continue to search but ... it s strange
what's your kivymd version? different from the one in requirements.txt? i suspect some change there broke it
I have juste made pip3 install katrain ^^
➜ git:(master) ✗ pip3 list | grep kivy
kivymd 0.104.2
resolve with pip install -r requirements.txt, thanks a lot :)
actually I see kivymd is breaking on a patch release, I've locked in 0.104.1, but should look into this
Some work on this in this branch: https://github.com/sanderland/katrain/tree/kivybump But many small things changed, particularly how buttons are inherited, and some display differences in this remain.
manjaro linux. have kyvymd issue after system update
katrain 1.11.2 requires kivymd==0.104.1, but you have kivymd 1.1.1 which is incompatible.
i did downgrade kyvy to 0.104 version, but katrain still doesn't works
pip list | grep kivy kivymd 0.104.1
sdl2 - ImportError: libhwy.so.1: cannot open shared object file: No such file or directory
but i have not any libwhy module in my system, and there is no such module in repos. wondered a little bit
manjaro linux. have kyvymd issue after system update
katrain 1.11.2 requires kivymd==0.104.1, but you have kivymd 1.1.1 which is incompatible.
i did downgrade kyvy to 0.104 version, but katrain still doesn't works
pip list | grep kivy kivymd 0.104.1
sdl2 - ImportError: libhwy.so.1: cannot open shared object file: No such file or directory
but i have not any libwhy module in my system, and there is no such module in repos. wondered a little bit
Have a look at the kivy installation instructions and the troubleshooting, they have some packages which may help. I've not seen this particular error before though
Hey there, is this issue still being worked on? If yes, what kind of help would be appreciated?
manjaro linux. have kyvymd issue after system update
katrain 1.11.2 requires kivymd==0.104.1, but you have kivymd 1.1.1 which is incompatible.
i did downgrade kyvy to 0.104 version, but katrain still doesn't works
Yeah, katrain freezes on Manjaro when playing a move. It doesn't matter whether it's AI playing the move or a human player playing. I'm trying to look at the issue, but I haven't looked at katrain code before, so all ideas are welcome.
edit: Last debug-message is (edit2: using 1.15.0 branch at commit 40e0ef3c85d1adbf76f95438f63c21f5ef3f7aea)
[DEBUG ] [ImageSDL2 ] Load </home/nelsson/Koodi/katrain_git/katrain/katrain/img/topmove.png> Message Loop Received play: ((15, 15),) for Game 2024-05-20 17 12 41 Sending query QUERY:2: {"rules": "japanese", "priority": 1001, "analyzeTurns": [1], "maxVisits": 500, "komi": 6.5, "boardXSize": 19, "boardYSize": 19, "includeOwnership": true, "includeMovesOwnership": true, "includePolicy": true, "initialStones": [], "initialPlayer": "B", "moves": [["B", "Q16"]], "overrideSettings": {"reportAnalysisWinratesAs": "BLACK", "wideRootNoise": 0.04, "maxTime": 8.0}, "reportDuringSearchEvery": 1, "id": "QUERY:2"}
edit3: This smells like a threading problem, likely not related to kivymd though since it occurs also with kivymd 0.104.1
Crash in Manjaro is caused by this row https://github.com/sanderland/katrain/blob/98ce47c3bc5f1c8c1a9cc03120e4afcd2cf677db/katrain/__main__.py#L435
So it's sound-related.
edit: This in particular crashes https://github.com/sanderland/katrain/blob/98ce47c3bc5f1c8c1a9cc03120e4afcd2cf677db/katrain/gui/sound.py#L26 . I don't see a problem in katrain codebase here, but rather something wrong with kivy.
As for other information relating to Manjaro:
1) AUR package python-kivymd is for version 1.1.1, which doesn't seem to work with katrain. As a workaround, 0.104.1 can be used, but sounds will lock the program, so one needs to also hack katrain/katrain/gui/sound.py to prevent SoundLoader.load
being called.
2) Using the latest kivymd version can be tried manually with:
git clone https://github.com/kivymd/KivyMD.git --depth 1 # git clone as in kivymd instructions
cd KivyMD
python3 -m venv kivyenv --system-site-packages # create virtual environment "kivyenv" with access to system-wide python packages
source kivyenv/bin/activate # get into kivyenv virtual environment
pip install . #install kivymd to virtual env
...but this only gets to as far as seeing where katrain is at kivymd update. Seems like there are at least some deprecated buttons that needs to be updated.
ImportError: cannot import name 'BaseFlatButton' from 'kivymd.uix.button'
... Did you mean: 'BaseFabButton'?
Here a crude PR https://github.com/sanderland/katrain/pull/684 that updates katrain to KivyMD 2.0.0 (using python-kivy 2.2.1-3, Manjaro linux repositories)
It's not supposed to be a proper solution, but it's a start.
[CRITICAL] [Clock ] Warning, too much iteration done before the next frame. Check your code, or increase the Clock.max_iteration attribute.
happens because of
https://github.com/sanderland/katrain/blob/98ce47c3bc5f1c8c1a9cc03120e4afcd2cf677db/katrain/gui.kv#L683
I tested all rows containing size_hint
.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 10 days.
I have some problem launching katrain
I am on ubuntu 20 here version datas
When I launch katrain -d
I search to resolve it but the only "solution" was to install python 3.9 ...