EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Python Script call from Button press, module not found
From: "Manoussakis, Adamandios via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 14 Apr 2021 17:31:26 +0000

Hi All,

 

I am currently calling a python script we have from a button press in CSS.  When I do this from a command button (python example.py) press it runs fine but I wanted to use a button that triggers when a pv is updated (using the Scripts section under behaviors) so I switched over to that setup.  But when it runs it seems like Jython isn’t finding my python modules (log shows not finding module), is there a PATH issue that I need to set in settings.ini or something similar for Jython?

 

I did explore using pythonIoc and moving the whole script in there but at the moment I think just having CSS call the python script might be the easier route.

 

Thanks,

Adam

 

 


Replies:
Re: Python Script call from Button press, module not found Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: EPICS-Support for Amtek / Gamry potentiostat Mark Rivers via Tech-talk
Next: Re: Python Script call from Button press, module not found Kasemir, Kay via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: AW: EPICS-Support for Amtek / Gamry potentiostat Sintschuk, Michael via Tech-talk
Next: Re: Python Script call from Button press, module not found Kasemir, Kay via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 15 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·