<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">The basic setup scripts aim to point to:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<ol style="margin-bottom: 0px; margin-top: 0px;">
<li>EPICS BASE <span>ENV variables </span></li><li>EPICS EXTENSIONS <span>ENV variables </span></li><li>EPICS CA runtime ENV variables </li></ol>
<p></p>
<div><br>
</div>
Since, PyEPICS is not in the EPICS EXTENSONS tree we probably need a different script to setup
<div>Python-based EPICS client tools.</div>
<div>-- PyEPICS</div>
<div>-- PyDM</div>
<div>-- TimeChart</div>
<div><span style="font-size: 12pt;">-- Any others?</span><br>
</div>
<div><br>
</div>
<div>On the other hand since, PyEPICS is becoming a more and more popular EPICS client you can consider adding it to</div>
<div>the basic EPICS SETUP scripts.</div>
<div>@Bruce, what do you think about this?</div>
<div>====================================================</div>
<div><span style="font-family:monospace"><span style="color: rgb(0, 175, 0);">epicsenv-<EPICS_BASE_VERS>.bash</span>* <br>
</span>=====================================================</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Ernest<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Lerftest-ctrls <lerftest-ctrls-bounces@jlab.org> on behalf of Slepicka, Hugo Henrique <slepicka@slac.stanford.edu><br>
<b>Sent:</b> Wednesday, November 21, 2018 12:21 PM<br>
<b>To:</b> Wesley Moore<br>
<b>Cc:</b> lerftest-ctrls@jlab.org<br>
<b>Subject:</b> Re: [Lerftest-ctrls] pyepics setup?</font>
<div> </div>
</div>
<div dir="auto">Hi Wesley,
<div><br>
</div>
<div>Yes, they should be set as part of the setup scripts.</div>
<div>I will take a look Monday when I am back at the lab.</div>
<div><br>
</div>
<div>Hugo<br>
<br>
<div id="x_AppleMailSignature" dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
On Nov 21, 2018, at 11:06 AM, Wesley Moore <<a href="mailto:wmoore@jlab.org" id="LPlnk498870" class="OWAAutoLink" previewremoved="true">wmoore@jlab.org</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Ah.. I didn't remember getting a glibc error due to libca/libcom. So EPICS_BASE_TOP doesn't exist. But with the following it works.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><span>export PYEPICS_LIBCA=$EPICS_BASE/lib/$EPICS_HOST_ARCH/libca.so</span><br>
</p>
<p style="margin-top:0; margin-bottom:0"><span><span>export PYEPICS_LIBCOM=$EPICS_BASE/lib/$EPICS_HOST_ARCH/libCom.so</span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0; margin-bottom:0"><span><span>Shouldn't these be set as part of the environment already? </span></span></p>
<p style="margin-top:0; margin-bottom:0"><span><span><br>
</span></span></p>
<p style="margin-top:0; margin-bottom:0"><span><span>Wesley</span></span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Slepicka, Hugo Henrique <<a href="mailto:slepicka@slac.stanford.edu" id="LPlnk267519" class="OWAAutoLink" previewremoved="true">slepicka@slac.stanford.edu</a>><br>
<b>Sent:</b> Wednesday, November 21, 2018 1:59:57 PM<br>
<b>To:</b> Wesley Moore<br>
<b>Cc:</b> <a href="mailto:lerftest-ctrls@jlab.org" id="LPlnk246381" class="OWAAutoLink" previewremoved="true">
lerftest-ctrls@jlab.org</a><br>
<b>Subject:</b> Re: [Lerftest-ctrls] pyepics setup?</font>
<div> </div>
</div>
<div dir="auto">This error happens when PyEPICS can’t find the proper libca and tries to do its best using the one shipped with it.
<div>Do you mind to verify that the variables that I mentioned before are pointing to proper files?</div>
<div><br>
</div>
<div>They rely on other variables being defined so if the other variables are also not there it will fail in the same way.</div>
<div><br>
</div>
<div>Hugo<br>
<br>
<div id="x_x_AppleMailSignature" dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
On Nov 21, 2018, at 10:57 AM, Wesley Moore <<a href="mailto:wmoore@jlab.org" id="LPlnk988611" class="OWAAutoLink" previewremoved="true">wmoore@jlab.org</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div id="x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Nope, looks like a glibc issue. This can get sorted next week. </p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">/lib64/libc.so.6 -> libc-2.12.so</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">But python seems to want 2.14, if I read the error correctly. </p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Wesley</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Slepicka, Hugo Henrique <<a href="mailto:slepicka@slac.stanford.edu" id="LPlnk418764" class="OWAAutoLink" previewremoved="true">slepicka@slac.stanford.edu</a>><br>
<b>Sent:</b> Wednesday, November 21, 2018 1:19:44 PM<br>
<b>To:</b> Wesley Moore<br>
<b>Cc:</b> <a href="mailto:lerftest-ctrls@jlab.org" id="LPlnk49412" class="OWAAutoLink" previewremoved="true">
lerftest-ctrls@jlab.org</a><br>
<b>Subject:</b> Re: [Lerftest-ctrls] pyepics setup?</font>
<div> </div>
</div>
<div dir="auto">Hi Wesley,
<div><br>
</div>
<div>I am not in the office today but this should get you going:</div>
<div><br>
</div>
<div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)">export PYEPICS_LIBCA=$EPICS_BASE_TOP/$EPICS_BASE_VER/lib/$EPICS_HOST_ARCH/libca.so</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)">export PYEPICS_LIBCOM=$EPICS_BASE_TOP/$EPICS_BASE_VER/lib/$EPICS_HOST_ARCH/libCom.so</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)"><br>
</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)">The two variables that point PYEPICS to the proper libca should be defined by SLAC’s configuration scripts.</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)"><br>
</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)">Please let me know if this works for you.</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)"><br>
</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)">Cheers,</font></font></div>
<div style="margin:0px"><font><font style="background-color:rgba(255,255,255,0)">Hugo</font></font></div>
<br>
<div id="x_x_x_AppleMailSignature" dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
On Nov 21, 2018, at 6:43 AM, Wesley Moore <<a href="mailto:wmoore@jlab.org" id="LPlnk663550" class="OWAAutoLink" previewremoved="true">wmoore@jlab.org</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div id="x_x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Is PyEPICS supposed to be configured? It doesn't seem to work, looking like it's missing lib links.</p>
<p style="margin-top:0; margin-bottom:0"></p>
<div><br>
</div>
<div>
<div>wmoore@lclsl01> python</div>
<div>Python 2.7.13 (default, Apr 27 2018, 17:48:07) </div>
<div>[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2</div>
<div>Type "help", "copyright", "credits" or "license" for more information.</div>
<div><span style="font-size:12pt">>>> import epics</span><br>
</div>
</div>
<div><span style="font-size:12pt">>>> epics.caget("RF:GLOBAL2:1:STATSUMYFP")</span><br>
</div>
<p></p>
<p style="margin-top:0; margin-bottom:0"></p>
<div>Traceback (most recent call last):</div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/ca.py", line 251, in initialize_libca</div>
<div> load_dll(find_libCom())</div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/ctypes/__init__.py", line 440, in LoadLibrary</div>
<div> return self._dlltype(name)</div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/ctypes/__init__.py", line 362, in __init__</div>
<div> self._handle = _dlopen(self._name, mode)</div>
<div>OSError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lcls/package/python/current/lib/libCom.so)</div>
<div>Traceback (most recent call last):</div>
<div> File "<stdin>", line 1, in <module></div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/__init__.py", line 82, in caget</div>
<div> thispv = get_pv(pvname, timeout=timeout, connect=True)</div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/pv.py", line 39, in get_pv</div>
<div> context = ca.current_context()</div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/ca.py", line 406, in wrapper</div>
<div> initialize_libca()</div>
<div> File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/ca.py", line 254, in initialize_libca</div>
<div> raise ChannelAccessException('loading Epics CA DLL failed: ' + str(exc))</div>
<div>epics.ca.ChannelAccessException: loading Epics CA DLL failed: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lcls/package/python/current/lib/libCom.so)</div>
<div><br>
</div>
<br>
<p></p>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr"><span>_______________________________________________</span><br>
<span>Mailing List: <a href="mailto:Lerftest-ctrls@jlab.org" id="LPlnk564461" class="OWAAutoLink" previewremoved="true">
Lerftest-ctrls@jlab.org</a></span><br>
<span><a href="https://mailman.jlab.org/mailman/listinfo/lerftest-ctrls" id="LPlnk584797" class="OWAAutoLink" previewremoved="true">https://mailman.jlab.org/mailman/listinfo/lerftest-ctrls</a></span><br>
<span>Wiki: <a href="https://wiki.jlab.org/lerf/index.php/Network" id="LPlnk106336" class="OWAAutoLink" previewremoved="true">
https://wiki.jlab.org/lerf/index.php/Network</a></span><br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>