(venve) G:\olm_docx\app\services\mixQuestion>python test.py
Traceback (most recent call last):
File "G:\olm_docx\app\services\mixQuestion\test.py", line 20, in <module>
mathml_str = obj.ToMathMLCode()
^^^^^^^^^^^^^^^^^^
File "G:\olm_docx\app\services\mixQuestion\venve\Lib\site-packages\spire\doc\OfficeMath.py", line 108, in ToMathMLCode
ret = PtrToStr(CallCFunction(GetDllLibDoc().OfficeMath_ToMathMLCode,self.Ptr))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\olm_docx\app\services\mixQuestion\venve\Lib\site-packages\spire\doc\common\__init__.py", line 129, in CallCFunction
raise SpireException(info)
spire.doc.common.SpireException: TypeInitialization_Type_NoTypeAvailable: at System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext*) + 0x167
at System.Runtime.CompilerServices.ClassConstructorRunner.CheckStaticClassConstructionReturnGCStaticBase(StaticClassConstructionContext*, Object) + 0xd
at System.Xml.Xsl.IlGen.XmlILModule.DefineMethod(String, Type, Type[], String[], XmlILMethodAttributes) + 0x360
at System.Xml.Xsl.XmlILGenerator.CreateHelperFunctions() + 0x87
at System.Xml.Xsl.XmlILGenerator.Generate(QilExpression, TypeBuilder) + 0x18a
at System.Xml.Xsl.XslCompiledTransform.CompileQilToMsil(XsltSettings) + 0x23
at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader) + 0x5a
at Spire.Doc.Fields.OMath.OfficeMath.spra(String, Stream) + 0x99
at Spire.Doc.AOT.NLOfficeMath.OfficeMath_ToMathMLCode(IntPtr, IntPtr) + 0x4e