Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda Spyder Qt library error on launch

When launching Spyder from the Anaconda python installation on Linux Mint 13 I get the following error:

Cannot mix incompatible Qt library (version 0x40801) with this library (version 0x40805)
Aborted

$PATH is

   /home/ron/anaconda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Has anyone found a work around?

Anaconda web-site indicates that Spyder may not launch correctly on Linux machines.

http://docs.continuum.io/anaconda/

*** Resolved I am a little sheepish. Discovered that I installed Anaconda as sudo. Reinstalled as indicated in documentation and everything works fine. Thanks everyone for the help.

like image 505
Ron Avatar asked Oct 21 '22 16:10

Ron


1 Answers

I use anaconda 1.8 on kubuntu alpha. It uses qt 4.8.5. I can see it with

find $ANACONDA/lib -name '*.4.8.5'

My system qt libs is 4.8.6. I can see it with

find /usr/lib -name "*so.4.8.6"

If Your system qt version is 4.8.5, and anaconda is 4.8.1 -- maybe You can just update anaconda? Try to run

conda update conda
conda update anaconda

Edit

It seems that the problem is spyder picking up Your system libraries. I tried to sheild the libs using evnironment variables LD_LIBRARY_PATH and various qt-related. But nothing works. However simple copying system libs to $ANACONDA/lib solves the problem.

Go to $ANACONDA/lib and move all *.4.8* files to another dir. Then go to /usr/lib/x86_64-linux-gnu (are You using 64 bit?) and copy all *.4.8* to $ANACONDA/lib. That's it: run spyder!

enter image description here

The qtlibs are usually stored as files and links: for example if there's a libQtGui.so.4.8.6 file then there's also a symbolic link libQtGui.so.4.8. You have to copy/move links too.

Edit 2:

There's a suggestion to

unset QT_PLUGIN_PATH

I tried to set it to nothing export QT_PLUGIN_PATH=, but didn't try to unset it.

like image 132
Adobe Avatar answered Oct 23 '22 10:10

Adobe