BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

BUG cannot import pvaccess #163

Closed prjemian closed 1 year ago

prjemian commented 1 year ago

With the current environment, could not import pvaccess:

In [2]: import pvaccess as pva
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[2], line 1
----> 1 import pvaccess as pva

File ~/.conda/envs/bluesky_2023_2/lib/python3.10/site-packages/pvaccess/__init__.py:1
----> 1 from .pvaccess import *
      2 __version__ = "5.3.0"

ImportError: libpvaClient.so.4.8.0: cannot open shared object file: No such file or directory

In [3]: 
prjemian commented 1 year ago

With @sveseli, found that epics-base was obtained from the conda-forge channel in the installation that failed, while it was from apsu channel in the installation that succeeded.

Final determination was that simple swapping of channel priorities in the environment file would produce an installation that passes the test:

$ ipython
Python 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.13.2 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pvaccess

In [2]: