Ghost.py can't find PySide?

I am trying to get started with a Ghost.py browser without a browser on Mac. I installed Ghost.py and its dependencies using these links / commands:

I started Python and confirmed that I can import PySide . However, when I do from ghost import Ghost , it cannot find PySide :

 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ghost/__init__.py", line 1, in <module> from ghost import Ghost File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ghost/ghost.py", line 28, in <module> raise Exception("Ghost.py requires PySide or PyQt") Exception: Ghost.py requires PySide or PyQt 

By import PySide; print PySide; import PySide; print PySide; It seems that PySide is installed here on my system: /Library/Python/2.7/site-packages/PySide . So add PYTHONPATH as follows:
export PYTHONPATH=$PYTHONPATH:/Library/Python/2.7/site-packages #for PySide .

However, Ghost.py still cannot find PySide .

How can I convince Ghost.py find my PySide installation?


Environment:

  • Mac OS X 10.7.5
  • Python 2.7
  • Qt 5.0.1
  • PySide 1.1.0
+4
source share
1 answer

I ran into the same problem but was able to fix it. Here's how:

PS: My system runs 10.9 (Mavericks), but I think it should work in 10.7 (Mountain Lion).

+2
source

All Articles