On Mon, Feb 16, 2009 at 4:22 PM, Bayle <[email protected]> wrote:
>
> If it helps, I noticed that the error trace I get with 1.1.9 mentions
> zipimporter trying to do something with /usr/lib/python2.5/site-
> packages/setuptools-0.6c9-py2.5.egg, and I noticed that during the
> pth_relpath_fixup there was the following error:
>
> WARNING: /usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg
> is installed as a zip file
> Libraries must be installed with easy_install --always-unzip
>
> So, as root, I installed the unpacked version of setuptools-0.6c9-
> py2.5.egg to /usr/lib/python2.5/site-packages/, by doing
>
> # cd /usr/lib/python2.5/site-packages
> # mv setuptools-0.6c9-py2.5.egg setuptools-0.6c9-py2.5.egg-old
> # cp -r ~bshanks/prog/testsite/lib/python2.5/site-packages/
> setuptools-0.6c9-py2.5.egg .
>
> Of course, mucking with things as root shouldn't be required,
You should not be using nonstandard libraries installed in /usr/lib,
because they will not be available in the server environment. You'll
have to install Setuptools into the virtualenv. We're not sure at
this point which libraries can be zipped, because "zip safe for App
Engine" is not necessarily the same as "zip safe for Python". So I
would start with all packages unzipped, and then zip them one by one
if you're over the 1000-file limit. You can also delete large
subdirectories that you don't use, such as webhelpers/rails, etc. I'm
planning on making a standard Pylons archive that can be dropped into
a virtualenv without easy_installing everything, if I can get it to
work.
> but
> anyhow:
>
> Now when I try to run it, I get a different error, about the "site"
> module not being found (appended below).
That happens at various times, I'm not sure exactly under what
circumstances. It indicates some discrepency between sys.path and the
standard site.py vs virtualenv's site.py. Sometimes reinstalling the
application ("python setup.py develop") fixes ImportError's.
Appengine-monkey has a new command to create the virtualenv, which I
haven't tried yet so it's not in the wiki instructions, but Ian
recommends it. I'd try starting over with that and seeing if it
helps. And use the --no-site-packages option, whatever it's called.
--
Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---