Building Python with Tcl/Tk on Cygwin_NT-5.1
Dean N. Williams
williams13 at llnl.gov
Mon Jul 25 15:37:50 EDT 2005
Hi Jason,
To get "import socket" to work in Python2.4, I had to do something
that I never recomend and that is hack the Python code. Since I need
this to work for someone that is going on travel, I just modified the
socketmodule.c file.
REPLACE:
/* Irix 6.5 fails to define this variable at all. This is needed
for both GCC and SGI's compiler. I'd say that the SGI headers
are just busted. */
#if defined(__sgi) && !defined(INET_ADDRSTRLEN)
#define INET_ADDRSTRLEN 16
#endif
WITH:
#define INET_ADDRSTRLEN 16
This is a temporary fix until the Cygwin build works.
Best regards,
Dean
>Dean,
>
>On Fri, Jul 22, 2005 at 05:11:45AM -0700, Dean N. Williams wrote:
>
>
>>I downloaded your new Cygwin from http://cygwin.com and tried to build
>>install Python/CDAT again. It appears to have built properly, but when
>>I try to execute, it receive a sock error. How do I get around this
>>problem?
>>
>>
>
>I don't know -- it is not clear what you are trying to do. Are you
>trying to build Cygwin Python or just CDAT?
>
>On Fri, Jul 22, 2005 at 07:09:08AM -0700, Dean N. Williams wrote:
>
>
>>To be more specific. If I try to import socket I get the "ImportError:
>>No module named _socket". What do I need to install from Cygwin in
>>order for this to work?
>>
>>
>
>AFAICT, nothing. The above seems to indicate your Python installation
>is broken.
>
>Jason
>
>
>
More information about the Python-list
mailing list