NSoiffer / MathCAT

MathCAT: Math Capable Assistive Technology for generating speech, braille, and navigation.
MIT License
63 stars 35 forks source link

MatCat not working anymore #309

Closed CyrilleB79 closed 1 week ago

CyrilleB79 commented 2 weeks ago

MatCat is not working anymore. I do not know since when.

Log trying to read the quadratic equation Wikipedia page.: nvda.log

NSoiffer commented 2 weeks ago

From your log:

MathCAT 0.6.6 installed. Using rules dir: C:\Users\Cyrille\AppData\Local\Temp\nvdaMatCat\addons\MathCAT\globalPlugins\MathCAT\Rules
ERROR - external:globalPlugins.MathCAT.MathCAT.MathCAT.__init__ (19:14:00.863) - MainThread (10448):
Couldn't open zip file \\?\C:\Users\Cyrille\AppData\Local\Temp\nvdaMatCat\addons\MathCAT\globalPlugins\MathCAT\Rules\Languages\en\fr.zip: Le fichier spécifié est introuvable. (os error 2).

I see a few things that seem different:

  1. On the machines I've seen, NVDA is in ...AppData\Roaming\nvda. This implies it is in Local, not Roaming. That's not necessarily wrong, but it is different.
  2. This part implies that you are definitely doing something different: ...Temp\nvdaMatCat\.... Does \Users\Cyrille\AppData\Local\Temp\nvdaMatCat\addons\MathCAT\globalPlugins\MathCAT exist?
  3. It appears you are trying to read in French, which MathCAT v0.6.6 doesn't support. Starting sometime in May or June, MathCAT started zipping up the various language files to save space (5mb and counting). If it is unzipped, it should still work, but if it is zipped, perhaps there is a problem with that. What are the contents of ...Rules\Languages\fr (assuming there such a directory)?

Have you made progress on a French translation? If so, do you want to contribute it back to the main repo so others can benefit from it? Also so that it incorporated into tests before a release.

CyrilleB79 commented 2 weeks ago

Sorry I have forgotten to provide you some information:

To summarize, the issue also occurs when using in my normal config in ""C:\Users\Cyrille\AppData\Roaming\nvda" and when using no --lang parameter, with my French Windows.

I do not expect MatCAT to read math in French, but at least in English out of the box.

Regarding the French translation, I have no time to do it for now since it's not one of my priorities; I'll let you know if/when I turn back to it. Have you received other offers for French translations?

NSoiffer commented 2 weeks ago

The bad news is that I can't replicate the problem, even using your command. I upgraded to 2024.4.1 from 2024.4 and still I don't have any problems. At some point, NVDA stopped working on reading any web pages, so I did a reboot. There was a Windows update pending and I've found that in the past, in the pending state, I often have strange problems. But after the update, NVDA worked fine and there were no error messages from MathCAT. It's a long shot, but can you try rebooting?

andrew-l-d commented 2 weeks ago

I am not having any problems here with NVDA 2024.4.1 and latest MathCAT.

NSoiffer commented 1 week ago

@CyrilleB79: did you try a reboot?

CyrilleB79 commented 1 week ago

Yes, I did a reboot (even many ones).

When I have time, I may try to investigate, but for now, it's low priority for me.

NSoiffer commented 1 week ago

I'm going to close it for now since neither I nor @andrew-l-d can replicate it. Please re-open if you get more information.

Note that the current 2025.1 alpha builds have broken navigation in MathCAT (it is somewhere in NVDA's braille handling code, not MathCAT... or maybe the interface for dealing with braille changed. I still need to file a bug report.