jeanphix / Ghost.py

Webkit based scriptable web browser for python.
http://ghost-py.readthedocs.org/en/latest/
2.76k stars 380 forks source link

Failed to Find qmake #231

Open weems opened 9 years ago

weems commented 9 years ago

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

shakna-israel commented 9 years ago

Do you have pyside installed?

weems commented 9 years ago

That is the error I got when I tried to 'pip install pyside', but perhaps this needs to be reported to pyside.

byaka commented 9 years ago

pyPi package PySide depend from QT but QT can be installed only over apt. try apt-get install python-pyside it could help

ghost commented 9 years ago

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.

byaka commented 9 years ago

In Debian Stable (wheezy) repos this package not exist :smile:

weems commented 9 years ago

This is OSX :[

byaka commented 9 years ago

Are u try this ?

phu commented 8 years ago

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.

ghost commented 8 years ago

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.

phu commented 8 years ago

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.

habatman commented 7 years ago

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.

Jerakin commented 7 years ago

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”

hzandi commented 7 years ago

:( mac problem

EbenezerOyenuga commented 6 years ago

I am sorry. I am using windows and also have the same issues that @weems complained about. Can someone help out