Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+4 votes

Dear users and developers of Cadabra, I have just installed Cadabra 2.2.0 in Windows 10. I previously installed Anaconda 3 (the most uptaded version available downloaded from its official webpage) and I already had MikTeX 2.9 in my computer. But Cadabra is not working. If I write any sample code from Cadabra manual, e.g.:

A_{\dot{a} \dot{b}}::AntiSymmetric;
ex:= A_{\dot{b} \dot{a}};

Cadabra will show me a error which says "Generic typesetting error; LaTeX failed. Please report a bug.

See s7wo.3.tex to debug this." The terminal also shows this message: "cadabra-client: Exception running LaTeX. Generic typesetting error; LaTeX failed. Please report a bug."

Thank you very much for your help and looking forward to a solution.

Best regards, Alejo.

in Bug reports by

I'm getting this error with the latest version. I provided more details in a new question. Can you please help?

4 Answers

+2 votes

Some Windows installations fail to run LaTeX correctly. I will be releasing an update sometime next week with some more facilities to track down what goes wrong. Will keep you posted.

by (76.2k points)
+2 votes

There is a new windows installer for 2.2.1 (current master branch on github) on the download page. Can you give that one a shot and let me know if it solves your problem? If not, it will spit out some more detailed information; please send me that.

by (76.2k points)

I'm just back from holidays. As I can't reproduce the problem on my machine, I'll need to install a clean VM with a fresh copy of windows, miktex and anaconda to see why you are setting this problem.

If any of you feels comfortable to build cadabra from source, that would probably help to locate the issue, too. Let me know if you need a hand with this.

Thanks for your patience.

Thank you for the reply!

Unfortunately I have zero experience in building anything from source. But on the other hand, it now seems that adding the tableaux.sty file to AppData/Local/Temp seems to have fixed the problem. The file just disappears now and then when Windows deletes it. Other error messages magically vanished now that I tried it again with beginners.cnb notebook.

I think the problem might just lie with the fact that MikTex never checks for tableaux.sty in the folder of preamble.tex, but instead only in the Temp folder mentioned above. Perhaps the whole issue can be fixed by telling Cadabra to always create a copy of tableaux.sty in the Temp folder.

Ok, that helps, let me see how this could have happened.

Which version of MikTeX are you using? There is an issue with setting TeX include paths on some versions, which may explain this problem.

I am using MikTex 2.9.6751 , before I tried it on 2.7 something and then upgraded thinking that would fix it.

0 votes

There is a new 2.2.1c release on the downloads page. Can you give that a shot? The problem was how MiKTeX uses TEXINPUTS; for the time being I am now avoiding installing custom latex packages altogether, hopefully this will at least for now solve the problem.

by (76.2k points)

Dear Kasper, I have been trying this new version during the last week. I tried reinstalling everything from scratch (MikTex, Anaconda and then Cadabra) and I have always obtained the same result: Cadabra closes 4-5 seconds after starting, without any error message or window. At the first moment, I thought it was related to the installation and that is why I tried reinstalling everything, but the problem is still there. Thanks a lot for your efforts.

Best regards, Alejo.

I have been informed that using the 2.2.1c installer and then replacing its bin directory with the bin directory of 2.2.1 works. I haven't had time to use this info to figure out what went wrong (we have updated the build system and that probably led to some libraries not being included in 2.2.1c).

Thank you very much Kasper for your quick reply. I will try it as soon as possible and I will let you if it works.

Dear Kasper, I have just tried this new solution. Now the program opens but the original error (or some kind of it) keeps appearing. Here you can see the error message: https://imgur.com/a/BF3UVo7 I have saved the .tex file mentioned there and I can send it to you if that is useful.

Best regards, Alejo.

+1 vote

There is now a 2.2.1d installer on the download page; can anyone with issues on Windows please try that one? I think this one should finally do the trick...

It is probably advisable to first remove the installation directory of any previous installs.

by (76.2k points)

Dear Kasper Peters, I have just tried this new version and it is finally working!! For now, I have just tried the most simple expressions in the reference guide and it worked perfectly. Thanks a lot for your effort.

Best regards, Alejo.

Very good! And thanks for your patience.

Hi Kasper, 2.2.1d solved the problem for me as well! Cadabra2 is now running perfectly! This is really fantastic and I thank you very much for all of your efforts and time.

2.2.1d now works without problems on Windows. Thank you for your efforts!