Personal tools
You are here: Home Forum Extension of the platform Error in gener.py YACSGEN - salome_context.cfg not found

Error in gener.py YACSGEN - salome_context.cfg not found

Up to Extension of the platform

Error in gener.py YACSGEN - salome_context.cfg not found

Posted by Brigity Volund at November 24. 2021

Salome-9.7.0, Ubuntu 20.04.

When using YACSGEN to make the mymodule.py example, everything including the install goes fine. But gener.py on line 950  in make appli raise the following:

 

raise Invalid("Can not create an application : salome_context file not defined or does not exist")

module_generator.gener.Invalid: Can not create an application : salome_context file not defined or does not exist

 

Here is what is in mymodule.py:

 

from module_generator import Generator,Module,PYComponent,Service,Library

 

context={"update":1,

         "prerequisites":"/home/dan/programs/salome-9.7.0",

         "kernel":"/home/dan/programs/salome-9.7.0/BINARIES-UB20.04"

        }

 

 

pyc1=PYComponent("mycompo",

                 services=[

                           Service("myservice",

                                   inport=[("inputport","double"),],

                                   outport=[("outputport","double")],

                                   defs="import sys",

                                   body="      outputport=2*inputport;",

                                  ),

                          ]

                )

 

m=Module("mymodule",components=[pyc1],prefix="Install")

g=Generator(m,context)

g.generate()

g.configure()

g.make()

g.install()

g.make_appli("appli",restrict=["KERNEL","GUI","YACS"])

Please advise.

Powered by Ploneboard
Document Actions