You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a practical doubt about scripting, is it possible to interact with a python script from Phoebus? I was trying with Sqlite3, but it tells me that the sqlite3 module is not there. I tried adding it in target libs and it didn't work.
What should I do to make this work correctly:
My script is something very simple
from org.csstudio.display.builder.runtime.scritp import ScriptUtil, PvUtil
import sqlite3
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello good afternoon, greetings.
I have a practical doubt about scripting, is it possible to interact with a python script from Phoebus? I was trying with Sqlite3, but it tells me that the sqlite3 module is not there. I tried adding it in target libs and it didn't work.
What should I do to make this work correctly:
My script is something very simple
from org.csstudio.display.builder.runtime.scritp import ScriptUtil, PvUtil
import sqlite3
try:
connection=sqlite3.connect("pathAMiDatabase")
print("connection successful")
except:
print("connection failed").
Beta Was this translation helpful? Give feedback.
All reactions