Project

General

Profile

RE: How to Chromecast? ยป tmphng2pqo6.html

Latest pychromecast version errors - David G, 2021-01-17 16:31

 
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>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>&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;1418</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elif&nbsp;CAST_SUPPORT&nbsp;and&nbsp;p_page&nbsp;==&nbsp;'chromecast':<br>
27
</tt></font></td></tr>
28
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1419</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html_page_header()<br>
29
</tt></font></td></tr>
30
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;1420</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;page_chromecast(p_uri,&nbsp;p_cast_device)<br>
31
</tt></td></tr>
32
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;1421</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;1422</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elif&nbsp;p_page&nbsp;==&nbsp;'m3u':<br>
35
</tt></font></td></tr>
36
<tr><td><small><font color="#909090"><em>global</em> <strong>page_chromecast</strong>&nbsp;= &lt;function page_chromecast&gt;, <strong>p_uri</strong>&nbsp;= '/stream/channel/d5c3e4829ea3cfbf3aea59d02d55cf19', <strong>p_cast_device</strong>&nbsp;= ''</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_chromecast</strong>(p_uri='/stream/channel/d5c3e4829ea3cfbf3aea59d02d55cf19', p_cast_device='')</td></tr>
39
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;597</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;cast_dev&nbsp;in&nbsp;chromecasts:<br>
40
</tt></font></td></tr>
41
<tr><td><font color="#909090"><tt>&nbsp;&nbsp;<small>&nbsp;&nbsp;598</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print('&lt;option&nbsp;value="%s"&gt;%s&lt;/option&gt;'&nbsp;%&nbsp;\<br>
42
</tt></font></td></tr>
43
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;599</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(cast_dev.device.friendly_name,<br>
44
</tt></td></tr>
45
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;600</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cast_dev.device.friendly_name,<br>
46
</tt></td></tr>
47
<tr><td bgcolor="#ffccee"><tt>=&gt;<small>&nbsp;&nbsp;601</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;))<br>
48
</tt></td></tr>
49
<tr><td><small><font color="#909090"><strong>cast_dev</strong>&nbsp;= [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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>args&nbsp;=
51
("'list' object has no attribute 'device'",)
52
<br><tt><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</small>&nbsp;</tt>with_traceback&nbsp;=
53
&lt;built-in method with_traceback of AttributeError object&gt;
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 &lt;module&gt;
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
-->
    (1-1/1)