Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jpz opened this issue Dec 28, 2015 · 6 comments
Open

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

jpz opened this issue Dec 28, 2015 · 6 comments

Comments

@jpz
Copy link

jpz commented Dec 28, 2015

I have to report this error is still unresolved.

  • Mac OSX 10.9.4 Mavericks
  • Homebrew Python 2.7
  • Homebrew installed Qt
  • Pip installed PySide

Running the suggested https://raw.githubusercontent.com/PySide/pyside-setup/1.2.2/pyside_postinstall.py also fails to succeed.

@techtonik
Copy link

Which error?

@krid78
Copy link

krid78 commented Jan 13, 2016

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:

  • OS X 10.11.2
  • native python 2.7.10
  • Homebrew Qt 4.8.7
  • pip installed PySide 1.2.4

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
Copy link

@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
Copy link

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 #129

@fredrikaverpil
Copy link

fredrikaverpil commented Apr 21, 2016

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
Copy link

awar commented Nov 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants