Trouble installing Spyder 2.3.4 under Ubuntu

503 views
Skip to first unread message

Douglas De Rizzo Meneghetti

unread,
Mar 23, 2015, 6:54:57 PM3/23/15
to spyd...@googlegroups.com
Hi guys, I'm having some issues installing Spyder through pip3. I'm running Ubuntu 14.04, and apt-get has an outdated version of Spyder (2.3.0) which works appropriately and is installed like this:

sudo apt-get install spyder3

I uninstalled this version and successfully installed Spyder 2.3.4 via pip3, along with most of the other recommended packages. However, unlike the one installed via apt-get, this version of Spyder fails to find PyQt4. I tried running it after installing the PyQt4 package via apt-get (python-qt4) and then, by using the binary in the official website, but both approaches failed.

After failing with PyQt4, I installed PySide 1.2.2 from pip3, but running Spyder afterwards gives me the following error:

libpyside.cpython-34m.so.1.2: cannot open shared object file: No such file or directory.

Then, with Spyder 2.3.0 installed, I used

sudo pip3 install --upgrade spyder

to see if I could upgrade the distribution I had installed via apt-get (bad idea, I know, but bear with me). Even though pip3 said it had uninstalled Spyder 2.3.0 and installed 2.3.4, when I open Spyder and go to the "About" section, I'm still using version 2.3.0.

Can someone lend me a hand?

Adrian Klaver

unread,
Mar 23, 2015, 7:14:28 PM3/23/15
to spyd...@googlegroups.com
On 03/23/2015 02:44 PM, Douglas De Rizzo Meneghetti wrote:
> Hi guys, I'm having some issues installing Spyder through pip3. I'm
> running Ubuntu 14.04, and apt-get has an outdated version
> <https://launchpad.net/ubuntu/+source/spyder> of Spyder (2.3.0) which
> works appropriately and is installed like this:
>
> |
> sudo apt-getinstall spyder3
> |
>
> I uninstalled this version and successfully installed Spyder 2.3.4 via
> pip3, along with most of the other recommended packages. However, unlike
> the one installed via apt-get, this version of Spyder fails to find
> PyQt4. I tried running it after installing the PyQt4 package via apt-get
> (python-qt4) and then, by using the binary in the official website
> <http://www.riverbankcomputing.com/software/pyqt/download>, but both
> approaches failed.

>
> After failing with PyQt4, I installed PySide 1.2.2 from pip3, but
> running Spyder afterwards gives me the following error:
>
> /libpyside.cpython-34m.so.1.2: cannot open shared object file: No such
> file or directory/.
>
> Then, with Spyder 2.3.0 installed, I used
>
> |
> sudo pip3 install --upgrade spyder
> |
>
> to see if I could upgrade the distribution I had installed via apt-get
> (bad idea, I know, but bear with me). Even though pip3 said it had
> uninstalled Spyder 2.3.0 and installed 2.3.4, when I open Spyder and go
> to the "About" section, I'm still using version 2.3.0.
>
> Can someone lend me a hand?

Questions:

1) What versions of Python do you have installed?

2) What does:

dpkg -l | grep -i pyqt

show?

3) What does:

pip freeze | grep -i Spyder

show?

Comments:

1) Stick with PyQt. PySide is just an exercise in pain.

2) In Spyder go to Help-->Report Issue and click on it. It will take you
to the issues Web page, but in the issue will be a report like this:

## Version and main components

* Spyder Version: 2.3.3
* Python Version: 2.7.6
* Qt Version : 4.8.5, PyQt4 (API v2) 4.10.3 on Linux

## Optional dependencies

IPython >=1.0 : 2.3.0 (OK)
jedi >=0.8.1 : 0.8.1-final0 (OK)
matplotlib >=1.0: 1.3.1 (OK)
pandas >=0.13.1 : 0.13.1-656-gf30278e (OK)
pep8 >=0.6 : 1.5.7 (OK)
psutil >=0.3 : 2.2.1 (OK)
pyflakes >=0.5.0: 0.7.3 (OK)
pygments >=1.6 : 1.6 (OK)
pylint >=0.25 : 1.4.3 (OK)
rope >=0.9.2 : 0.10.2 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
sympy >=0.7.0 : None (NOK)
zmq >=2.1.11 : 14.5.0 (OK)

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


--
Adrian Klaver
adrian...@aklaver.com

Douglas De Rizzo Meneghetti

unread,
Mar 23, 2015, 8:37:15 PM3/23/15
to spyd...@googlegroups.com
1) Python versions 2.7 and 3.4, but I want to use Spyder 2.3.4 with Python 3.4.

2) dpkg -l | grep -i pyqt
ii  python-qt4-dbus                                             4.10.4+dfsg-1ubuntu1                                   amd64        D-Bus Support for PyQt4
ii  python-qt4-dev                                              4.10.4+dfsg-1ubuntu1                                   all          Development files for PyQt4
ii  python3-pyqt4                                               4.10.4+dfsg-1ubuntu1                                   amd64        Python3 bindings for Qt4

3) pip freeze | grep -i Spyder
spyder==2.3.4

Now, for the report:

Spyder Version:  2.3.0
Python Version:  3.4.0
Qt Version    :  4.8.6, PyQt4 (API v2) 4.10.4 on Linux
pyflakes >=0.6.0:  0.8.1 (OK)
pep8 >=0.6      :  1.6.2 (OK)
IPython >=0.13  :  3.0.0 (OK)
pygments >=1.6  :  2.0.2 (OK)
sphinx >=0.6.6  :  1.3.1 (OK)
psutil >=0.3    :  1.2.1 (OK)
rope >=0.9.2    :  None (NOK)
matplotlib >=1.0:  1.4.3 (OK)
sympy >=0.7.0   :  None (NOK)
pylint >=0.25   :  1.4.3 (OK)

Adrian Klaver

unread,
Mar 23, 2015, 9:52:34 PM3/23/15
to spyd...@googlegroups.com
Well to get back on track, I would uninstall all versions of Spyder. I
would do

sudo apt-get purge spyder

sudo apt-get purge spyder3

sudo pip uninstall spyder

sudo pip3 uninstall spyder

I would check with pip freeze after doing the uninstall for Spyder and
repeat the uninstall. pip does not always show all versions of an
installed program, so it pays to check.

Then I would pip3 install spyder and run it. Report back an error messages.



--
Adrian Klaver
adrian...@aklaver.com

Douglas De Rizzo Meneghetti

unread,
Mar 24, 2015, 11:57:42 AM3/24/15
to spyd...@googlegroups.com
I'm testing on another computer now. I uninstalled every possible version of Spyder I had and ran the following code:

sudo apt-get purge spyder3
sudo apt
-get autoremove
sudo pip3 install spyder pytz python
-dateutil
sudo apt
-get install python3-pyqt4
spyder3

Spyder 3 version 2.3.4 successfully launched. I then proceeded to install the optional dependencies (glad to know rope is being replaced by jedi).
I believe my previous problem was related to the package name I used when installing PyQt (I installed python-pyqt4 instead of python3-pyqt4).

Anyway, thanks for the help.

Adrian Klaver

unread,
Mar 24, 2015, 12:07:49 PM3/24/15
to spyd...@googlegroups.com
On 03/23/2015 08:38 PM, Douglas De Rizzo Meneghetti wrote:
> I'm testing on another computer now. I uninstalled every possible
> version of Spyder I had and ran the following code:
>
> |
> sudo apt-getpurge spyder3
> sudo apt-getautoremove
> sudo pip3 install spyder pytz python-dateutil
> sudo apt-getinstall python3-pyqt4
> spyder3
> |
>
> Spyder 3 version 2.3.4 successfully launched. I then proceeded to
> install the optional dependencies (glad to know rope is being replaced
> by jedi).
> I believe my previous problem was related to the package name I used
> when installing PyQt (I installed python-pyqt4 instead of python3-pyqt4).

Well according to the below, you did have it installed. At any rate good
that you got it working.

>
> Anyway, thanks for the help.
>
> Em segunda-feira, 23 de março de 2015 22:52:34 UTC-3, Adrian Klaver
> escreveu:
>
> On 03/23/2015 05:25 PM, Douglas De Rizzo Meneghetti wrote:
> > 1) Python versions 2.7 and 3.4, but I want to use Spyder 2.3.4 with
> > Python 3.4.
> >
> > 2) dpkg -l | grep -i pyqt
> > ii python-qt4-dbus
> > 4.10.4+dfsg-1ubuntu1 amd64
> > D-Bus Support for PyQt4
> > ii python-qt4-dev
> > 4.10.4+dfsg-1ubuntu1 all
> > Development files for PyQt4
> > ii python3-pyqt4
> > 4.10.4+dfsg-1ubuntu1 amd64
> > Python3 bindings for Qt4
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> adrian...@aklaver.com <javascript:>
Reply all
Reply to author
Forward
0 new messages