This could be a firewall issue. Did you try temporarily turning off the Windows firewall? It could be that caget has a firewall exception in place but Python does not.
Mark
-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Thomas Feggeler via Tech-talk
Sent: Thursday, June 9, 2022 10:29 AM
To: tech-talk at aps.anl.gov
Subject: PyEpics: Cannot connect to DEVICE
Dear colleagues,
We have a new computer installation (Windows 10) with epics 7.0.4, python 3.6.4. When I try to connect with caget() directly over the command line to access a device, e.g.
Caget XXXX:XXXX:firmwarebuilddate
It immediately works.
When using pyepics over pycharm, or the python interpreter, the message „cannot connect to DEVICE“ is given out.
The Windows path variables are set, EPICS_CA_ADDR_LIST is set and imported into the pycharm environment.
In both pycharm and python console if I do the following:
import epics
import os
from epics import PV, caget, caput, cainfo os.environ['EPICS_CA_ADDR_LIST'] = 'XXX.XXX.XXX.XXX'
os.environ['EPICS_CA_AUTO_ADDR_LIST'] = 'NO'
print(caget('XXXX:XXXX:firmwarebuilddate'))
The same error occurs.
I’d kindly ask for your help.
Thank you
Kind wishes
Thomas
- References:
- PyEpics: Cannot connect to DEVICE Thomas Feggeler via Tech-talk
- Navigate by Date:
- Prev:
RE: Bus errors accessing VME with base 7.0.6.1 and latest synApps modules Mark Rivers via Tech-talk
- Next:
Re: Questions for epics 7 PVs: PV list with normative type Michael Davidsaver 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:
PyEpics: Cannot connect to DEVICE Thomas Feggeler via Tech-talk
- Next:
RE: PyEpics: Cannot connect to DEVICE Mark Rivers 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
|