EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: pvaPy: PvObject - odict_keys not subscriptable issue
From: Kuldeep Joshi via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Tue, 5 Oct 2021 06:54:49 +0000
Hello,
I was trying to execute a python script that is available with the phoebus example.
I am getting an "odict_keys object is not subscriptable" error.
I understand this is so for all python3.x versions. The code is getting executed on Python2.x versions
However I see that pvaPy supports python3.x. What am I doing wrong.

Regards,
Kuldeep


The console output:

phoebus/example/Display Builder/table_server$ python server.py
server.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if name is '':
Traceback (most recent call last):
  File "server.py", line 58, in <module>
    tablePV = PvObject(tableStructDict, "epics:nt/NTTable:1.0")
TypeError: 'odict_keys' object is not subscriptable

Replies:
Re: pvaPy: PvObject - odict_keys not subscriptable issue Veseli, Sinisa via Tech-talk

Navigate by Date:
Prev: RE: Odd characters in temperatures showing in Phoebus Leblanc, Gregory via Tech-talk
Next: Fw: Backing up the ArchiverStores STS MTS LTS Epic Archiver Appliance Wilson, Andy (DLSLtd, RAL, LSCI) 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Odd characters in temperatures showing in Phoebus Michael Davidsaver via Tech-talk
Next: Re: pvaPy: PvObject - odict_keys not subscriptable issue Veseli, Sinisa 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  <20212022  2023  2024 
ANJ, 05 Oct 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·