On Wed, 2011-08-31 at 11:41 -0700, Siddhartha Kasivajhula wrote: > Hi all, > I'm new to Pyramid, and let me say first that it looks really cool and > I've been meaning to try it for a while :). > I was going through the documentation on installation and the hello > world app, and I ran into this error message while trying to run > helloworld: > > > siddhartha:apps-110-$python hellopyr.py > Traceback (most recent call last): > File "hellopyr.py", line 2, in <module> > from pyramid.configuration import Configurator > File > "/Library/Python/2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/configuration.py", > line 1, in <module> > from pyramid.config import Configurator as BaseConfigurator > File > "/Library/Python/2.6/site-packages/pyramid-1.0-py2.6.egg/pyramid/config.py", > line 12, in <module> > from zope.configuration.config import GroupingContextDecorator > File > "/Library/Python/2.6/site-packages/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", > line 23, in <module> > import zope.schema > File > "/Library/Python/2.6/site-packages/zope.schema-3.8.0-py2.6.egg/zope/schema/__init__.py", > line 16, in <module> > from zope.schema._field import Field, Container, Iterable, > Orderable > File > "/Library/Python/2.6/site-packages/zope.schema-3.8.0-py2.6.egg/zope/schema/_field.py", > line 24, in <module> > from zope.interface import classImplements, implements, Interface > ImportError: No module named interface > > > > > I installed virtualenv, my python version is: > $python --version > Python 2.6.1 > > > Looking back at the logs from 'bin/easy_install pyramid', I see this: > > > Running zope.interface-3.7.0/setup.py -q bdist_egg > --dist-dir /var/folders/L6/L6RbbV+NGBaO6JGa905AKE > +++TI/-Tmp-/easy_install-Zl0QT1/zope.interface-3.7.0/egg-dist-tmp-gOf2zE > /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler > (/usr/bin/../libexec/gcc/darwin/ppc/as > or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc > not installed > Installed assemblers are: > /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64 > /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386 > src/zope/interface/_zope_interface_coptimizations.c:1676: fatal error: > error writing to -: Broken pipe > compilation terminated. > lipo: can't open input file: /var/folders/L6/L6RbbV+NGBaO6JGa905AKE > +++TI/-Tmp-//ccJe3vOi.out (No such file or directory) > ******************************************************************************** > WARNING: > > > An optional code optimization (C extension) could not be > compiled. > > > Optimizations for this package will not be available! > > > command 'gcc-4.2' failed with exit status 1 > ******************************************************************************** > > > ... > > > I also saw a few other messages like this but looks like it ultimately > completes the install successfully despite these warnings. > > > > > Do you know what the problem may be?
It's likely that when you created your virtualenv you did not pass the "--no-site-packages" flag as per the install documentation. The compilation warnings are "normal" for some definition of normal. You can get rid of them by installing a C compiler on your platform as per the install documentation. - C -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.