I just tried creating the virtualenv and then untar'd pyramid 1.1 in the env
folder. Then in the pyramid folder:

$ ../bin/python setup.py install

I checked in env/lib/python/site-packages and it looked like the
pyramid/zope libraries were there, but running the helloworld app again gave
the same exception.



On Wed, Aug 31, 2011 at 2:11 PM, Siddhartha Kasivajhula <
countvajh...@gmail.com> wrote:

> Hi Chris,
> Hmm, I did add that flag:
>
> $virtualenv --no-site-packages env
> New python executable in env/bin/python
> Installing setuptools............done.
> Installing pip...............done.
>
>
> Also, looks like I am able to run gcc from within the env folder:
>
> $gcc-4.2
> i686-apple-darwin10-gcc-4.2.1: no input files
>
>
> I also tried creating a C hello world app and it compiled and ran fine
> using gcc-4.2 within env.
>
> The pyramid version that was installed is 1.2a3:
>
> $bin/easy_install pyramid
> Searching for pyramid
> Reading http://pypi.python.org/simple/pyramid/
> Reading http://pylonsproject.org
> Reading http://docs.pylonsproject.org
> Reading http://docs.pylonshq.com
> Best match: pyramid 1.2a3
>
>
> Not sure if that's the right version I should be using? Is there a way off
> the top of your head that I can get it to use 1.1 instead?
>
> Thanks,
> -Sid
>
>
> On Wed, Aug 31, 2011 at 11:44 AM, Chris McDonough <chr...@plope.com>wrote:
>
>> 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.
>>
>>
>

-- 
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.

Reply via email to