[python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread Andrew Spagnoletti
Hi, Hope this is the correct forum . I have a Windows Python 2.5 (using wxPython) application, which works fine until I 'compile' with py2exe (i.e. the installed program does not work - although the 'test' in py2exe does). I use urllib to add functionality to send an SMS from my

Re: [python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread Aahz
On Sat, Mar 13, 2010, Andrew Spagnoletti wrote: Hope this is the correct forum . It's an acceptable one, but you probably should subscribe to py2exe-users. ImportError: DLL load failed: The specified module could not be found. Here's what I just posted to py2exe-users in response to a

Re: [python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread python
Are any of your imports buried inside if or def statements? py2exe uses a module-finding technique that doesn't work with those, and you'll either need to change your code or list the modules in setup.py We have import's embedded in 'if' blocks and py2exe seems to be picking these up fine.

Re: [python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread python
Tom, You don't need to add a whole load of imports inside a if False block to make py2exe add them. If I recall correctly there is a option in py2exe to force exclude and include modules when compiling. embarrased grin DOH! You're right! /embarrassed grin I've been doing a lot of work with our