"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)
>
> The following per page hack *fixes* the problem most of the time:
> import sys
> sys.path[0] = "c:/python24/lib"
>
> Strangely, even with this code loaded in every page the import error
> sporadically occurs. What would be the preferred way to solve this
> name clash?

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 


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

Reply via email to