Skip to Content.
Sympa Menu

pcplantdb - Re: [pcplantdb] python import problem in cgi env.

pcplantdb@lists.ibiblio.org

Subject: pcplantdb

List archive

Chronological Thread  
  • From: Chad Knepp <pyg@galatea.org>
  • To: Permaculture Plant Database <pcplantdb@lists.ibiblio.org>
  • Subject: Re: [pcplantdb] python import problem in cgi env.
  • Date: Tue, 7 Dec 2004 12:26:16 -0600

Actually, it's fixed and working now. Kind of stupid that I didn't
figure it out myself... I was so close. The import problem was
because of python 1.5.2 being the cgi preferred version of python, but
simply hardcoding the splat bang (#!/usr/bin/python2.2) of the cgi
script works.

Anyway,
Chad

Richard Morris writes:
> Chad Knepp wrote:
>
> > Hello Ibiblio staff,
> >
> > I'm having some inexplicable (to me anyway) problems with python
> > failing to import certain packages in the cgi environment of the
> > virtual host permaculture.info (/public/vhost/pyg). I've written a
> > test python cgi script to demonstrate the problem that I will attach.
> > I suspect that the problem has something to do with the fact that the
> > cgi version of python is 1.5.2 and the shell version of python 2.2.3
> > or something in the config details of apache or nfs.
>
> ><snip>
>
> Yep I've had similar problems in the past. I guess that we need to code
> for the cgi version i.e. 1.5.2.
>
> Could possibly hassle ibiblio to use a more recient version.
>
> Is there some way to specify which version of python to use with the cgi.
>
> I'd suggest a bug report to ibiblio support.
>
> Rich
> --
> Plants for a Future: 7000 useful plants
> Web: http://www.pfaf.org/ same as http://www.comp.leeds.ac.uk/pfaf/
> Post: 1 Lerryn View, Lerryn, Lostwithiel, Cornwall, PL22 0QJ
> Tel: 01208 872 963 / 0845 458 4719
> Email: webmaster@pfaf.org
> PFAF electronic mailing list http://groups.yahoo.com/group/pfaf
>
>
> _______________________________________________
> pcplantdb mailing list
> pcplantdb@lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/pcplantdb




Archive powered by MHonArc 2.6.24.

Top of Page