Re: HelloWorld sanity check please - AttributeError: 'tuple' object has no attribute 'startswith'
Tim Roberts <[email protected]> Wed, 24 Apr 2019 21:30:00 -0700
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_DF3310AA-741E-44F6-9C7A-F00F7E282E5B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" On Apr 24, 2019, at 8:11 AM, [email protected] wrote: >=20 > I have a VERY simple application that refuses to start. > This is the error trace:... > ... > main.conf: > ... > [/html] > tools.staticdir.on =3D True > tools.staticdir.dir =3D './html', > tools.staticdir.index =3D 'index.html' You really can't see it? That the second line in the [/html] section has a= trailing comma? In Python, that turns it from a string constant to a one-= item tuple. =E2=80=94=20 Tim Roberts, [email protected] Providenza & Boekelheide, Inc. --=20 You received this message because you are subscribed to the Google Groups "= cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout. --Apple-Mail=_DF3310AA-741E-44F6-9C7A-F00F7E282E5B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= =3Dutf-8"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s= pace; line-break: after-white-space;" class=3D"">On Apr 24, 2019, at 8:11 A= M, <a href=3D"mailto:[email protected]" class=3D"">[email protected]</a> = wrote:<br class=3D""><div><blockquote type=3D"cite" class=3D""><br class=3D= "Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" class=3D"">I h= ave a VERY simple application that refuses to start.<br class=3D"">This is = the error trace:...<br class=3D""><b class=3D"">...</b><div class=3D""><b c= lass=3D"">main.conf:</b></div><div class=3D""><div class=3D"prettyprint" st= yle=3D"background-color: rgb(250, 250, 250); border-color: rgb(187, 187, 18= 7); border-style: solid; border-width: 1px; overflow-wrap: break-word;"><co= de class=3D"prettyprint" style=3D""><div class=3D"subprettyprint" style=3D"= "><font color=3D"#660066" class=3D""><b class=3D""><div class=3D"subprettyp= rint" style=3D"">...</div><div class=3D"subprettyprint" style=3D"">[/html]<= /div><div class=3D"subprettyprint" style=3D"">tools.staticdir.on =3D True</= div><div class=3D"subprettyprint" style=3D"">tools.staticdir.dir =3D './htm= l',</div><div class=3D"subprettyprint" style=3D"">tools.staticdir.index =3D= 'index.html'</div></b></font></div></code></div></div></div></div></blockq= uote><div><br class=3D""></div><div>You really can't see it? That the= second line in the [/html] section has a trailing comma? In Python, = that turns it from a string constant to a one-item tuple.</div><div>=E2=80= =94 </div></div><div class=3D"">Tim Roberts, <a href=3D"mailto:timr@pr= obo.com" class=3D"">[email protected]</a><br class=3D"">Providenza & Boeke= lheide, Inc. </div> <br class=3D""></body></html> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher= rypy-users+unsubscribe-/[email protected]</a>.<br /> To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl= egroups.com">cherrypy-users-/[email protected]</a>.<br /> Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use= rs">https://groups.google.com/group/cherrypy-users</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> --Apple-Mail=_DF3310AA-741E-44F6-9C7A-F00F7E282E5B--