I have tried to install pyside together with python3 on osx mountain lion. I have been trying both
brew install pyside
But then it only works in python2.
I have also tried using the buildscripts from the pyside github rep. Making the changes needed
./build_and_install
fails however, with
Linking CXX shared library libpyside.cpython-33m.dylib
[ 4%] Built target pyside
[ 4%] Running generator for QtCore...
/bin/sh: /Users/einar/devel/pkg/pyside-sandbox-python3/bin/SHIBOKEN_GENERATOR-NOTFOUND: No such file or directory
make[2]: *** [PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp] Error 127
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2
I don't know what to do now. I found this page pyside forum suggesting that I only have to symlink some stuff to get it working in python3 after doing brew install pyside
but /usr/local/Cellar/pyside/1.1.2/lib
only has files named 2.7 something.
Has anyone managed to get pyside working with python3 on osx or know of some guide on how to do it? My google-fu is failing me.
Maybe in this case not use homebrew, and do a
? Assuming you have brewed python3.
Edit: Does not work. That is probably the reason a homebrew formula exists for it..
This has been fixed in Homebrew (see wiki). Installing Pyside with
will install it for both Python 2 and Python 3. For this to work, you may have to uninstall
shiboken
andpyside
first if they were already installed for Python 2.It is worth mentioning you can use homebrew with some small modifications
python3.3-config --prefix
python3.3-config --libs
Note! This may cause conflicts if pyside is installed for python2 as well. There is active development on this issue for both pyside and pyqt. See https://github.com/mxcl/homebrew/pull/18588