Re: issues installing Cheetah on OS X 10.7.2
Kerry Kurian <[email protected]> Tue, 17 Jan 2012 22:28:27 -0700
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <CAG1gr_x0OKznNTUxaMw-t=j20eCAiORnxdFNzPQ_Fvr4dMwXmg@mail.gmail.com> |
--===============0025607525357662759== Content-Type: multipart/alternative; boundary=e89a8ff1c4369e741004b6c6b788 --e89a8ff1c4369e741004b6c6b788 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 17, 2012 at 9:16 PM, R. Tyler Croy <[email protected]> wrote: > > On Tue, 17 Jan 2012, Kerry Kurian wrote: > > > Hi group, > > > > two parts: > > > > 1. I installed Cheetah 2.4.4 via package download and python setup.py > > install, and got this: > > > > One or more C extensions failed to build. Performance enhancements > > will not be available. Pure Python installation succeeded. > > > > If anyone knows how to fix that, I'd love to know. (FWIW I have > > XCode 4.2.1 installed.) > > I wonder if this might have been caused by Lion defaulting to clang(1) for > its > default C compiler. You might try setting the CC=/usr/bin/gcc4.2 (if I > remember > correctly) environment variable and try again. > > Issue #1 resolved -- install is trying to use "gcc-4.2" but it's named "gcc" on my system. I set up a symlink for gcc-4.2 --> gcc and the install now builds the .so. (Setting CC=/usr/bin/gcc didn't do the trick.) > > > > 2. cheetah test gives me a boadload of errors and two fails. > > > > The errors look like this: > > > > ===================================ERROR: test1 > > (Cheetah.Tests.NameMapper.VFFSL) string in dict lookup > > ---------------------------------- Traceback (most recentcall last): File > > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ > > site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/NameMapper.py", > > line 510, in setUp del ns['anInt'] # will be picked up by globals > > KeyError: 'anInt' > > > > The two fails are as follows: > > > > ====================================FAIL: > > test_compilationCache (Cheetah.Tests.Template.ClassMethods_compile) > > ---------------------------------- Traceback (most recent call last): > File > > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ > > site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/Template.py", > > line 158, in test_compilationCache assert not > > klass._CHEETAH_isInCompilationCache AssertionError > > > > ====================================FAIL: > > test_keepRefToGeneratedCodeArg > (Cheetah.Tests.Template.ClassMethods_compile) > > ---------------------------------- Traceback (most recent call last): > File > > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ > > site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/Template.py", line > 133, > > in test_keepRefToGeneratedCodeArg assert not t.generatedModuleCode() > > AssertionError > > > > ---------------------------------------------------------------------- > > > > Any ideas? Safe to ignore those? If not, what's the fix? > > I've not seen these errors, I also don't have a Mac running around to test > on > :/ > > Could you grab the latest from https://github.com/rtyler/cheetah and try > that? > > I just downloaded and installed the latest. Issue #2 remains -- still getting 2 failures and 228 errors. Based on a quick scan of the errors, it looks like all the errors are caused by Tests/NameMapper.py at line 510 (as shown above). In case it matters, during install there's one thing that doesn't look right: /Library/Python/2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/command/bdist_egg.py:422: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal If you'd like me to try out anything over here on the mac, just let me know. -K > - R. Tyler Croy > -------------------------------------- > Code: http://github.com/rtyler > Chatter: http://twitter.com/agentdero > [email protected] > -- Kerry Ivan Kurian Want more? Subscribe to my blog <http://kkurian.com> (kkurian.com) Follow me on Twitter <http://twitter.com/kkurian> (@kkurian) Friend me on Facebook <http://facebook.com/kkurian> (kkurian) *This email, including all attachments, is private and may contain legally privileged and/or confidential information. No use other than by my intended recipients is permitted. Thank you.* * * --e89a8ff1c4369e741004b6c6b788 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>On Tue, Jan 17, 2012 at 9:16 PM, R. Tyler Croy <span dir=3D"ltr"><<= a href=3D"mailto:[email protected]">[email protected]</a>></span> wr= ote:</div><div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote"= style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div class=3D"im"><br> On Tue, 17 Jan 2012, Kerry Kurian wrote:<br> <br> > Hi group,<br> ><br> > two parts:<br> ><br> > 1. I installed Cheetah 2.4.4 via package download and python setup.py<= br> > install, and got this:<br> ><br> > One or more C extensions failed to build. Performance enhancements<br> > will not be available. Pure Python installation succeeded.<br> ><br> > If anyone knows how to fix that, I'd love to know. (FWIW I have<br= > > XCode 4.2.1 installed.)<br> <br> </div>I wonder if this might have been caused by Lion defaulting to clang(1= ) for its<br> default C compiler. You might try setting the CC=3D/usr/bin/gcc4.2 (if I re= member<br> correctly) environment variable and try again.<br> <div><div class=3D"h5"><br></div></div></blockquote><div><br></div><div>Iss= ue #1 resolved -- install is trying to use =A0"gcc-4.2" but it= 9;s named "gcc" on my system. I set up a symlink for gcc-4.2 --&g= t; gcc and the install now builds the .so. (Setting CC=3D/usr/bin/gcc didn&= #39;t do the trick.)</div> <div><br></div><div>=A0</div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class= =3D"h5"> ><br> > 2. cheetah test gives me a boadload of errors and two fails.<br> ><br> > The errors look like this:<br> ><br> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DERROR: test1<br> > (Cheetah.Tests.NameMapper.VFFSL) string in dict lookup<br> > ---------------------------------- Traceback (most recentcall last): F= ile<br> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/= <br> > site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/NameMapper.py"= ;,<br> > line 510, in setUp del ns['anInt'] # will be picked up by glob= als<br> > KeyError: 'anInt'<br> ><br> > The two fails are as follows:<br> ><br> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DFAIL:<br> > test_compilationCache (Cheetah.Tests.Template.ClassMethods_compile)<br= > > ---------------------------------- Traceback (most recent call last): = File<br> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/= <br> > site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/Template.py",= <br> > line 158, in test_compilationCache assert not<br> > klass._CHEETAH_isInCompilationCache AssertionError<br> ><br> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DFAIL:<br> > test_keepRefToGeneratedCodeArg (Cheetah.Tests.Template.ClassMethods_co= mpile)<br> > ---------------------------------- Traceback (most recent call last): = File<br> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/= <br> > site-packages/Cheetah-2.4.4-py2.7.egg/Cheetah/Tests/Template.py",= line 133,<br> > in test_keepRefToGeneratedCodeArg assert not t.generatedModuleCode()<b= r> > AssertionError<br> ><br> > ----------------------------------------------------------------------= <br> ><br> > Any ideas? Safe to ignore those? If not, what's the fix?<br> <br> </div></div>I've not seen these errors, I also don't have a Mac run= ning around to test on<br> :/<br> <br> Could you grab the latest from <a href=3D"https://github.com/rtyler/cheetah= " target=3D"_blank">https://github.com/rtyler/cheetah</a> and try that?<br> <span class=3D"HOEnZb"><font color=3D"#888888"><br></font></span></blockquo= te><div><br></div><div>I just downloaded and installed the latest.</div><di= v><br></div><div>Issue #2 remains -- still getting 2 failures and 228 error= s. Based on a quick scan of the errors, it looks like all the errors are ca= used by Tests/NameMapper.py at line 510 (as shown above).</div> <div><br></div><div><div>In case it matters, during install there's one= thing that doesn't look right:</div><div><br></div><div>/Library/Pytho= n/2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/comman= d/bdist_egg.py:422: UnicodeWarning: Unicode equal comparison failed to conv= ert both arguments to Unicode - interpreting them as being unequal</div> </div><div><br></div><div>If you'd like me to try out anything over her= e on the mac, just let me know.</div><div><br></div><div>-K</div><div>=A0</= div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef= t:1px #ccc solid;padding-left:1ex"> <span class=3D"HOEnZb"><font color=3D"#888888"> - R. Tyler Croy<br> --------------------------------------<br> =A0 =A0Code: <a href=3D"http://github.com/rtyler" target=3D"_blank">http:/= /github.com/rtyler</a><br> =A0Chatter: <a href=3D"http://twitter.com/agentdero" target=3D"_blank">http= ://twitter.com/agentdero</a><br> =A0 =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]">[email protected]<= /a><br> </font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b= r><span style=3D"font-family:arial,sans-serif;font-size:13px;border-collaps= e:collapse"><font face=3D"georgia, serif"><font color=3D"#000066">Kerry Iva= n Kurian</font></font></span><div> <font color=3D"#000066" face=3D"georgia, serif"><span style=3D"border-colla= pse:collapse"><br></span></font></div><div><font color=3D"#000066" face=3D"= georgia, serif"><span style=3D"border-collapse:collapse">Want more?</span><= /font></div> <div><div><span style=3D"border-collapse:collapse;color:rgb(0,0,102);font-f= amily:georgia,serif;font-size:13px"><img src=3D"http://posterous.com/images= /favicon.png">=A0<a href=3D"http://kkurian.com" target=3D"_blank">Subscribe= to my blog</a>=A0</span><span style=3D"border-collapse:collapse;color:rgb(= 0,0,102);font-family:georgia,serif;font-size:13px">(<a href=3D"http://kkuri= an.com" target=3D"_blank">kkurian.com</a>)</span></div> <div><div><font face=3D"georgia, serif"><span style=3D"border-collapse:coll= apse"><img src=3D"http://www.twitter.com/favicon.ico">=A0<a href=3D"http://= twitter.com/kkurian" target=3D"_blank">Follow me on Twitter</a>=A0</span></= font><span style=3D"border-collapse:collapse;color:rgb(0,0,102);font-family= :georgia,serif;font-size:13px">(@kkurian)</span></div> <div><font color=3D"#000066" face=3D"georgia, serif"><span style=3D"border-= collapse:collapse"><img src=3D"http://facebook.com/favicon.ico">=A0<a href= =3D"http://facebook.com/kkurian" target=3D"_blank">Friend me on Facebook</a= >=A0(kkurian)<br> </span></font></div><div><font color=3D"#000066" face=3D"georgia, serif"><s= pan style=3D"border-collapse:collapse"><br></span></font></div><span style= =3D"font-family:georgia,serif;font-size:x-small;border-collapse:collapse"><= i>This email, including all attachments, is private and may contain legally= privileged and/or confidential information. No use other than by my intend= ed recipients is permitted. Thank you.</i></span></div> </div><div><span style=3D"font-family:georgia,serif;font-size:x-small;borde= r-collapse:collapse"><i><br></i></span></div><br> </div> --e89a8ff1c4369e741004b6c6b788-- --===============0025607525357662759== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d --===============0025607525357662759== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Cheetahtemplate-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss --===============0025607525357662759==--