Open jpz opened 8 years ago
Which error?
May be @jpz refers to #129 ? At least, I want to do that. I installed PySide yesterday, running in the same issue as described in #129, although I'm running without virtualenv.
I'm using:
I get the already described
>>> import PySide
>>> print(PySide.__version__)
1.2.4
>>> import PySide.QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/PySide/QtCore.so, 2): Library not loaded: @rpath/libpyside-python2.7.1.2.dylib
Referenced from: /Library/Python/2.7/site-packages/PySide/QtCore.so
Reason: image not found
The error remains, even when setting DYLD_LIBRARY_PATH
to site-packages/PySide
-path.
Nevertheless, I could come around this by using PySide (1.2.2) offered by Homebrew.
@krid78 I have the same issue, except it is with El Capitan. Pyside 1.2.4 installed via pip chokes and dies, whereas PySide 1.2.2 via homebrew works.
Running the suggested https://raw.githubusercontent.com/PySide/pyside-setup/1.2.2/pyside_postinstall.py also fails to succeed.
@jpz The postinstall script is no longer needed for PySide 1.2.4 so it won't help you.
This issue is really a duplicate of https://github.com/PySide/PySide/issues/129
So basically, the issue remains; you cannot pip install PySide 1.2.4 on El Capitan.
You can, however...
...build from source:
brew install python qt cmake
git clone --recursive https://github.com/PySide/pyside-setup.git pyside-setup
cd python-setup
python setup.py bdist_wheel --ignore-git
cd dist
sudo pip install PySide-1.2.4-cp27-none-macosx_10_11_x86_64.whl
I really don't get why I need sudo for the pip install, but I do.
...or if you can settle with 1.2.2 instead, you can just brew install PySide
.
i resolve whit this path exportation export DYLD_LIBRARY_PATH=/usr/local/lib/python2.7/site-packages/PySide refer: http://www.danielelliott.co.uk/2016/06/18/fixing-pip-installation-of-pyside-in-osx/#comment-139
I have to report this error is still unresolved.
Running the suggested https://raw.githubusercontent.com/PySide/pyside-setup/1.2.2/pyside_postinstall.py also fails to succeed.