OK.  I didn't realize that I had to run the process in a separate  
terminal.  I worked when I did that.  I think the other thing is still  
a bug.

Aaron Meurer
On Jul 16, 2009, at 4:16 PM, Ondrej Certik wrote:

>
> On Thu, Jul 16, 2009 at 3:47 PM, Aaron S. Meurer<asmeu...@gmail.com>  
> wrote:
>>
>> So I was trying to try out the parallel testing that Ondrej has setup
>> in his par branch (see this old thread: 
>> http://groups.google.com/group/sympy/browse_thread/thread/379f13863348f80/af9d58ab53418e0f?lnk=gst&q=parallel#af9d58ab53418e0f
>>  , and here is Ondrej's branch: http://github.com/certik/sympy/tree/par)
>
> Here is what I did:
>
> in one terminal
>
> $ ipcluster local -n 2
>
> and keep it running. in another terminal:
>
> $ git clone git://github.com/certik/sympy.git
> $ cd sympy
> $ git co -b par origin/par
> $ python setup.py install --home=~/usr
> $ python t.py
> number of tests: 1575
> distributing jobs
> collecting results
> processor: 0
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . F F . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . exceptions
> ________________________________________________________________________________
>  File "/home/ondrej/usr/lib/python/sympy/mpmath/tests/ 
> test_functions2.py",
> line 223, in test_hyper_0f1
>    assert hyper([],[(1,3)],1.5).ae(v)
>  File "/home/ondrej/usr/lib/python/sympy/mpmath/tests/ 
> test_functions2.py",
> line 223, in test_hyper_0f1
>    assert hyper([],[(1,3)],1.5).ae(v)
>
>
> ________________________________________________________________________________
>  File "/home/ondrej/usr/lib/python/sympy/mpmath/tests/ 
> test_functions2.py",
> line 244, in test_hyper_2f1
>    assert hyper([(1,2), (3,4)], [2], 0.3).ae(v)
>  File "/home/ondrej/usr/lib/python/sympy/mpmath/tests/ 
> test_functions2.py",
> line 244, in test_hyper_2f1
>    assert hyper([(1,2), (3,4)], [2], 0.3).ae(v)
>
> [...]
>
> etc. There are some failures due to some tests in mpmath (the dps
> needs to be fixed), but otherwise things more or less work.
>
>
>
> Now let me try what you did too:
>
> In [1]: from IPython.kernel import client
>
> In [2]: mec = client.MultiEngineClient()
>
> In [3]: mec.get_ids()
> Out[3]: [0, 1]
>
> so indeed, this seems like a bug in ipython on Mac.
>
>> .
>>
>> After installing twisted and foolcap and running "ipcluster local -n
>> 2" (I have a dual core MacBook Pro), which created the furl files in
>> ~/.ipython/security, I tried running
>>
>> In [1]: from IPython.kernel import client
>> In [2]: mec = client.MultiEngineClient()
>> As suggested on 
>> http://ipython.scipy.org/doc/manual/html/parallel/parallel_intro.html#getting-started
>> .  But I got this traceback:
>> ---------------------------------------------------------------------------
>> ConnectionRefusedError                    Traceback (most recent call
>> last)
>>
>> /Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython console> in
>> <module>()
>>
>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>> packages/IPython/kernel/client.pyc in
>> get_multiengine_client(furl_or_file)
>>      67     """
>>      68     client =
>> blockingCallFromThread(_client_tub.get_multiengine_client,
>> ---> 69         furl_or_file)
>>      70     return client.adapt_to_blocking_client()
>>      71
>>
>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>> packages/IPython/kernel/twistedutil.pyc in blockingCallFromThread(f,
>> *a, **kw)
>>      70         @raise: any error raised during the callback chain.
>>      71         """
>> ---> 72         return
>> twisted.internet.threads.blockingCallFromThread(reactor, f, *a, **kw)
>>      73
>>      74 else:
>>
>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>> packages/Twisted-8.2.0-py2.6-macosx-10.3-fat.egg/twisted/internet/
>> threads.pyc in blockingCallFromThread(reactor, f, *a, **kw)
>>     112     result = queue.get()
>>     113     if isinstance(result, failure.Failure):
>> --> 114         result.raiseException()
>>     115     return result
>>     116
>>
>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>> packages/Twisted-8.2.0-py2.6-macosx-10.3-fat.egg/twisted/python/
>> failure.pyc in raiseException(self)
>>     324         information if available.
>>     325         """
>> --> 326         raise self.type, self.value, self.tb
>>     327
>>     328
>>
>> ConnectionRefusedError: Connection was refused by other side: 61:
>> Connection refused.
>>
>> Any idea what could be causing this?
>
> I have CCed Brian, maybe he knows, as he developed most of that code.
>
> Ondrej
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to