Re: stlib name clash when using python as ASP language

2007-02-05 Thread Gabriel Genellina
En Sun, 04 Feb 2007 09:53:22 -0300, Joost <[EMAIL PROTECTED]> escribió: >> You *assume* that [0] is the IIS path, but perhaps some other imported >> module changed sys.path too, and now it's not the first one anymore. >> If you know exactly the path, try sys.path.remove(iis_path). >> > > It's wa

Re: stlib name clash when using python as ASP language

2007-02-04 Thread Joost
> You *assume* that [0] is the IIS path, but perhaps some other imported > module changed sys.path too, and now it's not the first one anymore. > If you know exactly the path, try sys.path.remove(iis_path). > > -- > Gabriel Genellina It's was a hack and definitely not meant to go in to production

Re: stlib name clash when using python as ASP language

2007-02-02 Thread Gabriel Genellina
"Joost" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > When using ASP the iis/inetsrv path is placed as the first item in > sys.path. Consequently importing httplib2 will cause the following > error: > > ImportError: dynamic module does not define init function (initgzip) > >

stlib name clash when using python as ASP language

2007-02-01 Thread Joost
Hi guys, I have couple of simple python based active server pages that make use of httplib2 which uses gzip.py. IIS, however, also has a gzip.dll located at the iis/inetsrv path. When using ASP the iis/inetsrv path is placed as the first item in sys.path. Consequently importing httplib2 will caus