ive tried to run an application written on a Linux machine (and works without any problems) on my Mac running OS X El Capitan. the program uses PyQt4 (4.11.4) and PySide (1.2.4), using Python 3.4.2. I created virtualenv to ensure that everything works on the correct version of python. I also have sip. However, when I really try to import something from PySide, it causes the following error:
Traceback (most recent call last): File "GUI.py", line 17, in <module> from PySide import QtCore, QtGui, QtNetwork ImportError: dlopen(/Users/mksmasr/.pyenv/versions/3.4.2/envs/pubdatapy34/lib/python3.4/site-packages/PySide/QtCore.so, 2): Library not loaded: @rpath/libpyside.cpython-34m.1.2.dylib Referenced from: /Users/mksmasr/.pyenv/versions/3.4.2/envs/pubdatapy34/lib/python3.4/site-packages/PySide/QtCore.so Reason: image not found
I cannot understand the problem even after reading other SO posts and trying to suggest everything.
when I run python on the command line and import PySide, it imports it without problems, there is a problem when trying to access something inside the PySide directory.
ive installed everything from the source, it didn’t work, so I tried pip, the same problem, then I tried homebrew and the same problem. Is compatibility with PySide and python3.x possible?
I would be grateful for any help!
source share