user11869
user11869

Reputation: 1131

ImportError: No module named PySide.QtCore

I have trouble using PySide in Eclipse.

I installed py26-pyside using macports and added /opt/local/var/macports/software/py26-pyside/1.0.4_0/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PySide to PYTHONPATH

But I got the above import error.

What am I missing? Thanks

Upvotes: 0

Views: 9288

Answers (2)

Cecil Wallis
Cecil Wallis

Reputation: 1

Running Linux, I had the same problem and I don't use PYTHONPATH. Simpler to put /usr/local/lib/python2.6/site-packages in a file called /usr/lib/python2.6/site-packages/local.pth. It's pure python so it should work on other systems. The instructions in site.py are misleading.

Upvotes: 0

Florian Mayer
Florian Mayer

Reputation: 3081

Add /opt/local/var/macports/software/py26-pyside/1.0.4_0/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages to PYTHONPATH instead of what you have added.

Upvotes: 1

Related Questions