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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: PyEpics: Cannot connect to DEVICE |
From: | Matt Newville via Tech-talk <tech-talk at aps.anl.gov> |
To: | Thomas Feggeler <tfeggeler at lbl.gov> |
Cc: | EPICS Tech Talk <tech-talk at aps.anl.gov> |
Date: | Thu, 9 Jun 2022 14:15:21 -0500 |
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