Open phathak opened 7 years ago
Do you have cmake installed?
I think I know why I don't have cmake installed. The doc for installing PySide on Mac OS X says to install qt using
$ brew install qt
And then :
$ pip install -U PySide
But qt gives me this error
Mac-Pro:~ bruno$ brew install qt
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
qt: This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
So by not having qt installed, I guess I don't have cmake nor qmake installed. Is there a way to bypass this warning and install qt anyways?
Thank you Fredrik.
I guess I didn't. I ran brew install cmake and then it asks for qmake. Is there a way to install all prerequisites all at once? It didn't ask me any of this when I installed it back on Mavericks.
Thank you Fredrik
Bruno-Pierre Jobin
On Oct 23, 2016, at 4:17 PM, Fredrik Averpil notifications@github.com<mailto:notifications@github.com> wrote:
Do you have cmake installed?
You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/PySide/PySide/issues/150#issuecomment-255611533, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMtQCXkORNSTZJdVQgRxWtxw1Cxdqc7mks5q28DHgaJpZM4Kd3T8.
I ran brew install cmake and then it asks for qmake.
qmake
is part of Qt.
Is there a way to install all prerequisites all at once?
If you do a brew install qt
, I believe that has cmake
as a dependency and will install it for you if you don't already have it.
However, I'm not sure qt
can be installed via homebrew for macOS Sierra yet. You can always build Qt from source instead of using homebrew. Download the source from the qt.io archives: https://download.qt.io/archive/qt/4.8/
You can keep an eye on this page (which is the brew formula for qt
) and when it looks like it got updated for macOS Sierra, you can perform a brew update
followed by a brew install qt
.
Brew doesn't seem like it's going to support qt4 any time soon. If you take a look at line 33-35 in the qt formula it says :
# Qt4 is dead upstream. We backported a build fix for 10.11 but do not
# intend to keep rescuing it forever, including for macOS 10.12. Homebrew will
# be migrating to Qt5 as widely as possible, which remains supported upstream.
So after lots and lots of trial and error, research and coffee (beer also I must admit....), I was able to install qt4.8 using the following branch which has the missing packages that got removed from Sierra. I know, not the ideal solution... but since I'm on Sierra and want to PySide for nuke, it need to be qt4.8 and not 5. I pasted the failing installation log at the end if you're curious.
https://github.com/cartr/homebrew-qt4
Carter branch was able to build successfully and after which I was able to pip install PySide
.
Now I have a clean and fresh Cellar with Python 2.7.12-2, qt4.8.7_2. PySide is installed in /usr/local/lib/python2.7/site-packages/PySide
as expected.
Now I am close to a working PySide. But this code doesn't work because it's not loading a library.
from PySide.QtGui import *
from PySide.QtCore import *
import sys
class panel(QTabWidget):
def __init__(self):
super(panel, self).__init__()
self.setWindowTitle("panel")
self.setWindowFlags(Qt.WindowStaysOnTopHint)
self.resize(500, 600)
panel = panel()
panel.show()
Output error.
/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/bruno/PycharmProjects/untitled/test.py
Traceback (most recent call last):
File "/Users/bruno/PycharmProjects/untitled/test.py", line 9, in <module>
from PySide.QtGui import *
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PySide/QtGui.so, 2): Library not loaded: @rpath/libpyside-python2.7.1.2.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/PySide/QtGui.so
Reason: image not found
Process finished with exit code 1
Thanks for taking the time to helping me!
Log from brew install qt
on macOS Sierra. Note that for it to even start the downloading process, I had to comment line 36 which does a system version check.
==> Using the sandbox
==> Downloading https://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
Already downloaded: /Users/bruno/Library/Caches/Homebrew/qt-4.8.7.tar.gz
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/480b7142c4e2ae07de6028f672695eb927a34875/qt/el-capitan.patch
Already downloaded: /Users/bruno/Library/Caches/Homebrew/qt--patch-c8a0fa819c8012a7cb70e902abb7133fc05235881ce230235d93719c47650c4e.patch
==> Patching
==> Applying el-capitan.patch
patching file src/gui/painting/qpaintengine_mac.cpp
==> ./configure -prefix /usr/local/Cellar/qt/4.8.7_2 -release -opensource -confirm-license -fast -system-zlib -qt-libtiff -qt-libpng -qt-libjpeg -nomake demos -nomake examples -cocoa -platform unsupported/macx-clang-libc++ -openssl-linked -I /usr/local/opt/openssl/include -L /usr/local/opt/openssl/lib -no-qt3support -nomake docs -arch x86_64
==> make
Last 15 lines from /Users/bruno/Library/Logs/Homebrew/qt/02.make:
clang -c -pipe -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/tif_unix.o ../../../3rdparty/libtiff/libtiff/tif_unix.c
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -I/usr/local/opt/openssl/include -O2 -arch x86_64 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/unsupported/macx-clang-libc++ -I. -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../include -I../../../gui/image -I../../../3rdparty/libtiff/libtiff -I.moc/release-shared -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -o .obj/release-shared/main.o main.cpp
rm -f libqmng.dylib
clang++ -headerpad_max_install_names -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64 -single_module -dynamiclib -o libqmng.dylib .obj/release-shared/qmnghandler.o .obj/release-shared/libmng_callback_xs.o .obj/release-shared/libmng_chunk_io.o .obj/release-shared/libmng_chunk_descr.o .obj/release-shared/libmng_chunk_prc.o .obj/release-shared/libmng_chunk_xs.o .obj/release-shared/libmng_cms.o .obj/release-shared/libmng_display.o .obj/release-shared/libmng_dither.o .obj/release-shared/libmng_error.o .obj/release-shared/libmng_filter.o .obj/release-shared/libmng_hlapi.o .obj/release-shared/libmng_jpeg.o .obj/release-shared/libmng_object_prc.o .obj/release-shared/libmng_pixels.o .obj/release-shared/libmng_prop_xs.o .obj/release-shared/libmng_read.o .obj/release-shared/libmng_trace.o .obj/release-shared/libmng_write.o .obj/release-shared/libmng_zlib.o .obj/release-shared/main.o -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtGui -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtCore -lz
mv -f libqmng.dylib ../../../../plugins/imageformats/
rm -f libqmldbg_inspector.dylib
clang++ -headerpad_max_install_names -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64 -single_module -dynamiclib -o libqmldbg_inspector.dylib .obj/release-shared/abstractviewinspector.o .obj/release-shared/qdeclarativeinspectorplugin.o .obj/release-shared/qdeclarativeviewinspector.o .obj/release-shared/abstractliveedittool.o .obj/release-shared/liveselectiontool.o .obj/release-shared/livelayeritem.o .obj/release-shared/livesingleselectionmanipulator.o .obj/release-shared/liverubberbandselectionmanipulator.o .obj/release-shared/liveselectionrectangle.o .obj/release-shared/liveselectionindicator.o .obj/release-shared/boundingrecthighlighter.o .obj/release-shared/subcomponentmasklayeritem.o .obj/release-shared/zoomtool.o .obj/release-shared/colorpickertool.o .obj/release-shared/abstracttool.o .obj/release-shared/moc_abstractviewinspector.o .obj/release-shared/moc_qdeclarativeinspectorplugin.o .obj/release-shared/moc_qdeclarativeinspectorprotocol.o .obj/release-shared/moc_qdeclarativeviewinspector.o .obj/release-shared/moc_qdeclarativeviewinspector_p.o .obj/release-shared/moc_abstractliveedittool.o .obj/release-shared/moc_liveselectiontool.o .obj/release-shared/moc_boundingrecthighlighter.o .obj/release-shared/moc_zoomtool.o .obj/release-shared/moc_colorpickertool.o .obj/release-shared/moc_abstracttool.o -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtDeclarative -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtScript -framework QtCore -framework QtSvg -framework QtGui -framework QtSql -framework QtXmlPatterns -framework QtNetwork
mv -f libqmldbg_inspector.dylib ../../../../plugins/qmltooling/
rm -f libqtiff.dylib
clang++ -headerpad_max_install_names -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64 -single_module -dynamiclib -o libqtiff.dylib .obj/release-shared/qtiffhandler.o .obj/release-shared/tif_aux.o .obj/release-shared/tif_close.o .obj/release-shared/tif_codec.o .obj/release-shared/tif_color.o .obj/release-shared/tif_compress.o .obj/release-shared/tif_dir.o .obj/release-shared/tif_dirinfo.o .obj/release-shared/tif_dirread.o .obj/release-shared/tif_dirwrite.o .obj/release-shared/tif_dumpmode.o .obj/release-shared/tif_error.o .obj/release-shared/tif_extension.o .obj/release-shared/tif_fax3.o .obj/release-shared/tif_fax3sm.o .obj/release-shared/tif_flush.o .obj/release-shared/tif_getimage.o .obj/release-shared/tif_luv.o .obj/release-shared/tif_lzw.o .obj/release-shared/tif_next.o .obj/release-shared/tif_open.o .obj/release-shared/tif_packbits.o .obj/release-shared/tif_pixarlog.o .obj/release-shared/tif_predict.o .obj/release-shared/tif_print.o .obj/release-shared/tif_read.o .obj/release-shared/tif_strip.o .obj/release-shared/tif_swab.o .obj/release-shared/tif_thunder.o .obj/release-shared/tif_tile.o .obj/release-shared/tif_version.o .obj/release-shared/tif_warning.o .obj/release-shared/tif_write.o .obj/release-shared/tif_zip.o .obj/release-shared/tif_unix.o .obj/release-shared/main.o -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtGui -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtCore -lz
mv -f libqtiff.dylib ../../../../plugins/imageformats/
rm -f libqsqlite.dylib
clang++ -headerpad_max_install_names -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64 -single_module -dynamiclib -o libqsqlite.dylib .obj/release-shared/smain.o .obj/release-shared/qsql_sqlite.o .obj/release-shared/sqlite3.o .obj/release-shared/moc_qsql_sqlite.o -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtSql -L/usr/local/opt/openssl/lib -L/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -F/private/tmp/qt-20161029-6231-1mjtb4f/qt-everywhere-opensource-src-4.8.7/lib -framework QtCore
mv -f libqsqlite.dylib ../../../../plugins/sqldrivers/
make: *** [sub-plugins-make_default-ordered] Error 2
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/Homebrew/homebrew-core/issues
These open issues may also help:
Transition formulae to Qt 5 https://github.com/Homebrew/homebrew-core/issues/1705
I can't install under 10.13.1 macOS High Sierra either,but I got a different error log.
use brew install qt
I can install qt5.10.0 successfully.
use pip install -U PySide
to install pyside
Error configuring shiboken
I don't know whether I got the same question or not. Thanks for taking time to take a look at my question.
i'm getting exactly @Chunxiaolalala error, did you able to fix it?
I did what phathak did above and used the brew instructions from https://github.com/cartr/homebrew-qt4 to install the older version 4 of Qt via homebrew and it took care of the Error configuring shiboken
as the newer version 5 of Qt is incompatible.
Hi,
I'm unable to install PySide under mac OS Sierra. Can you tell me what the work around for this error?
Using Python 2.7.12_2 mac OS Sierra 10.12
Thank you