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
Trying to import pyepics will eventually fail with:
(/opt/bluesky/qserver/conda_envs/qserver-collection-2021-1.2) [tcaswell@xf28id2-srv1 ~]$ ipython
impPython 3.7.7 (default, Mar 26 2020, 15:48:22)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.21.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import epics.ca
In [2]: epics.ca.find_libca()
---------------------------------------------------------------------------
ChannelAccessException Traceback (most recent call last)
<ipython-input-2-476db334b910> in <module>
----> 1 epics.ca.find_libca()
/opt/bluesky/qserver/conda_envs/qserver-collection-2021-1.2/lib/python3.7/site-packages/epics/ca.py in find_libca()
331332deffind_libca():
--> 333 return _find_lib('ca')
334335deffind_libCom():
/opt/bluesky/qserver/conda_envs/qserver-collection-2021-1.2/lib/python3.7/site-packages/epics/ca.py in _find_lib(inp_lib_name)
327return dllpath
328
--> 329 raise ChannelAccessException('cannot find Epics CA DLL')
330331ChannelAccessException: cannot find Epics CA DLL
Debugging this, the search path for pyepics ad-hoc library search path does not include where the epics libraries actually are (the underlying bug here is that pyepics re-implements library discovery but unfortunately that is not actually fixable upstream). A work-around is to do
With a 2021-1.2 environment
Trying to import pyepics will eventually fail with:
Debugging this, the search path for pyepics ad-hoc library search path does not include where the epics libraries actually are (the underlying bug here is that pyepics re-implements library discovery but unfortunately that is not actually fixable upstream). A work-around is to do
export PYEPICS_LIBCA=/opt/bluesky/qserver/conda_envs/qserver-collection-2021-1.2/epics/lib/linux-x86_64/libca.so
before starting IPython, but this is obviously not a generalizable solution.
It is possible that this will need to be addressed in the CF builds of either pyepics or epics-base.
The text was updated successfully, but these errors were encountered: