[Tutor] [tutor] how to call GSL function from python using ctype

2008-04-27 Thread Kimbol Zhang
i'm trying to call the function from GSL by ctype , the interface. while it seems i need to install some package from GSL. ef=cdll.libgsl.gsl_sf_erf above line gives below error : ef=cdll.libgsl.gsl_sf_erf File "C:\Python25\lib\ctypes\__init__.py", line 423, in __getattr__ dll = self._dll

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread Jeff Younker
It sounds like a process is still listening on the port. If you're on a Unix system then you can use lsof (aka list open files) to locate the process holding on the socket. Killing the process should free the socket. Also, you don't have to close the socket after every connection completes. Tr

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread Mark Tolonen
"James Duffy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] def close( this ): #close all connections and sockets this.conn.close() this.sock.close() def process( this ): #this is the loop of the thread, it listens, receives, closes then repeats

Re: [Tutor] Loading and using large sparse matrices under Windows

2008-04-27 Thread Alan Gauld
"Dinesh B Vadhia" <[EMAIL PROTECTED]> wrote I'm using a recent Scipy svn that supports (sparse) integer matrices but it still causes the pythonw.exe program to abort for the larger datasets. I have ample RAM to create, load and use the matrices. Can you narrow the problem down any further? D

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread tiger12506
How is the window being closed? By someone forcing it to close? Or terminating the process? If someone is just closing the window you can setup an atexit handler that will close the socket before it finishes. However, if the process is being terminated, then you will have to use one of the other

[Tutor] Loading and using large sparse matrices under Windows

2008-04-27 Thread Dinesh B Vadhia
Hi! Does anyone on this list have experience of using the Scipy Sparse matrix library for loading and using very large datasets (>20,000 rows x >1m columns of integers) under Windows? I'm using a recent Scipy svn that supports (sparse) integer matrices but it still causes the pythonw.exe progr

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread Martin Walsh
James Duffy wrote: > I have a problem w/ a file transfer receiver. They way it works is it > binds a port for incoming transfer , when the file transfer is complete. > It closes the connection and the socket, then loops back and restarts > the bind and listen. I have it set so that the socket is re

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread Kent Johnson
James Duffy wrote: I have a problem w/ a file transfer receiver. They way it works is it binds a port for incoming transfer , when the file transfer is complete. It closes the connection and the socket, then loops back and restarts the bind and listen. I have it set so that the socket is reusea

Re: [Tutor] Help with Recurring Function

2008-04-27 Thread Sanhita Mallick
Hi Alan. Thanks a lot. It worked > -- > > Message: 2 > Date: Sat, 26 Apr 2008 13:46:39 +0100 > From: "Alan Gauld" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Help with Recurring Function > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread Alan Gauld
"James Duffy" <[EMAIL PROTECTED]> wrote works. However, if the program that is using this function is closed while listening, it appears that it does not "un-bind" because when the program is reopened and a listen attepted to start I get a "port already in use" error. Only a reboot fixes thi