Experimental Physics and Industrial Control System
|
Thanks for your replies, Tom, Michael, and Matt.
It looks like indeed the problem is that pyepics is using a different version of the EPICS libraries. I might have been confused about how this is done.
I installed pyepics and p4p using pip, and it was fetching epicscorelibs, but then I was setting
PYEPICS_LIBCA to use a patched 7.0.4 to fix a couple of other issues I was having (https://github.com/epics-base/pva2pva/pull/34,
https://github.com/epics-base/epics-base/issues/83).
It seems that pyepics is using that environment variable, but p4p is ignoring it, so each module is trying to load different versions of the libraries. I was probably lucky that it worked in the past with Python 3.7.3
on macos Mojave and on Python 2.7.
I believe they would need to load the same version of libca (that is, if p4p loads libca - I'm not sure it does). But it does work to use the pyepics-default libca / libCom, which are definitely not going to be seen or used by p4p. So, that seems a little strange. Maybe there is something different with 7.0.4?
Anyway, that's why pyepics has the PYEPICS_LIBCA environmental variable and does not load the library at import time, but waits as late as possible to load the library.
--Matt
- References:
- EPICS7 and Python Juan F. Esteban Müller via Tech-talk
- Re: EPICS7 and Python Matt Newville via Tech-talk
- Re: EPICS7 and Python Juan F. Esteban Müller via Tech-talk
- Navigate by Date:
- Prev:
Re: EPICS7 and Python Juan F. Esteban Müller via Tech-talk
- Next:
Re: redundancy materials Johnson, Andrew N. 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>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: EPICS7 and Python Juan F. Esteban Müller via Tech-talk
- Next:
redundancy materials saleem khan 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>
2021
2022
2023
2024
|
ANJ, 18 Aug 2020 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|