Ghost.py icon indicating copy to clipboard operation
Ghost.py copied to clipboard

Failed to Find qmake

Open weems opened this issue 9 years ago • 14 comments

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

weems avatar Jun 05 '15 18:06 weems

Do you have pyside installed?

shakna-israel avatar Jun 08 '15 08:06 shakna-israel

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

weems avatar Jun 08 '15 14:06 weems

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

byaka avatar Jun 09 '15 17:06 byaka

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.

ghost avatar Jun 09 '15 20:06 ghost

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

byaka avatar Jun 09 '15 22:06 byaka

This is OSX :[

weems avatar Jun 10 '15 16:06 weems

Are u try this ?

byaka avatar Jun 10 '15 16:06 byaka

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.

phu avatar Jan 19 '16 09:01 phu

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.

ghost avatar Jan 20 '16 17:01 ghost

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.

phu avatar Jan 25 '16 14:01 phu

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.

habatman avatar Dec 12 '16 20:12 habatman

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”

Jerakin avatar Jan 05 '17 09:01 Jerakin

:( mac problem

hzandi avatar Feb 16 '17 00:02 hzandi

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

EbenezerOyenuga avatar Jun 01 '18 09:06 EbenezerOyenuga