Version conflict with Sagetex

asked 2018-06-21 12:34:18 -0500


I am asking about a conflict version that I am having with my sagetex.sty file. The output I get on my Sagemath 7.5.1 is

Traceback (most recent call last): File "", line 7, in <module> _st_ = sagetex.SageTeXProcessor('EvalExp1r') File "/usr/lib/sagemath/local/lib/python2.7/site-packages/", line 76, in __init__ raise VersionError, errstr sagetex.VersionError: versions of .sty and .py files do not match. EvalExp1r.sagetex.sage was generated by sagetex.sty version "None", but is being processed by version "2015/08/26 v3.0-92d9f7a". Please make sure that TeX is using the sagetex.sty from your current version of Sage; see

I use MikTex on my linux distribution, and I found that my MikTex .sty file was causing problems because it was using a 2017 file. I changed sagetex.sty everywhere in my directories, and I still get this error. I would appreciate any help and support on this. Thanks

edit retag flag offensive close merge delete


You may find to be quite helpful here. Basically, your SageTeX sty file needs to be the one that corresponds to the exact version of SageTeX in your SageMath. Perhaps your style file was far too old - certainly anything in a TeXLive distro would be outdated.

kcrisman gravatar imagekcrisman ( 2018-06-22 16:19:11 -0500 )edit