my spider install is broken

68 views
Skip to first unread message

jean-pat

unread,
Nov 10, 2011, 9:15:23 AM11/10/11
to spyd...@googlegroups.com
Dear all,
After upgrading spyder with:

sudo easy_install -U spyder

I can't start spyder no more. From a terminal, I have:
:~$ spyder
Traceback (most recent call last):
  File "/usr/local/bin/spyder", line 5, in <module>
    pkg_resources.run_script('spyder==2.1.1', 'spyder')
  File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.15-py2.6.egg/pkg_resources.py", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.15-py2.6.egg/pkg_resources.py", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.6/dist-packages/spyder-2.1.1-py2.6.egg/EGG-INFO/scripts/spyder", line 2, in <module>
    from spyderlib import spyder
  File "/usr/local/lib/python2.6/dist-packages/spyder-2.1.1-py2.6.egg/spyderlib/spyder.py", line 35, in <module>
    requirements.check_qt()
  File "/usr/local/lib/python2.6/dist-packages/spyder-2.1.1-py2.6.egg/spyderlib/requirements.py", line 51, in check_qt
    wng2 = check_version("PySide", "PySide", "__version__", "1.0")
  File "/usr/local/lib/python2.6/dist-packages/spyder-2.1.1-py2.6.egg/spyderlib/requirements.py", line 20, in check_version
    actual_str = getattr(module, version_attr)
AttributeError: 'module' object has no attribute '__version__'
It seems to be a pyside/pyQT stuff.How to get back a sane install?

Thank you.
Jean-Patrick

Carlos Córdoba

unread,
Nov 10, 2011, 12:56:01 PM11/10/11
to spyd...@googlegroups.com
Hi Jean,

By any chance do you have some old version of Pyside in your system? If that's the case, please uninstall it and I think the problem will be solved.

Cheers,
Carlos

El 10/11/11 09:15, jean-pat escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/FYPZMpda9KwJ.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.

jean-pat

unread,
Nov 10, 2011, 6:34:58 PM11/10/11
to spyd...@googlegroups.com
Hi Carlos,
Unfortunately, I meet an other error when I try to remove pyside:

sudo easy_install -m pyside
[sudo] password for claire:
Searching for pyside
Reading http://pypi.python.org/simple/pyside/
Reading http://www.pyside.org
Reading http://www.pyside.org/files/
Reading http://www.pyside.org/files/pkg/
Best match: pyside 1.0.7-docs
Downloading http://www.pyside.org/files/pyside-1.0.7-docs.zip
Processing pyside-1.0.7-docs.zip
error: Couldn't find a setup script in /tmp/easy_install-Al5yfR/pyside-1.0.7-docs.zip

Regards
Jean-Patrick

jean-pat

unread,
Nov 10, 2011, 6:37:37 PM11/10/11
to spyd...@googlegroups.com
Same kind of error if I try to update.

Jean-Patrick

jean-pat

unread,
Nov 11, 2011, 9:42:47 AM11/11/11
to spyd...@googlegroups.com
Thank you, I finally achieve to remove pyside.
Spyder is running fine.

Jean-Patrick

Carlos Córdoba

unread,
Nov 11, 2011, 10:06:02 AM11/11/11
to spyd...@googlegroups.com
I'm glad you did Jean! I didn't know how to help you because
easy_install is not one of my strong points.

Cheers,
Carlos

El 11/11/11 09:42, jean-pat escribió:


> Thank you, I finally achieve to remove pyside.
> Spyder is running fine.
>
> Jean-Patrick

> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/spyderlib/-/2lru8T1mJRkJ.

anatoly techtonik

unread,
Nov 12, 2011, 5:53:54 AM11/12/11
to spyd...@googlegroups.com
That's a bug with `easy_install`, but the real cause is that there is no link to PySide download page from PyPy. Try to install PySide manually - http://developer.qt.nokia.com/wiki/PySide_Binaries_Windows

anatoly techtonik

unread,
Nov 12, 2011, 5:56:35 AM11/12/11
to spyd...@googlegroups.com
Oops. Sorry, you are not on Windows. I think it is better to be reported to PySide mailing list.

anatoly techtonik

unread,
Nov 12, 2011, 6:01:54 AM11/12/11
to spyd...@googlegroups.com
But I think installing PySide with `easy_install` in Linux is not recommended. It is better to use binaries from http://developer.qt.nokia.com/wiki/PySide_Binaries_Linux If there are no binaries, I usually compile PySide from source using scripts from https://github.com/PySide/BuildScripts

jeanpatri...@gmail.com

unread,
Nov 12, 2011, 12:59:39 PM11/12/11
to spyd...@googlegroups.com
Thank you for your advices,
I am afraid that I mixed things installed with apt-get (pyside) and things installed with easy_install (spyder).
I 'll try to take care of that.
Jean-Patrick
Le , anatoly techtonik <tech...@gmail.com> a écrit :

> But I think installing PySide with `easy_install` in Linux is not recommended. It is better to use binaries from http://developer.qt.nokia.com/wiki/PySide_Binaries_Linux If there are no binaries, I usually compile PySide from source using scripts from https://github.com/PySide/BuildScripts
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "spyder" group.
>
> To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/LQ99kldNbPYJ.
Reply all
Reply to author
Forward
0 new messages