Project

General

Profile

RE: I have written a better EPG ยป tmp00rvbjzv.html

error file - David G, 2020-11-26 19:50

 
1
<body bgcolor="#f0f0f8">
2
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
3
<tr bgcolor="#6622aa">
4
<td valign=bottom>&nbsp;<br>
5
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>NoOptionError</strong></big></big></font></td
6
><td align=right valign=bottom
7
><font color="#ffffff" face="helvetica, arial">Python 3.7.3: /usr/bin/python3<br>Thu Nov 26 18:43:11 2020</font></td></tr></table>
8
    
9
<p>A problem occurred in a Python script.  Here is the sequence of
10
function calls leading up to the error, in the order they occurred.</p>
11
<table width="100%" cellspacing=0 cellpadding=0 border=0>
12
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/cgi-bin/tvh_epg.py">/usr/lib/cgi-bin/tvh_epg.py</a> in <strong>&lt;module&gt;</strong>()</td></tr>
13
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1474</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cgitb.enable(display=0,&nbsp;logdir=DOCROOT&nbsp;+&nbsp;'/python_errors',&nbsp;format='html')<br>
14
</tt></font></td></tr>
15
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1475</small>&nbsp;<br>
16
</tt></font></td></tr>
17
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;1476</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web_interface()<br>
18
</tt></td></tr>
19
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1477</small>&nbsp;<br>
20
</tt></font></td></tr>
21
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1478</small>&nbsp;else:<br>
22
</tt></font></td></tr>
23
<tr><td><small><font color="#909090"><strong>web_interface</strong>&nbsp;= &lt;function web_interface&gt;</font></small></td></tr></table>
24
<table width="100%" cellspacing=0 cellpadding=0 border=0>
25
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/cgi-bin/tvh_epg.py">/usr/lib/cgi-bin/tvh_epg.py</a> in <strong>web_interface</strong>()</td></tr>
26
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1406</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#print("&lt;p&gt;%s&nbsp;=&nbsp;%s&lt;/p&gt;"&nbsp;%&nbsp;(headername,&nbsp;headervalue,&nbsp;)&nbsp;)<br>
27
</tt></font></td></tr>
28
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1407</small>&nbsp;<br>
29
</tt></font></td></tr>
30
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;1408</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page_epg()<br>
31
</tt></td></tr>
32
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1409</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html_page_footer()<br>
33
</tt></font></td></tr>
34
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1410</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elif&nbsp;p_page&nbsp;==&nbsp;'error':<br>
35
</tt></font></td></tr>
36
<tr><td><small><font color="#909090"><em>global</em> <strong>page_epg</strong>&nbsp;= &lt;function page_epg&gt;</font></small></td></tr></table>
37
<table width="100%" cellspacing=0 cellpadding=0 border=0>
38
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/cgi-bin/tvh_epg.py">/usr/lib/cgi-bin/tvh_epg.py</a> in <strong>page_epg</strong>()</td></tr>
39
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;650</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;epoch_time&nbsp;=&nbsp;time.time()<br>
40
</tt></font></td></tr>
41
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;651</small>&nbsp;<br>
42
</tt></font></td></tr>
43
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;652</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel_dict&nbsp;=&nbsp;get_channel_dict()<br>
44
</tt></td></tr>
45
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;653</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel_tag&nbsp;=&nbsp;get_channeltag_grid()<br>
46
</tt></font></td></tr>
47
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;654</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cdl&nbsp;=&nbsp;len(channel_dict)<br>
48
</tt></font></td></tr>
49
<tr><td><small><font color="#909090">channel_dict <em>undefined</em>, <em>global</em> <strong>get_channel_dict</strong>&nbsp;= &lt;function get_channel_dict&gt;</font></small></td></tr></table>
50
<table width="100%" cellspacing=0 cellpadding=0 border=0>
51
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/cgi-bin/tvh_epg.py">/usr/lib/cgi-bin/tvh_epg.py</a> in <strong>get_channel_dict</strong>()</td></tr>
52
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;334</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts_user&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;MY_SETTINGS.get(SETTINGS_SECTION,&nbsp;TS_USER)<br>
53
</tt></font></td></tr>
54
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;335</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts_pass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;MY_SETTINGS.get(SETTINGS_SECTION,&nbsp;TS_PASS)<br>
55
</tt></font></td></tr>
56
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;336</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts_max_ch&nbsp;&nbsp;&nbsp;=&nbsp;MY_SETTINGS.get(SETTINGS_SECTION,&nbsp;MAX_CHANS)<br>
57
</tt></td></tr>
58
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;337</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts_query&nbsp;=&nbsp;'%s/%s?limit=%s'&nbsp;%&nbsp;(<br>
59
</tt></font></td></tr>
60
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;338</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ts_url,<br>
61
</tt></font></td></tr>
62
<tr><td><small><font color="#909090">ts_max_ch <em>undefined</em>, <em>global</em> <strong>MY_SETTINGS</strong>&nbsp;= &lt;configparser.ConfigParser object&gt;, MY_SETTINGS.<strong>get</strong>&nbsp;= &lt;bound method RawConfigParser.get of &lt;configparser.ConfigParser object&gt;&gt;, <em>global</em> <strong>SETTINGS_SECTION</strong>&nbsp;= 'user', <em>global</em> <strong>MAX_CHANS</strong>&nbsp;= 'max_chans'</font></small></td></tr></table>
63
<table width="100%" cellspacing=0 cellpadding=0 border=0>
64
<tr><td bgcolor="#d8bbff"><big>&nbsp;</big><a href="file:///usr/lib/python3.7/configparser.py">/usr/lib/python3.7/configparser.py</a> in <strong>get</strong>(self=&lt;configparser.ConfigParser object&gt;, section='user', option='max_chans', raw=False, vars=None, fallback=&lt;object object&gt;)</td></tr>
65
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;789</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;except&nbsp;KeyError:<br>
66
</tt></font></td></tr>
67
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;790</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;fallback&nbsp;is&nbsp;_UNSET:<br>
68
</tt></font></td></tr>
69
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;791</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raise&nbsp;NoOptionError(option,&nbsp;section)<br>
70
</tt></td></tr>
71
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;792</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else:<br>
72
</tt></font></td></tr>
73
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;793</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;fallback<br>
74
</tt></font></td></tr>
75
<tr><td><small><font color="#909090"><em>global</em> <strong>NoOptionError</strong>&nbsp;= &lt;class 'configparser.NoOptionError'&gt;, <strong>option</strong>&nbsp;= 'max_chans', <strong>section</strong>&nbsp;= 'user'</font></small></td></tr></table><p><strong>NoOptionError</strong>: No option 'max_chans' in section: 'user'
76
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>args&nbsp;=
77
('max_chans', 'user')
78
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>message&nbsp;=
79
"No option 'max_chans' in section: 'user'"
80
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>option&nbsp;=
81
'max_chans'
82
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>section&nbsp;=
83
'user'
84
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>with_traceback&nbsp;=
85
&lt;built-in method with_traceback of NoOptionError object&gt;
86

    
87

    
88
<!-- The above is a description of an error in a Python program, formatted
89
     for a Web browser because the 'cgitb' module was enabled.  In case you
90
     are not reading this in a Web browser, here is the original traceback:
91

    
92
Traceback (most recent call last):
93
  File "/usr/lib/python3.7/configparser.py", line 788, in get
94
    value = d[option]
95
  File "/usr/lib/python3.7/collections/__init__.py", line 914, in __getitem__
96
    return self.__missing__(key)            # support subclasses that define __missing__
97
  File "/usr/lib/python3.7/collections/__init__.py", line 906, in __missing__
98
    raise KeyError(key)
99
KeyError: 'max_chans'
100

    
101
During handling of the above exception, another exception occurred:
102

    
103
Traceback (most recent call last):
104
  File "/usr/lib/cgi-bin/tvh_epg.py", line 1476, in &lt;module&gt;
105
    web_interface()
106
  File "/usr/lib/cgi-bin/tvh_epg.py", line 1408, in web_interface
107
    page_epg()
108
  File "/usr/lib/cgi-bin/tvh_epg.py", line 652, in page_epg
109
    channel_dict = get_channel_dict()
110
  File "/usr/lib/cgi-bin/tvh_epg.py", line 336, in get_channel_dict
111
    ts_max_ch   = MY_SETTINGS.get(SETTINGS_SECTION, MAX_CHANS)
112
  File "/usr/lib/python3.7/configparser.py", line 791, in get
113
    raise NoOptionError(option, section)
114
configparser.NoOptionError: No option 'max_chans' in section: 'user'
115

    
116
-->
    (1-1/1)