On Friday, March 27, 2015 at 6:01:59 PM UTC+11, Chris wrote:
>
> Hi,
>
> I have just installed Spyder 2.3.3 on my IMac running OS X 10.10.2. Spyder 
> was downloaded as the file:///Users/cbhe/Downloads/spyder-2.3.3-py2.7-2.dmg 
> from https://bitbucket.org/spyder-ide/spyderlib/downloads and was copied 
> into the Applications folder.
>
> Prior to the installation I removed the three Spyder (V2.3.2) directories 
> in /Library/Python/2.7/site-packages in an attempt to uninstall Spyder. As 
> far as I can tell there is no Uninstall program for Spyder.
>
> The version of Python running is Python 2.7.9rc1 (v2.7.9rc1:40eada278702, 
> Nov 25 2014, 17:25:50)
>
> I am now unable to open a Python or IPython console in Spyder but get the 
> message when trying to open a console:
>
> Traceback (most recent call last):
> cannot import name multiarray
> cannot import name multiarray  File 
> "/usr/local/lib/python2.7/site-packages/py2app/apptemplate/lib/site.py", 
> line 122, in <module>
>   File 
> "/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/sitecustomize.py",
>  
> line 406, in <module>
>     class SpyderPdb(pdb.Pdb):
> AttributeError: 'module' object has no attribute 'Pdb'
>
> Does anyone have a suggestion as to how I might get Spyder working again? 
> I am now at a stand again as far as actually doing anything useful.
>
> Thanks.
>
>  
Adrian,

Yes same machine and same learner driver. Everything was going well with 
Metis and Networkx until I tried to install the visualisation packages 
Pygraphviz and Graphviz. I was unable to get them to work and so 
(misguidedly) I thought I would try a later version of Spyder.

Previous version of Spyder was 2.3.2. It was installed from the .dmg file 
by dragging the Spyder icon onto the Applications folder. It was awhile ago 
and I can't remember any more details.

The current version of Spyder is 2.3.3 and was installed by pip 'pip 
install spyder'. The  About Spyder menu result is below:

Spyder 2.3.3 
The Scientific PYthon Development EnviRonment 
Copyright © 2009-2012 Pierre Raybaut 
Copyright © 2010-2015 The Spyder Development Team 
Licensed under the terms of the MIT License 
Created by Pierre Raybaut 
Developed and maintained by the Spyder Development Team 
Many thanks to all the Spyder beta-testers and regular users. 
Most of the icons come from the Crystal Project (© 2006-2007 Everaldo 
Coelho). Other icons by Yusuke Kamiyamane (all rights reserved) and by The 
Oxygen icon theme. 
For bug reports and feature requests, please go to our Github website. For 
discussions around the project, please go to our Google Group 
This project is part of a larger effort to promote and facilitate the use 
of Python for scientific and engineering software development. The popular 
Python distributions Anaconda, WinPython and Python(x,y) also contribute to 
this plan. 
Python 2.7.8 64bits, Qt 4.8.6, PyQt4 (API v2) 4.11.1 on Darwin

The error message from the IPython console is

An error ocurred while starting the kernel
Traceback (most recent call last):
cannot import name multiarray
cannot import name multiarray
cannot import name multiarray
File 
"/Applications/Spyder‑Py2.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/start_ipython_kernel.py",
 
line 182, 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
ImportError: cannot import name Pdb

The /Library/Python/2.7/site-packages directory contains

Fl1cker:~ cbhe$ cd /Library/Python/2.7/site-packages;la

/Library/Python/2.7/site-packages

total 120

 0 drwxr-xr-x  10 root  wheel    340 27 Mar 16:24 Babel-1.3-py2.7.egg-info

 0 drwxr-xr-x  10 root  wheel    340 27 Mar 16:24 
Jinja2-2.7.3-py2.7.egg-info

 0 drwxr-xr-x   8 root  wheel    272 27 Mar 16:24 
MarkupSafe-0.23-py2.7.egg-info

 0 drwxr-xr-x   8 root  wheel    272 26 Mar 16:39 
MeshPy-2014.1-py2.7.egg-info

 0 drwxr-xr-x   7 root  wheel    238 26 Mar 16:19 
PyMetis-2014.1-py2.7.egg-info

 0 drwxr-xr-x   7 root  wheel    238 27 Mar 15:07 
PyVTK-0.4.85-py2.7.egg-info

 0 drwxr-xr-x   9 root  wheel    306 27 Mar 16:24 Pygments-2.0.2.dist-info

 0 -rw-r--r--   1 root  wheel    119 10 Sep  2014 README

 0 drwxr-xr-x   9 root  wheel    306 27 Mar 16:24 Sphinx-1.3.1.dist-info

 0 drwxr-xr-x  55 root  wheel   1870 27 Mar 15:29 _pytest

 0 drwxr-xr-x  14 root  wheel    476 27 Mar 16:24 alabaster

 0 drwxr-xr-x   8 root  wheel    272 27 Mar 16:24 
alabaster-0.7.3-py2.7.egg-info

 0 drwxr-xr-x   8 root  wheel    272 26 Mar 16:33 appdirs-1.4.0.dist-info

48 -rw-r--r--   1 root  wheel  22374 26 Mar 16:33 appdirs.py

48 -rw-r--r--   1 root  wheel  20617 26 Mar 16:33 appdirs.pyc

 0 drwxr-xr-x  24 root  wheel    816 27 Mar 16:24 babel

 0 drwxr-xr-x   5 root  wheel    170 10 Mar 22:11 decorator-3.4.0-py2.7.egg

 0 drwxr-xr-x  24 root  wheel    816 27 Mar 16:24 docutils

 0 drwxr-xr-x   7 root  wheel    238 27 Mar 16:24 
docutils-0.12-py2.7.egg-info

 8 -rw-r--r--   1 root  wheel    309 10 Mar 22:47 easy-install.pth

 0 drwxr-xr-x  14 root  wheel    476 27 Mar 12:43 graphviz

 0 drwxr-xr-x   8 root  wheel    272 27 Mar 12:43 graphviz-0.4.3.dist-info

 0 drwxr-xr-x  49 root  wheel   1666 27 Mar 16:24 jinja2

 0 drwxr-xr-x  14 root  wheel    476 27 Mar 16:24 markupsafe

 0 drwxr-xr-x  24 root  wheel    816 26 Mar 16:39 meshpy

 0 drwxr-xr-x   5 root  wheel    170 10 Mar 22:11 networkx-1.9.1-py2.7.egg

 0 drwxr-xr-x  34 root  wheel   1156 16 Mar 22:10 pip

 0 drwxr-xr-x  10 root  wheel    340 16 Mar 22:10 pip-6.0.8.dist-info

 0 drwxr-xr-x  25 root  wheel    850 26 Mar 16:33 py

 0 drwxr-xr-x   8 root  wheel    272 26 Mar 16:33 py-1.4.26-py2.7.egg-info

 0 drwxr-xr-x  36 root  wheel   1224 27 Mar 16:24 pygments

 0 drwxr-xr-x   5 root  wheel    170 26 Mar 16:19 pymetis

 0 drwxr-xr-x  10 root  wheel    340 27 Mar 15:29 
pytest-2.7.0-py2.7.egg-info

 8 -rw-r--r--   1 root  wheel    498 27 Mar 15:29 pytest.py

 8 -rw-r--r--   1 root  wheel    540 27 Mar 15:29 pytest.pyc

 0 drwxr-xr-x  40 root  wheel   1360 26 Mar 16:33 pytools

 0 drwxr-xr-x   8 root  wheel    272 26 Mar 16:33 
pytools-2014.3.5-py2.7.egg-info

 0 drwxr-xr-x  42 root  wheel   1428 27 Mar 15:07 pyvtk

 0 drwxr-xr-x  40 root  wheel   1360 27 Mar 16:24 snowballstemmer

 0 drwxr-xr-x   7 root  wheel    238 27 Mar 16:24 
snowballstemmer-1.2.0-py2.7.egg-info

 0 drwxr-xr-x  52 root  wheel   1768 27 Mar 16:24 sphinx

 0 drwxr-xr-x  13 root  wheel    442 27 Mar 16:24 sphinx_rtd_theme

 0 drwxr-xr-x   8 root  wheel    272 27 Mar 16:24 
sphinx_rtd_theme-0.1.7.dist-info

 0 drwxr-xr-x   7 root  wheel    238 27 Mar 20:51 
spyder-2.3.4-py2.7.egg-info

 0 drwxr-xr-x  48 root  wheel   1632 27 Mar 20:51 spyderlib

 0 drwxr-xr-x  17 root  wheel    578 27 Mar 20:51 spyderplugins

/Library/Python/2.7/site-packages

Fl1cker:site-packages cbhe$ 

I now notice that pip has installed version 2.3.4. I am not sure how this 
happened, but guess that it is the source of the problem!

So what to do to get out from under??


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