Open weems opened 9 years ago
Do you have pyside installed?
That is the error I got when I tried to 'pip install pyside', but perhaps this needs to be reported to pyside.
pyPi package PySide depend from QT but QT can be installed only over apt.
try apt-get install python-pyside
it could help
If you happen to run Debian or Ubuntu, a simple "apt install python3-ghost" or "apt install python-ghost" might solve all installation issues. Debian Testing and Ubuntu Vervet have version 0.1.1, Debian Unstable and Ubuntu Werewolf have 0.1.2.
In Debian Stable (wheezy) repos this package not exist :smile:
This is OSX :[
In case anyone finds this while hoping to install via pip, I used the Ubuntu script here to approximate the system-level dependencies for Debian:
https://github.com/PySide/BuildScripts
The package libqt4-dev
provides a version of qmake
that makes pyside happy, at least as of this posting.
Note: After attempting to build this with QT 5... don't make my mistake. PySide takes quite a while to compile and appears to target QT 4 directly.
Note, that when on Debian, Ubuntu or similar, but an older version, which does not feature ghost
, you can also download the source package and build it:
$ dget http://httpredir.debian.org/debian/pool/main/p/python-ghost/python-ghost_0.2.3-1.dsc
$ (if necessary: dpkg-source -x python-ghost_0.2.3-1.dsc)
$ cd python-ghost-0.2.3
$ dpkg-buildpackage -rfakeroot -uc -us -b
I suggest not to use ghost on wheezy (Debian 7), however. In my experience the Qt stuff is too old to support it in acceptable form. You will not be happy with it.
Thanks for that. Turns out running an actual browser via pyvirtualdisplay
works far better for my needs; I suppose there may be use cases that it doesn't work for, but the setup is vastly less painful and it seems to be a lot more stable.
For future folks that come here and are having the same problem, this is how I got around it. With macports version of python installed, you have to run port install py27-pyside
instead of pip install PySide
.
Mac solution
First you need qt
brew install qt
Try to install PySide with pip
pip install PySide
If it fail make an alias in your .bash_profile
cd ~
open .bash_profile
then add alias qmake=“/usr/local/Cellar/qt5/5.7.0/bin/qmake”
:( mac problem
I am sorry. I am using windows and also have the same issues that @weems complained about. Can someone help out
running install
running build
Python architecture is 64bit
error: Failed to find qmake. Please specify the path to qmake with --qmake parameter.
Cleaning up... Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;file='/private/tmp/pip_build_root/pyside/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-TFdRaN-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pyside