The python 2.4 came with my centos distribution (/usr/lib/) but I had
to build and install python 2.5 myself which got installed in (/usr/
local/lib).  I don't have a PYTHONPATH specified.


I have already tried running

sh setuptools-0.6c8-py2.5.egg

and this is the error message I got:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available

so no luck there either....

Lili




Mike Orr wrote:
> On Tue, May 20, 2008 at 10:01 PM, lilinspace <[EMAIL PROTECTED]> wrote:
> >
> >
> > I tried /usr/local/bin/python2.5 easy_install Pylons as suggested but
> > I got the following error.
> >
> > Traceback (most recent call last):
> >  File "easy_install", line 5, in <module>
> >    from pkg_resources import load_entry_point
> > ImportError: No module named pkg_resources
> >
> >
> > I also tried
> >
> > /usr/local/bin/python2.5 ez_setup.py Pylons
> > Downloading 
> > http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c8-py2.5.egg
> > Traceback (most recent call last):
> >  File "ez_setup.py", line 267, in <module>
> >    main(sys.argv[1:])
> >  File "ez_setup.py", line 200, in main
> >    from setuptools.command.easy_install import main
> > zipimport.ZipImportError: can't decompress data; zlib not available
> >
> > ....even though zlib is available.
> >
> > I also tried to follow instructions on the easy_install to get
> > easy_install-2.5 but they all resulted in an ImportError of some kind.
> >
> > Is here another way to install pylons besides easy_install???
>
> Your Python 2.5 installation is seriously messed up.  Either that or a
> custom distutils.cfg, ~/.pydistutils.cfg, PYTHONPATH, site.py,
> sitecustomize,py, or .pth file is sending it the wrong way.  I see
> "/usr/lib/" in the output so I gather you're on Unix or Mac.  Did you
> use the standard OS packages for Python 2.5 and 2.4?  Those packages
> are built to look only in their version-specific lib directory.
>
> You can install Setuptools itself by downloading it manually and
> running it as a script.  As for Pylons and its dependencies,
> theoretically you can download all of them and "python setup.py
> install" them.  But you'll find that many of them import
> setuptools/pkg_resources in their setup.py, and some of them even try
> to install it if it's not there (ez_setup.py).  So there's no way to
> avoid setuptools unless you hack all those setup.py's.  That would
> include deleting the setup() arguments that distutils doesn't
> understand.  Oh, but then you wouldn't have entry points, and Paster
> depends on entry points.  So you need Setuptools.
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to