Re: mini_httpd (ACME Labs) Python 2.4.1 integration

2005-04-04 Thread Venkat B
We found the answer, just in case one was looking for it...

I turns out that setting the environment params (CGI_PATH  CGI_LD_LIB_PATH)
is not sufficient. One has to still add the path entry to the script
itself... like so: #! path-to/python2.4

May also work with ensuring env variable PYTHONPATH is set right.

/venkat


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


mini_httpd (ACME Labs) Python 2.4.1 integration

2005-04-03 Thread Venkat B
Hi folks,I have a webserver based on mini_httpd
v1.19(http://www.acme.com/software/mini_httpd/).I'd like to run some
python-based CGI scripts via this webserver on an RH9 system.In theory, with
the right env settings, Ishould be able to launch mini_httpd like so:
mini_httpd -c *.pyand be able to run scripts like so:
http://fqdn/simple.pyUsing info from (python) sys.path, multiple
get_config_var(..)s and sys.executable, Iwas able to build and use the env
settings (CGI_PATH, CGI_LD_LIBRARY_PATH) in the mini_httpd sources.However,
when I tried accessing the simple.pyscript as in the url above, I get an
error(errno of 8 - Exec format error) when thecode attempts to invoke the
execve() function. This same script works ok from a CGIHTTPServer.py based
test webserver.I was wondering if you knew what the right env settings
should be to get the py script working... I tried to google around to no
avail.

Thanks a lot.
Regards,
/venkat


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


Python 2.4.1 build (configure) ?

2005-03-30 Thread Venkat B
Hi all,

While building the latest 2.4.1 version for Linux/RH9, I wanted to enable
IPV6
support (sockets). So, I ran the configure command ./configure --enable-ipv6
Then I ran the 'make' and 'make altinstall' commands.

When I checked the .py sources (in Lib folder) thru grep for 'ipv6', I see
the same
references I'd see, if I ran the configure command without the --enable-ipv6
option.
Is that normal or is there an issue I need to address here.

Thanks,
/venkat


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


Python LEGO Mindstorm control...

2005-03-29 Thread Venkat B
Hi all,

I have a question re the use of Python to control a robot built with the
LEGO Mindstorm system.
This is to help my 11yr old with his increased interest in 'programming' and
'robotics'... If not feasible, he wants to use the graphical-tool that comes
with it...

Would you suggest:
1. Using LegOS (http://legos.sourceforge.net/) and writing/using py
extensions from a Linux-box, OR
2. Using LeJOS (http://lejos.sourceforge.net/) and writing Jython utils.

Wanted to incorporate Python somehow, as it may be quite appropriate for his
age. Will have to help quite a bit in either case, tho... but was wondering
which is a more treaded path...

TIA,
/venkat


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


Re: Web framework

2005-03-13 Thread Venkat B
 I'd say Nevow! For apache setup, you might be interested in my wsgi [1]
 implementation.

Hi Sridhar,

Are you aware of Nevow's integrability with the webservers (CGIHTTPServer
in particular) that come packaged with Python itself ?

Thanks,
/venkat


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


Re: BaseHTTPServer.BaseHTTPRequestHandler and HTTP chunking

2005-03-10 Thread Venkat B
 No. Hardly any HTTP 1.1 features are supported.

Hi all,

I'd like to know more about the limitations.

Somewhere, is there a list of the actual subset of HTTP 1.1 features
supported. There's not much related info at the python.org site. There
appears to be just a limited note on 1.1 in
http://www.python.org/doc/2.4/lib/module-BaseHTTPServer.html with regards to
using the protocol_version variable/setting. No clue to extent of support.

Thanks,
/v


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