From: Fuzzyman <fuz...@vo...> - 2006-02-28 10:36:25
|
Hello all, I've encountered a problem with Movable Python and WebWare. Because of the nature of the problem, it probably applies to anyone who attempts to use WebWare with py2exe - or indeed any code that uses ``imp.load_module``. For full details see : http://www.voidspace.org.uk/python/weblog/arch_d7_2006_02_25.shtml#e237 (This has details of a temporary fix to WebWare that gets round the immediate problem.) *Basically*, there is a problem (as far as I can tell) with code that uses ``imp.find_module`` (under py2exe) for modules contained in the ``library.zip``. Because ``find_module`` wants to return an open file as one of it's return values it fails with a ``Module Not Found`` error. For Movable Python I will probably 'monkey patch' ``find_module`` so that it extracts the file and returns it as a cStringIO instance. I wondered if anyone had encountered/solved this problem before, or if there was a better approach ? Thanks Fuzzyman http://www.voidspace.org.uk/python/index.shtml |