Anybody get Spyder for Python 3.4 to work on OS X?

128 views
Skip to first unread message

statmobile

unread,
Dec 26, 2014, 12:50:37 PM12/26/14
to spyd...@googlegroups.com
Is this working for anyone?  I'm still having trouble where iPython Console keeps hanging saying "Connecting to kernel...".   I've deleted all of my Spyder configuration files, so this should be the default setup I believe.

Carlos Córdoba

unread,
Dec 26, 2014, 7:39:50 PM12/26/14
to spyd...@googlegroups.com
Hi,

I tested our DMG a week ago in another Mac, and also found that neither our IPython nor our Python Consoles are working. It seems the interpreter is crashing immediately, but I don't know why because it works well for me in my build env (a 10.7 Mac).

Unfortunately, I won't have access to that Mac for another two weeks. Could you try to run the next command in a terminal, to see if we can have some light on what's happening?

    dtruss /Applications/Spyder.app/Contents/MacOs/python

I'm not sure if that's the exact path but it won't be hard to find if it isn't :-)

dtruss is the equivalent of strace on Linux, i.e. it shows all syscalls a process does. Here are couple of resources to learn a bit more about it:

1. http://www.brendangregg.com/DTrace/dtruss_example.txt

2. http://opensourcehacker.com/2011/12/02/osx-strace-equivalent-dtruss-seeing-inside-applications-what-they-do-and-why-they-hang/


I haven't used it before so I can give you more help :-).

Cheers,
Carlos

El 26/12/14 a las 12:50, statmobile escribió:
Is this working for anyone?  I'm still having trouble where iPython Console keeps hanging saying "Connecting to kernel...".   I've deleted all of my Spyder configuration files, so this should be the default setup I believe.
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

statmobile

unread,
Dec 29, 2014, 10:45:56 PM12/29/14
to spyd...@googlegroups.com
Sorry, Carlos. I ran dtruss and got nowhere, so I'll have to research
that command in the next couple of days and see if I can get some actual
output. Right now all I get is:

$sudo dtruss /Applications/Spyder.app/Contents/MacOS/python
Password:
dtrace: failed to execute
/Applications/Spyder.app/Contents/MacOS/python: unknown error

Which doesn't seem very helpful for you.

Just a side note, I also opened a thread about problems even trying to
point it to my own python 3.4 virtual environment, so there might be
more here. When I tried to compile it a little while back based upon
your guide I was having issues. I can try to retrace my steps, because
you might be having issues over some of these recent OS X upgrades.
Specifically, I'm not the biggest fan of the most recent one (Yosemite).

Thanks,
Brian
>> <mailto:spyderlib+...@googlegroups.com>.
>> To post to this group, send email to spyd...@googlegroups.com
>> <mailto:spyd...@googlegroups.com>.
>> Visit this group at http://groups.google.com/group/spyderlib.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "spyder" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/spyderlib/XvkDzvLKdOo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> spyderlib+...@googlegroups.com
> <mailto:spyderlib+...@googlegroups.com>.
> To post to this group, send email to spyd...@googlegroups.com
> <mailto:spyd...@googlegroups.com>.

statmobile

unread,
Dec 30, 2014, 11:41:13 PM12/30/14
to spyd...@googlegroups.com
As I mentioned before, I can't seem to get any valuable information from using dtruss.  I did however come up with an idea, I decided to check the OS X Console logs and see what happens when I call the Spyder python at the command line and I got the following error:

12/30/14 11:31:27.684 PM taskgated[71]: no signature for pid=10020 (cannot make code: UNIX[No such process])

And just for the heck of it, I monitored the logs when I opened the Spyder app:

12/30/14 11:28:18.288 PM Spyder[10009]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.1 instead of 10.10.1. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
Call location:
12/30/14 11:28:18.438 PM Spyder[10009]: 0   CarbonCore                          0x00007fff8be2ddc3 ___Gestalt_SystemVersion_block_invoke + 113
12/30/14 11:28:18.438 PM Spyder[10009]: 1   libdispatch.dylib                   0x00007fff8b4e9c13 _dispatch_client_callout + 8
12/30/14 11:28:18.438 PM Spyder[10009]: 2   libdispatch.dylib                   0x00007fff8b4e9b26 dispatch_once_f + 117
12/30/14 11:28:18.438 PM Spyder[10009]: 3   CarbonCore                          0x00007fff8bdd64da _Gestalt_SystemVersion + 987
12/30/14 11:28:18.438 PM Spyder[10009]: 4   CarbonCore                          0x00007fff8bdd60c7 Gestalt + 144
12/30/14 11:28:18.438 PM Spyder[10009]: 5   QtCore                              0x000000010a7c6c16 QtCore + 15382
12/30/14 11:28:18.439 PM Spyder[10009]: 6   ???                                 0x00007fff6abe4ceb 0x0 + 140734984244459
12/30/14 11:28:39.529 PM taskgated[71]: no signature for pid=10015 (cannot make code: UNIX[No such process])
12/30/14 11:28:42.644 PM taskgated[71]: no signature for pid=10017 (cannot make code: UNIX[No such process])
12/30/14 11:28:43.066 PM taskgated[71]: no signature for pid=10018 (cannot make code: UNIX[No such process])

and closing the Spyder app while the Python shell is still hanging:

12/30/14 11:29:56.454 PM Spyder[10009]: Exception in thread Thread-2:
12/30/14 11:29:56.454 PM Spyder[10009]: Traceback (most recent call last):
12/30/14 11:29:56.454 PM Spyder[10009]:   File "threading.pyc", line 920, in _bootstrap_inner
12/30/14 11:29:56.454 PM Spyder[10009]:   File "threading.pyc", line 868, in run
12/30/14 11:29:56.455 PM Spyder[10009]:   File "/Applications/Spyder.app/Contents/Resources/lib/python3.4/spyderlib/spyder.py", line 2120, in start_open_files_server
12/30/14 11:29:56.455 PM Spyder[10009]:   File "socket.pyc", line 184, in accept
12/30/14 11:29:56.455 PM Spyder[10009]: ConnectionAbortedError: [Errno 53] Software caused connection abort

I hope this helps, should I continue to try to compile the Spyder app on a current OS X system?

statmobile

unread,
Jan 2, 2015, 9:56:32 PM1/2/15
to spyd...@googlegroups.com
Okay, I finally could get it to compile from source, but I'm using MacPorts python, and I setup a virtual environment.  With a few tweaks to some incompatible modules, I can create an app, but as soon as I open the Spyder.app it crashes.  Here is what I see in the Console, which I think might be  helpful

1/2/15 9:50:39.798 PM Spyder[38339]: Traceback (most recent call last):
1/2/15 9:50:39.798 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/__boot__.py", line 401, in <module>
1/2/15 9:50:39.798 PM Spyder[38339]:     from IPython.utils.path import get_ipython_dir
1/2/15 9:50:39.798 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/lib/python2.7/IPython/__init__.py", line 49, in <module>
1/2/15 9:50:39.799 PM Spyder[38339]:     from .terminal.embed import embed
1/2/15 9:50:39.799 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/lib/python2.7/IPython/terminal/embed.py", line 35, in <module>
1/2/15 9:50:39.799 PM Spyder[38339]:     from IPython.terminal.ipapp import load_default_config
1/2/15 9:50:39.799 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/lib/python2.7/IPython/terminal/ipapp.py", line 48, in <module>
1/2/15 9:50:39.799 PM Spyder[38339]:     from IPython.core.shellapp import (
1/2/15 9:50:39.799 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/lib/python2.7/IPython/core/shellapp.py", line 40, in <module>
1/2/15 9:50:39.800 PM Spyder[38339]:     from IPython.lib.inputhook import guis
1/2/15 9:50:39.800 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/lib/python2.7/IPython/lib/inputhook.py", line 25, in <module>
1/2/15 9:50:39.800 PM Spyder[38339]:     from distutils.version import LooseVersion as V
1/2/15 9:50:39.800 PM Spyder[38339]:   File "/Users/blopes/tmp/spyder/dist/Spyder.app/Contents/Resources/lib/python2.7/distutils/__init__.py", line 23, in <module>
1/2/15 9:50:39.800 PM Spyder[38339]:     __version__ = real_distutils.__version__
1/2/15 9:50:39.800 PM Spyder[38339]: AttributeError: 'module' object has no attribute '__version__'
1/2/15 9:50:39.864 PM Spyder[38339]: Spyder Error
1/2/15 9:50:39.864 PM Spyder[38339]: 2015-01-02 21:50:39.863 Spyder[38339:616300] Spyder Error
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.229 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754
1/2/15 9:51:17.230 PM WindowServer[117]: WSGetSurfaceInWindow : Invalid surface 547501250 for window 1754

Ignacio Uribe Ferrari

unread,
Jan 3, 2015, 7:43:01 AM1/3/15
to spyd...@googlegroups.com
I have the same issue. The iPython Console keeps connecting with out success.

I had been working fine with Spyder using the tkinter module but suddenly it began to no show the following message.

"No Python console is currently selected to run prueba3.py.
Please select or open a new Python console and try again."


If I choose a dedicated console the message doesn't appear but the script is not run. 


Best. IUF

Ignacio Uribe Ferrari

unread,
Jan 3, 2015, 7:56:46 AM1/3/15
to spyd...@googlegroups.com


On Friday, December 26, 2014 11:50:37 AM UTC-6, statmobile wrote:
Reply all
Reply to author
Forward
0 new messages