Python 2.5 zlib trouble

2011-09-22 Thread Jesramz
Hello,

I am trying to deploy an app on google app engine using bottle, a
micro-framework, similar to flask. I am running on ubuntu which comes
with python 2.7 installed but GAE needs version 2.5, so I installed
2.5. I then realized I didn't use make altinstall so I may have a
default version problem now. But my real problem is that when I try to
use the gae server to test locally I get the following error:

Traceback (most recent call last):
  File "/opt/google/appengine/dev_appserver.py", line 77, in 
run_file(__file__, globals())
  File "/opt/google/appengine/dev_appserver.py", line 73, in run_file
execfile(script_path, globals_)
  File "/opt/google/appengine/google/appengine/tools/
dev_appserver_main.py", line 156, in 
from google.appengine.tools import dev_appserver
  File "/opt/google/appengine/google/appengine/tools/
dev_appserver.py", line 94, in 
import zlib
ImportError: No module named zlib



Can you help me with this?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.5 zlib trouble

2011-09-23 Thread Jesramz
Python 2.5.6 (r256:88840, Sep 22 2011, 13:45:58)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named zlib
>>>

But if I run Python2.7 I get:

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
>>>

It seems to work.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.5 zlib trouble

2011-09-23 Thread Jesramz

Thank You Christian

Im running on Ubuntu Natty and I am not running a self-compiled
install, its a regular release. In order to do this:

  $ make distclean
   $ export LDFLAGS="-L/usr/lib/$(dpkg-architecture -
qDEB_HOST_MULTIARCH)"
   $ ./configure
   $ make
   $ make install
   $ unset LDFLAGS

If you can, can you explain the steps for this, can I run this in a
regular release of Python2.5?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.5 zlib trouble

2011-09-23 Thread Jesramz
Thank You Christian

Im running on Ubuntu Natty and I am not running a self-compiled
install, its a regular release. In order to do this:
  $ make distclean
   $ export LDFLAGS="-L/usr/lib/$(dpkg-architecture -
qDEB_HOST_MULTIARCH)"
   $ ./configure
   $ make
   $ make install
   $ unset LDFLAGS

If you can, can you explain the steps for this, can I run this in a
regular release of Python2.5?



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.5 zlib trouble

2011-09-24 Thread Jesramz

I installed it from here: http://www.python.org/getit/releases/2.5.6/

What do you think a solution might be?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.5 zlib trouble

2011-09-26 Thread Jesramz

I appreciate all the help, but I am still a little confused. Sorry,
I'm a lay person.

Should I download zlib1g-dev and install it to get the zlib module?

and Alter the configure script to avoid future issues?

Also about getting zlib I found the following:

"I was able to recompile zlib

$./configure --shared

then recompile Python 2.5.1; I am now able to import the zlib module.

cheers

-sg"

Does this mean that while in the zlib folder run ./configure shared
and then install python?
-- 
http://mail.python.org/mailman/listinfo/python-list