pyside / PySide

ATTENTION: This project is deprecated, please refer to PySide2
https://wiki.qt.io/PySide2
GNU Lesser General Public License v2.1
291 stars 66 forks source link

PySide 1.2.4 still finding dylib properly (non-virtualenv set up) #138

Open jpz opened 8 years ago

jpz commented 8 years ago

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.

techtonik commented 8 years ago

Which error?

krid78 commented 8 years ago

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.

eestrada commented 8 years ago

@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.

fredrikaverpil commented 8 years ago

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

fredrikaverpil commented 8 years ago

So basically, the issue remains; you cannot pip install PySide 1.2.4 on El Capitan.

You can, however...

Option 1

...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.

Option 2

...or if you can settle with 1.2.2 instead, you can just brew install PySide.

awar commented 7 years ago

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