Experimental Physics and Industrial Control System
On 8/18/20 5:39 AM, Juan F. Esteban Müller via Tech-talk wrote:
> Hi again,
>
>
>
> It seems that if I create a CA context before importing the p4p client, it all works fine. It is still a mystery for me, but it seems to be a good workaround for the moment.
Firstly, which OS are you working under (Linux?).
This suggests that the two python extensions are loading
two (maybe different) copies of libCom.so (or other libraries).
This is a likely enough situation with two unrelated python
modules loading some of the same libraries (eg. libCom.so).
Sometimes this just works, but when it doesn't the resulting
symptoms can be quite strange.
I'm not sure where your installation comes from, or if the
following recipe could be acceptable.
Install P4P and pyepics from pypi.org, using a bundled
version of EPICS (the epicscorelibs module seen below).
> python3 -m virtualenv -p python3 p4ptest
> . p4ptest/bin/activate
> pip install p4p pyepics
Then in python
> import time
> import epicscorelibs.path.pyepics
> from p4p.client.thread import Context
> import epics
>
> pv = epics.PV('TST:Q1', connection_callback=lambda pvname,conn,pv: print('connected'))
> time.sleep(1)
> pv.connect(timeout=0)
> pv.get()
This works for me on Linux
- References:
- EPICS7 and Python Juan F. Esteban Müller via Tech-talk
- Re: EPICS7 and Python Juan F. Esteban Müller via Tech-talk
- Navigate by Date:
- Prev:
Re: EPICS7 and Python Cobb, Tom (DLSLtd,RAL,LSCI) 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
2025
- Navigate by Thread:
- Prev:
Re: EPICS7 and Python Cobb, Tom (DLSLtd,RAL,LSCI) via Tech-talk
- Next:
Re: EPICS7 and Python Matt Newville 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
2025