Error in gener.py YACSGEN - salome_context.cfg not found
This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.
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.
This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.