Re: Strange TypeError: can't convert complex to float
Irmen de Jong <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
Hi Andreas, On 4-11-2012 15:21, Andreas Pritschet wrote: > Hi there, > after getting used to Pyro with some simple examples I tried to re-write > my numerical calculation script to run on Pyro. > > But for some very weird reason, Pyro throws this "TypeError: can't > convert complex to float" exception even when there is not even one > complex typed variable around. > The server is receiving the correct data even if it contains complex > numbers. The client apparently always crashes after successfully sending > the data. > > Script and traceback are appended to this mail. On first thought, and looking at the stack trace, it seems that the error is not in Pyro at all but is produced by the code you are calling on the server side. The (pyro-) client is simply re-raising the exception that occurs on the remote end. Make your program print the pyro traceback as well for more info. (see http://packages.python.org/Pyro/7-features.html#exc ) You can even try to set Pyro to report a detailed traceback (see same page). If you still can't find the issue: Can you please reduce this to a smaller piece of code that reproduces the problem? Try to remove the dependencies on numpy/scipy. It makes it undoable right now for me to try to reproduce your problem. Also, what are you doing with the multiprocessing module? Maybe that doesn't integrate that well with Pyro.. (haven't tested it in any way shape or form with Pyro) > > Here's my system configuration: > Ubuntu 12.04 (64bit) > Python 2.7.3 > Pyro 3.14 That's an ancient version of Pyro. Is there a particular reason you're not using Pyro 4.x ? Regards Irmen de Jong ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d