Ed Daniel | 14 May 14:56 2014

Spyder failing to launch on Arch Linux - info/workaround

Just a FYI for anyone who might experience same problem...

After latest libsodium update from v0.4.5-2 to v0.5.0-1 Spyder will fail to start raising an error as follows:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/spyderlib/spyder.py", line 2331, in main
    mainwindow = run_spyder(app, options, args)
  File "/usr/lib/python2.7/site-packages/spyderlib/spyder.py", line 2219, in run_spyder
    main.setup()
  File "/usr/lib/python2.7/site-packages/spyderlib/spyder.py", line 873, in setup
    from spyderlib.plugins.ipythonconsole import IPythonConsole
  File "/usr/lib/python2.7/site-packages/spyderlib/plugins/ipythonconsole.py", line 31, in <module>
    from IPython.lib.kernel import find_connection_file, get_connection_info
  File "/usr/lib/python2.7/site-packages/IPython/lib/kernel.py", line 11, in <module>
    from IPython.kernel.connect import *
  File "/usr/lib/python2.7/site-packages/IPython/kernel/__init__.py", line 4, in <module>
    from . import zmq
  File "/usr/lib/python2.7/site-packages/IPython/kernel/zmq/__init__.py", line 14, in <module>
    check_for_zmq('2.1.11', 'IPython.kernel.zmq')
  File "/usr/lib/python2.7/site-packages/IPython/utils/zmqrelated.py", line 37, in check_for_zmq
    raise ImportError("%s requires pyzmq >= %s"%(required_by, minimum_version))
ImportError: IPython.kernel.zmq requires pyzmq >= 2.1.11

If you bring up an IPython console and simply try:import zmq the console output gives:

In [1]: import zmq
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-1d4d77cc188d> in <module>()
----> 1 import zmq

/usr/lib/python3.4/site-packages/zmq/__init__.py in <module>()
     58 # zmq top-level imports
     59 
---> 60 from zmq.backend import *
     61 from zmq import sugar
     62 from zmq.sugar import *

/usr/lib/python3.4/site-packages/zmq/backend/__init__.py in <module>()
     43         except ImportError:
     44             # raise the *first* error, not the fallback
---> 45             reraise(*exc_info)
     46 
     47 globals().update(_ns)

/usr/lib/python3.4/site-packages/zmq/utils/sixcerpt.py in reraise(tp, value, tb)
     32         if value.__traceback__ is not tb:
     33             raise value.with_traceback(tb)
---> 34         raise value
     35 
     36 else:

/usr/lib/python3.4/site-packages/zmq/backend/__init__.py in <module>()
     36 
     37     try:
---> 38         _ns = select_backend(first)
     39     except Exception:
     40         exc_info = sys.exc_info()

/usr/lib/python3.4/site-packages/zmq/backend/select.py in select_backend(name)
     30     """Select the pyzmq backend"""
     31     try:
---> 32         mod = __import__(name, fromlist=public_api)
     33     except ImportError:
     34         raise

/usr/lib/python3.4/site-packages/zmq/backend/cython/__init__.py in <module>()
     24 #-----------------------------------------------------------------------------
     25 
---> 26 from . import (constants, error, message, context,
     27                       socket, utils, _poll, _version, _device )
     28 

ImportError: libsodium.so.4: cannot open shared object file: No such file or directory


If you keep libsodium at v0.4.5-2 then all is fine again.

Hope that helps.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Madala Rao | 12 May 17:01 2014
Picon

code completion on local variables doesn't work

Hello,

I can't seem to get the code completion for local variables. It works fine for packages and modules, but
not for local variables,
  p, li { white-space: pre-wrap; }



Python 2.7.6 64bits, Qt 4.8.5, PySide 1.2.1 on Linux


OS version:


Linux version 2.6.32-431.3.1.el6.x86_64 (mockbuild-kzxrZZB6EwSi8xFDf+coJKa6lAQLCCtP2LY78lusg7I@public.gmane.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Jan 3 21:39:27 UTC 2014


Python/Spyder distribution from Anaconda:


thanks

Madala

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
David Blake | 9 May 00:51 2014
Picon

QGtkStyle was unable to detect the current GTK+ theme.

Hi guys, I'm normally a Windows user, so be kind :)

I'm trying to install Spyder on Ubuntu.  I've downloaded and installed as per the instructions, but I keep seeing the error message above.

I can run Spyder, but when I try to open an IPython console or use matplotlib, I get the error "QGtkStyle was unable to detect the current GTK+ theme."

So do I need to install GTK+?  If so, which version?  And do I need to point spyder to it in some way?

My desktop seems to be XFCE.

Any help would be much appreciated.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Matt Erhart | 7 May 00:33 2014
Picon

Matlab's keyboard and dbstop if error functions

I would like to recreate matlab's keyboard and dbstop if error function, i.e. stop execution at a line number (or if there is an error), view variables in the variable browser, return execution control to a standard ipython terminal that started the process (not a pdb one), be able to change code in the editor and run it in the ipython terminal (even if the changed code is in some imported module). How can I make this happen within spyder?

thanks!
Matt

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Picon

How to make Spyder understand Canopy in Mac?

Hi Guys.

I have a mac and I've downloaded Canopy, then install Spyder. The thing is that I can not to make work(run) any python script with Spyder. For homesome reason I just can run python scripts with Canopy.
Thanks in advance for any help guys.

JohannM.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Jared Swets | 3 May 16:31 2014
Picon

Spyder 2.2.5(x64) + Python 3.4.0 (x64) + Pyside(1.2.2) Unable to launch Spyder.

Hello,

I am unable to run spyder on Window 7 x64 with Python 3.4.0x64 installed.

Version:
C:\Python34\Lib\site-packages\spyderlib>python
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32

I have pyside 1.2.2 installed, which meets the requirement.

I ran the 64 bit installer for Spyder 2.2.5

Then went to the spyderlib folder, ran the following:


C:\Python34\Lib\site-packages\spyderlib>python spyder.py
 File "spyder.py", line 948
   except AttributeError, error:
                        ^
SyntaxError: invalid syntax


Thought maybe I needed to run start_app.py, no result there either.  

How do I run Spyder?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Jared Swets | 3 May 04:53 2014
Picon

Python 3.4.0 and Spyder 2.2.5 (amd64)

Hello,

I am unable to run spyder on Window 7 x64 with Python 3.4.0x64 installed.

Version:
C:\Python34\Lib\site-packages\spyderlib>python
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AMD64)] on win32

I have pyside 1.2.2 installed, which meets the requirement.

I ran the 64 bit installer for Spyder 2.2.5

Then went to the spyderlib folder, ran the following:


C:\Python34\Lib\site-packages\spyderlib>python spyder.py
 File "spyder.py", line 948
   except AttributeError, error:
                        ^
SyntaxError: invalid syntax


Thought maybe I needed to run start_app.py, no result there either.  

How do I run Spyder?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Sandeep | 2 May 05:28 2014
Picon

v2.2.5 Error with running Spyder from shortcut launcher

Hi 

I am running spyder2.2.5 on Linux Mint 16 KDE installed via spyder_2.2.5+dfsg-1_all.deb. I am facing a strange error.

If I run spyder via typing in the command from the terminal. Spyder runs fine.

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> runfile('/opt/gurobi562/linux64/examples/python/mip1.py', wdir=r'/opt/gurobi562/linux64/examples/python')
Optimize a model with 2 rows, 3 columns and 5 nonzeros
Found heuristic solution: objective 2
Presolve removed 2 rows and 3 columns
Presolve time: 0.00s

Explored 0 nodes (0 simplex iterations) in 0.00 seconds
Thread count was 1 (of 4 available processors)

Optimal solution found (tolerance 1.00e-04)
Best objective 3.000000000000e+00, best bound 3.000000000000e+00, gap 0.0%
x 1
y 0
z 1
Obj: 3
>>> 

However if I run via a shortcut created from the Linux custom shortcuts menu, I get a package loading error

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> runfile('/opt/gurobi562/linux64/examples/python/mip1.py', wdir=r'/opt/gurobi562/linux64/examples/python')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
    execfile(filename, namespace)
  File "/opt/gurobi562/linux64/examples/python/mip1.py", line 13, in <module>
    from gurobipy import *
ImportError: libgurobi56.so: cannot open shared object file: No such file or directory
>>> 

I have ensured that there is only one installation of spyder by uninstalling, checking and doing a clean reinstall, still I have the same problem

Not sure if it is an issue with spyder or with my linux installation Any ideas?

Sandeep

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Yoav Romach | 29 Apr 18:06 2014
Picon

Spyder loading with Canopy icon (Windows)

Hey,

I've installed Enthought Canopy and then Spyder.
It's a small thing, but when launching Spyder, it starts with Canopy Icon 
(PyLab to be exact), is it possible to make it use Spyder's icon?

Thanks!

Yoav Romach | 29 Apr 18:02 2014
Picon

Running spyder_win_post_install.py fails

Hello,

I'm just starting to use Spyder (and python for that matter).
I've Installed Enthought Canopy for the modules and then Spyder. (I prefer Enthought because the project I'm joining is using it).
I've got it to work actually, than decided to run spyder_win_post_install.py in order to create the start menu programs.
So I'm writing "python spyder_win_post_install.py -install" in the terminal, but I get an error "NameError: global name 'get_special_folder_path' is not defined".

I couldn't figure out how to run it :/
From what I understood that function is part of the distutils module and it should be auto imported when running a post-install script, but Maybe I'm confusing stuff...

Thanks!

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Wanderson Knupp | 1 May 17:15 2014
Picon

Invocando Spyder

Olá sou novo em Spyder! tinha instalado o python 3 em meu Windows, agora instalei o spyder-2.2.5 win-amd64.exe 
Porem não sei como invocar a plataforma do spyder. Como faço isso ? desde já agradeço.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Gmane