New standalone Windows release

Zbynek Winkler zwin at users.sourceforge.net
Fri Sep 23 14:28:18 CDT 2005


Maquelin, Olivier wrote:

>>-----Original Message-----
>>From: Bryan O'Sullivan
>>Sent: Friday, September 23, 2005 10:24 AM
>>To: Maquelin, Olivier
>>Cc: mercurial at selenic.com
>>Subject: RE: New standalone Windows release
>>    
>>
>[...]
>  
>
>>  File "C:\Python24\Lib\site-packages\mercurial\sshrepo.py", 
>>line 40, in readerr
>>
>>    r,w,x = select.select([self.pipee], [], [], 0)
>>select.error: (10093, 'Either the application has not called 
>>WSAStartup, or WSAS
>>tartup failed')
>>    
>>
>
>You are right. The initial clone worked fine, but subsequent pulls fail
>in that way for me too :-(
>
>The following, taken from the ActivePython 2.4 documentation, seem to be
>the explanation:
>
>On Windows, the underlying select() function is provided by the WinSock
>library, and does not handle file descriptors that don't originate from
>WinSock.
>
>And just getting WSAStartup to be called does not help either. You can
>achieve that by adding 'import socket' at the top of the file, but then
>you get the following error message:
>
>select.error: (10038, 'An operation was attempted on something that is
>not a socket')
>  
>
I've found 
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 that uses 
PeekNamedPipe from win32pipe...

Zbynek

-- 
http://zw.matfyz.cz/     http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic



More information about the Mercurial mailing list