Thanks for your job with all of this!
I've been trying to install mentalcalculation-0.5.2.tar.gz on a PC with Linux Mint, but I have the next exit on the terminal:
$cd gui
$pyuic5 settings.ui > settings.py
error in input file: not well-formed (invalid token): line 1, column1
Hi.
That is weird.
What version of Linux Mint are you using ? What version of pyqt5-dev-tools do you have ?
But, also, I don't understand, because in the tar.gz, there is only .py files and no .ui files. Where did you get that .ui files ? Where does it come from ? Are you using a git clone ?
Thanks, I have python and all version in 3.8.
And Linux mint 20.04 updated.
I just follow the instructions from https://github.com/solsticedhiver/mental... :
-You need to generate the python files needed for the gui with the following commands:
cd gui
pyuic5 settings.ui > settings.py
pyuic5 main.ui > main.py
But if I just run it, ($python3 mentalcalculation.py) the software works, but... on terminal shows:
ERROR: can't download sound for 5 (or the number generated).
I have tried with an old version (0.4.0.2) and the error is: ERROR: # not found in sounds.
So finally I have the same question, How can I generate the gui.
PS: and about the sound for numbers, what can I do.
I have tried the pyuic5 command in a Linux Mint 20.3 installation; and it is ok for me. I don't see any error when running them, both.
By Mint 20.04, you meant 20.3 ?
what you have to do is run:
cd gui
pyuic5 settings.ui > settings.py
pyuic5 main.ui > main.py
cd ..
python mentalcalculation.py
For the sound error message, this means the sound file can't be donwloaded from our server. Try relaunching the app, and checking your internet connection.
Thanks. I've understood, and feel a bit ashamed.
Now I have noted a rare behavior, when I start the Software...
Start and disable speech synthesis
the GUI does not show any number, nor sound, it only keeps white.
Then re-enable speech synthesis (any Lang) and works fine.
mentalcalculation-0.5.2$ python3 mentalcalculation.py
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1074, resource id: 56623627, major code: 40 (TranslateCoords), minor code: 0
Traceback (most recent call last):
File "mentalcalculation.py", line 477, in startPlay
self.player.stateChanged.disconnect(self.clearLabel)
TypeError: 'method' object is not connected
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2789, resource id: 56623638, major code: 40 (TranslateCoords), minor code: 0
Error: can't download sound for 5
Error: can't download sound for 9
Error: can't download sound for 9
Error: can't download sound for 3
Error: can't download sound for 3
Finally, Is there a way in which I can use speech synthesis? So I should not download the sound from the web (It's expensive). Or May I create the sounds locally, almost for numbers till to one hundred?
Thanks a lot for your time and support.
Well, I will look into this bug, and found out what is happening, when I have time.
The older version of this software was using espeak. an offline speech synthesis software; the available languages were limited, and it is complicated to setup; but it was offline;
The problem is, it is not working right now, because it was using the older python2 and qt4.
I will look this week I hope, to make a fork/branch of the last version with espeak.
Stay tuned ;-)
So I made a branch on github called 'espeak'.
You can use a tracking branch if you have kept your clone of the repo:
cd mental_calculation
git checkout --track origin/espeak
Or if you have deleted it, start directly by cloning that branch with:
git clone --branch espeak https://github.com/solsticedhiver/mental...
Then
cd gui
pyuic5 settings.ui > settings.py
pyuic5 main.ui > main.py
cd ..
python3 mentalcalculation.py
It is a quick work, but that should work.
Thank you so much for this new release, I will try it and write back again, thanks.