Originally posted by **tianjueli** April 14, 2022
Hi Mijian,
I'm trying to use module **pickrf** to visually check RF waveforms, while encountered such error:
"(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8033:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8047:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8051:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8058:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8065:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8072:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.848: Theme parsing error: gtk.css:8076:53: Invalid name of pseudo-class
(python3.8:2056688): Gtk-WARNING **: 11:29:47.849: Theme parsing error: gtk.css:8081:53: Invalid name of pseudo-class
2022-04-14 11:29:47,943 [RF] INFO: Reading PRFs from ./ZX.256
2022-04-14 11:29:48,610 [RF] INFO: A total of 123 PRFs loaded
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.8/site-packages/obspy/core/util/attribdict.py", line 142, in __getattr__
return self.__getitem__(name, default)
File "/opt/anaconda3/lib/python3.8/site-packages/obspy/core/util/attribdict.py", line 97, in __getitem__
return self.__dict__[name]
KeyError: 'ka'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/anaconda3/bin/pickrf", line 8, in
sys.exit(main())
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickui.py", line 190, in main
ui = MatplotlibWidget(rfpath, only_r=only_r, xlim=[-2, xlim], order=arg.order)
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickui.py", line 45, in __init__
self.initUi(rfpath, only_r, xlim, order=order)
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickui.py", line 50, in initUi
self.mpl = MyMplCanvas(self, rfpath=rfpath, only_r=only_r, width=21, height=11,
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickui.py", line 29, in __init__
self.rffig.init_canvas(order=order)
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickfigure.py", line 56, in init_canvas
self.read_sac(order=order)
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickfigure.py", line 151, in read_sac
self.phases = [tr.stats.sac.ka for tr in self.rrf]
File "/opt/anaconda3/lib/python3.8/site-packages/seispy/pickfigure.py", line 151, in
self.phases = [tr.stats.sac.ka for tr in self.rrf]
File "/opt/anaconda3/lib/python3.8/site-packages/obspy/core/util/attribdict.py", line 144, in __getattr__
raise AttributeError(e.args[0])
AttributeError: ka"
The command I used is "pickrf ./ZX.256", where ZX.256 is an example station provided by _ex-ccp.tar.gz_.
Discussed in https://github.com/xumi1993/seispy/discussions/37