[Lerftest-ctrls] pyepics setup?

Wesley Moore wmoore at jlab.org
Wed Nov 21 13:57:17 EST 2018


Nope, looks like a glibc issue.  This can get sorted next week.


/lib64/libc.so.6 -> libc-2.12.so


But python seems to want 2.14, if I read the error correctly.


Wesley

________________________________
From: Slepicka, Hugo Henrique <slepicka at slac.stanford.edu>
Sent: Wednesday, November 21, 2018 1:19:44 PM
To: Wesley Moore
Cc: lerftest-ctrls at jlab.org
Subject: Re: [Lerftest-ctrls] pyepics setup?

Hi Wesley,

I am not in the office today but this should get you going:

export PYEPICS_LIBCA=$EPICS_BASE_TOP/$EPICS_BASE_VER/lib/$EPICS_HOST_ARCH/libca.so
export PYEPICS_LIBCOM=$EPICS_BASE_TOP/$EPICS_BASE_VER/lib/$EPICS_HOST_ARCH/libCom.so

The two variables that point PYEPICS to the proper libca should be defined by SLAC’s configuration scripts.

Please let me know if this works for you.

Cheers,
Hugo

Sent from my iPhone

On Nov 21, 2018, at 6:43 AM, Wesley Moore <wmoore at jlab.org<mailto:wmoore at jlab.org>> wrote:


Is PyEPICS supposed to be configured?  It doesn't seem to work, looking like it's missing lib links.

wmoore at lclsl01> python
Python 2.7.13 (default, Apr 27 2018, 17:48:07)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import epics
>>> epics.caget("RF:GLOBAL2:1:STATSUMYFP")

Traceback (most recent call last):
  File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/ca.py", line 251, in initialize_libca
    load_dll(find_libCom())
  File "/usr/local/lcls/package/python/current/lib/python2.7/ctypes/__init__.py", line 440, in LoadLibrary
    return self._dlltype(name)
  File "/usr/local/lcls/package/python/current/lib/python2.7/ctypes/__init__.py", line 362, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lcls/package/python/current/lib/libCom.so)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/__init__.py", line 82, in caget
    thispv = get_pv(pvname, timeout=timeout, connect=True)
  File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/pv.py", line 39, in get_pv
    context = ca.current_context()
  File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/ca.py", line 406, in wrapper
    initialize_libca()
  File "/usr/local/lcls/package/python/current/lib/python2.7/site-packages/epics/ca.py", line 254, in initialize_libca
    raise ChannelAccessException('loading Epics CA DLL failed: ' + str(exc))
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)



_______________________________________________
Mailing List: Lerftest-ctrls at jlab.org<mailto:Lerftest-ctrls at jlab.org>
https://mailman.jlab.org/mailman/listinfo/lerftest-ctrls
Wiki: https://wiki.jlab.org/lerf/index.php/Network
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/lerftest-ctrls/attachments/20181121/ec3030cb/attachment.html>


More information about the Lerftest-ctrls mailing list