On 04/15/2015 03:34 AM, Chris wrote:
Adrian,

Sorry about the delayed response, I have been on the road.

So, I opened Spyder 2.3.3 again and went to Run/Configure and clicked on
Run. The attached .pdf of the Run window shows the detail. The result
was the appearance of a Python console. So far so good.

I then ran a test file (test_python.py) with the following response.

------------------------------------------------------------
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',
wdir='/Users/cbhe/scripts')
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
NameError: name 'runfile' is not defined
 >>>
----------------------------------------------------------

So the problem is not that you cannot open a Console it is that a file will not run it.

So:

1) What happens if you do Consoles --> Open a Python console?

2) If it opens what happens if you do import os?

3) What happens if you Run the file, but leave the Working Directory unchecked?

4) Under Preferences --> Console --> Advanced Settings, what is the Python interpreter set to?


I then opened an IPython console which opened with the following (no
prompting from myself)

How did you open the IPython console?


----------------------------------------
An error ocurred while starting the kernel
Traceback (most recent call last):
File
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/start_ipython_kernel.py",
line 161, in
from IPython.kernel.zmq.kernelapp import IPKernelApp
File
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/IPython/__init__.py",
line 48, in
from .core.application import Application
File
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/IPython/core/application.py",
line 24, in
from IPython.core import release, crashhandler
File
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/IPython/core/crashhandler.py",
line 28, in
from IPython.core import ultratb
File
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/IPython/core/ultratb.py",
line 110, in
from IPython.core import debugger
File
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/IPython/core/debugger.py",
line 59, in
from pdb import Pdb as OldPdb
File "/Library/Python/2.7/site‑packages/_pytest/pdb.py", line 6, in
import pytest
ImportError: No module named pytest
-------------------------------------------
Not sure what the above implies, except possibly that I have managed to
mangle the installation (I simply opened the .dmg file and clicked on
the Spyder icon) in some way.

Not sure why pytest is being called? Also it looks like it jumped from the Spyder app libraries to the system libraries. Will get to that problem later.

If this does not help in diagnosing my problem are you able to suggest
how I might go about deleting all the files associated with Spyder so I
can start again with a clean slate?

No, that has been done before to no effect. Lets work with what you have.







--
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