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

2010-03-14 Thread Greg Ewing
pyt...@bdurham.com wrote: ...'Choosing a collection of common modules/packages for a general purpose reusable PY2EXE runtime'. This post got zero feedback so our idea is either too stupid or too obvious to warrant further conversation :) I think the problem is that in the rare cases when you n

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

2010-03-14 Thread Andrew Spagnoletti
Hi Malcolm, Problem solved! For some reason _socket.pyd was not added to the install; I manually included it with Advanced Installer and now it works. I can only presume that with my other application (the one that included CherryPy and simplejson) I have some 'include' that causes _socket.

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. DOH! You're right! I've been doing a lot of work with our automated build cycle and I m

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 f

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 simi

[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 program