1
|
<body bgcolor="#f0f0f8">
|
2
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
3
|
<tr bgcolor="#6622aa">
|
4
|
<td valign=bottom> <br>
|
5
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>AttributeError</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>Sun Jan 17 15:13:25 2021</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> </big><a href="file:///usr/lib/cgi-bin/tvh_epg.py">/usr/lib/cgi-bin/tvh_epg.py</a> in <strong><module></strong>()</td></tr>
|
13
|
<tr><td><font color="#909090"><tt> <small> 1474</small> cgitb.enable(display=0, logdir=DOCROOT + '/python_errors', format='html')<br>
|
14
|
</tt></font></td></tr>
|
15
|
<tr><td><font color="#909090"><tt> <small> 1475</small> <br>
|
16
|
</tt></font></td></tr>
|
17
|
<tr><td bgcolor="#ffccee"><tt>=><small> 1476</small> web_interface()<br>
|
18
|
</tt></td></tr>
|
19
|
<tr><td><font color="#909090"><tt> <small> 1477</small> <br>
|
20
|
</tt></font></td></tr>
|
21
|
<tr><td><font color="#909090"><tt> <small> 1478</small> else:<br>
|
22
|
</tt></font></td></tr>
|
23
|
<tr><td><small><font color="#909090"><strong>web_interface</strong> = <function web_interface></font></small></td></tr></table>
|
24
|
<table width="100%" cellspacing=0 cellpadding=0 border=0>
|
25
|
<tr><td bgcolor="#d8bbff"><big> </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> <small> 1418</small> elif CAST_SUPPORT and p_page == 'chromecast':<br>
|
27
|
</tt></font></td></tr>
|
28
|
<tr><td><font color="#909090"><tt> <small> 1419</small> html_page_header()<br>
|
29
|
</tt></font></td></tr>
|
30
|
<tr><td bgcolor="#ffccee"><tt>=><small> 1420</small> page_chromecast(p_uri, p_cast_device)<br>
|
31
|
</tt></td></tr>
|
32
|
<tr><td><font color="#909090"><tt> <small> 1421</small> html_page_footer()<br>
|
33
|
</tt></font></td></tr>
|
34
|
<tr><td><font color="#909090"><tt> <small> 1422</small> elif p_page == 'm3u':<br>
|
35
|
</tt></font></td></tr>
|
36
|
<tr><td><small><font color="#909090"><em>global</em> <strong>page_chromecast</strong> = <function page_chromecast>, <strong>p_uri</strong> = '/stream/channel/d5c3e4829ea3cfbf3aea59d02d55cf19', <strong>p_cast_device</strong> = ''</font></small></td></tr></table>
|
37
|
<table width="100%" cellspacing=0 cellpadding=0 border=0>
|
38
|
<tr><td bgcolor="#d8bbff"><big> </big><a href="file:///usr/lib/cgi-bin/tvh_epg.py">/usr/lib/cgi-bin/tvh_epg.py</a> in <strong>page_chromecast</strong>(p_uri='/stream/channel/d5c3e4829ea3cfbf3aea59d02d55cf19', p_cast_device='')</td></tr>
|
39
|
<tr><td><font color="#909090"><tt> <small> 597</small> for cast_dev in chromecasts:<br>
|
40
|
</tt></font></td></tr>
|
41
|
<tr><td><font color="#909090"><tt> <small> 598</small> print('<option value="%s">%s</option>' % \<br>
|
42
|
</tt></font></td></tr>
|
43
|
<tr><td bgcolor="#ffccee"><tt>=><small> 599</small> (cast_dev.device.friendly_name,<br>
|
44
|
</tt></td></tr>
|
45
|
<tr><td bgcolor="#ffccee"><tt>=><small> 600</small> cast_dev.device.friendly_name,<br>
|
46
|
</tt></td></tr>
|
47
|
<tr><td bgcolor="#ffccee"><tt>=><small> 601</small> ))<br>
|
48
|
</tt></td></tr>
|
49
|
<tr><td><small><font color="#909090"><strong>cast_dev</strong> = [Chromecast(None, port=8009, device=DeviceStatus(...8e13-00a0-9d4e-c18d21dbf90d'), cast_type='cast'))], cast_dev.device <em>undefined</em></font></small></td></tr></table><p><strong>AttributeError</strong>: 'list' object has no attribute 'device'
|
50
|
<br><tt><small> </small> </tt>args =
|
51
|
("'list' object has no attribute 'device'",)
|
52
|
<br><tt><small> </small> </tt>with_traceback =
|
53
|
<built-in method with_traceback of AttributeError object>
|
54
|
|
55
|
|
56
|
<!-- The above is a description of an error in a Python program, formatted
|
57
|
for a Web browser because the 'cgitb' module was enabled. In case you
|
58
|
are not reading this in a Web browser, here is the original traceback:
|
59
|
|
60
|
Traceback (most recent call last):
|
61
|
File "/usr/lib/cgi-bin/tvh_epg.py", line 1476, in <module>
|
62
|
web_interface()
|
63
|
File "/usr/lib/cgi-bin/tvh_epg.py", line 1420, in web_interface
|
64
|
page_chromecast(p_uri, p_cast_device)
|
65
|
File "/usr/lib/cgi-bin/tvh_epg.py", line 599, in page_chromecast
|
66
|
(cast_dev.device.friendly_name,
|
67
|
AttributeError: 'list' object has no attribute 'device'
|
68
|
|
69
|
-->
|