On 23-Jul-2012 16:26, Carlos Córdoba wrote:
Hi Virgil,
You can try to run this in a terminal:
$ spyder --reset
Then start spyder again and if it crashes, open our config file like this:
$ gedit ~/.spyder2/.spyder.ini
look for an option called
pythonstartup/custom
and changed it to False. This is the only place where we try to import scipy,
so I think it should let you start Spyder at least.
Also, if you have scipy installed through the package manager, please
uninstall to see it that helps too. I said it because maybe Spyder gets
confused by the presence of the two versions.
Cheers,
Carlos
El 23/07/12 02:03, Virgil Stokes escribió:
On 22-Jul-2012 01:06, Virgil Stokes wrote:
On 2012-07-22 00:40, Virgil Stokes wrote:
On 2012-07-21 18:48, Carlos Córdoba wrote:
Hi Virgil,
Have you tried to run Spyder in a terminal? If so, are you seeing any
errors or tracebacks there?
Yes, I tried but it didn't work --- there was a lot of output with some
errors.
It seems you altered somehow your Python installation, probably because
you used pip (which is usually used in combination with virtualenv to not
have this kind of problems).
I completely reinstalled Python 2.7.3 and tried again --- but still am
unable to run Spyder (splash screen never appears) after a reinstall.
Cheers,
Carlos
El 21/07/12 06:35, Virgil Stokes escribió:
I have been using Spyder for sometime on an Ubuntu 12.04 (64-bit)
platform with SciPy 0.10.1. I recently installed the recent release of
SciPy 0.11.0rc1 with what seemed to be no problems. However, when I ran
Spyder it still was using SciPy 0.10.1. I then tried to uninstall SciPy
completely using
>pip uninstall SciPy
which again seemed to be ok. But, now I was unable to execute Spyder! I
tried several times to uninstall and reinstall Spyder but I am stuck with
no possibility to run Spyder. I get no error; but, clicking on this
application in Ubuntu 12.04 seems to be ignored. I tried the
uninstall/install with the Update Manager and also with pip --- neither
restored Spyder!
Any suggestions as to how to get Spyder running again would be appreciated.
[Note, I sent a similar email to the SciPy mailing list, since I was not
sure if the problem was with Spyder and/or the latest release of SciPy]
Here is the output when I tried to execute Spyder directly:
Traceback (most recent call last):
File "/usr/local/bin/spyder", line 2, in <module>
from spyderlib import spyder
File "/usr/local/lib/python2.7/dist-packages/spyderlib/spyder.py", line
91, in <module>
from spyderlib.utils.environ import WinUserEnvDialog
File "/usr/local/lib/python2.7/dist-packages/spyderlib/utils/environ.py",
line 17, in <module>
from spyderlib.widgets.dicteditor import DictEditor
File
"/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/dicteditor.py",
line 31, in <module>
from spyderlib.config import get_icon, get_font
File "/usr/local/lib/python2.7/dist-packages/spyderlib/config.py", line
27, in <module>
from spyderlib.utils import iofuncs, codeanalysis
File "/usr/local/lib/python2.7/dist-packages/spyderlib/utils/iofuncs.py",
line 33, in <module>
import scipy.io as spio
File "/usr/local/lib/python2.7/dist-packages/scipy/io/__init__.py", line
83, in <module>
from matlab import loadmat, savemat, byteordercodes
File
"/usr/local/lib/python2.7/dist-packages/scipy/io/matlab/__init__.py", line
11, in <module>
from mio import loadmat, savemat
File "/usr/local/lib/python2.7/dist-packages/scipy/io/matlab/mio.py",
line 15, in <module>
from mio4 import MatFile4Reader, MatFile4Writer
File "/usr/local/lib/python2.7/dist-packages/scipy/io/matlab/mio4.py",
line 9, in <module>
import scipy.sparse
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/__init__.py",
line 182, in <module>
from csgraph import *
AttributeError: 'module' object has no attribute 'csgraph_to_masked'
Any other ideas on how I can fix Spyder?
A new development in trying to execute Spyder.
I installed scipy-0.10.1 from its source and then tried to run Spyder --- the
following crash report was generated:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The crashed program seems to use third-party or local libraries:
/usr/local/lib/python2.7/dist-packages/scipy/sparse/sparsetools/_coo.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/sparsetools/_csc.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/csgraph/_shortest_path.so
/usr/local/lib/python2.7/dist-packages/numpy/linalg/lapack_lite.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/csgraph/_tools.so
/usr/local/lib/python2.7/dist-packages/numpy/random/mtrand.so
/usr/local/lib/python2.7/dist-packages/numpy/core/scalarmath.so
/usr/local/lib/python2.7/dist-packages/numpy/core/multiarray.so
/usr/local/lib/python2.7/dist-packages/numpy/lib/_compiled_base.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/csgraph/_min_spanning_tree.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/sparsetools/_bsr.so
/usr/local/lib/python2.7/dist-packages/numpy/core/_dotblas.so
/usr/local/lib/python2.7/dist-packages/numpy/core/umath.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/sparsetools/_csgraph.so
/usr/local/lib/python2.7/dist-packages/numpy/fft/fftpack_lite.so
/usr/local/lib/python2.7/dist-packages/numpy/core/_sort.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/sparsetools/_csr.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/csgraph/_traversal.so
/usr/local/lib/python2.7/dist-packages/scipy/sparse/sparsetools/_dia.so
It is highly recommended to check if the problem persists without those first.
Do you want to continue the report process anyway?
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
It is still unclear to me if the source of the problem is Spyder and/or scipy.
Recapitulating --- I upgraded from scipy 0.10.1 to scipy 0.11.0 and after
this, I have been unable to execute Spyder :-(
Any help on fixing this would be appreciated.
Thanks again Carlos,
I did finally get a solution (via the SciPy list from Scott Sinclair) --- I had
a "broken" SciPy installation.
# Remove broken scipy install
virgil@virgil-laptop:~$ sudo rm -rf/usr/local/lib/python2.7/dist-packages/scipy/
virgil@virgil-laptop:~$ sudo rm -rf
/usr/local/lib/python2.7/dist-packages/scipy-*.egg*
# Do a fresh install
# Either
virgil@virgil-laptop:~$ sudo pip install scipy
# or avoid mucking in your system directories
virgil@virgil-laptop:~$ pip install --user scipy
# Install python-nose using your package manager or do
virgil@virgil-laptop:~$ pip install --user nose
# and test your scipy
virgil@virgil-laptop:~$ python -c "import scipy; scipy.test()"
This worked ok and now I have Spyder up and running again :-)
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.