On 04/19/2015 06:50 PM, Chris Edwards wrote:
Adrian,

I unchecked the Run —> Configure Working Directory (see attached .pdf file) as 
requested.

I then ran the test file and got the following:

Python 2.7.8 (default, Aug 15 2014, 13:43:01)
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.61)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
runfile('/Users/cbhe/scripts/test_python.py')
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
NameError: name 'runfile' is not defined


I also found an IDL  'Python 2.7.9rc1 Shell’ window on the desktop showing:

Python 2.7.9rc1 (v2.7.9rc1:40eada278702, Nov 25 2014, 17:25:50)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "copyright", "credits" or "license()" for more information.
WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.
Visit http://www.python.org/download/mac/tcltk/ for current information.

I tried to replicate this but was unable to get the IDL window again.

Perhaps the ‘unstable’ warning is a clue?

The clue is that you have two different versions of Python on your machine, 2.7.8 which looks to be the version that comes with the Spyder dmg and 2.7.9rc1 which looks to be the system(OS X) version. The only thing I have left is:

Go to Preferences --> Console --> Advanced Settings and see what the Python executable is set to. If 'Use the following Python executable' is not checked and set to the OS X version of Python, then change it to the OS X Python and check it.


Chris





--
Adrian Klaver
[email protected]

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to