Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

cygwin error qmake: command not found #45

Open
imiten opened this issue Jan 23, 2016 · 5 comments
Open

cygwin error qmake: command not found #45

imiten opened this issue Jan 23, 2016 · 5 comments

Comments

@imiten
Copy link

imiten commented Jan 23, 2016

Hi,

is it possible to install under cygwin ?

$ pip3 install dryscrape
Collecting dryscrape
Downloading dryscrape-1.0.tar.gz
Collecting webkit-server>=1.0 (from dryscrape)
Downloading webkit-server-1.0.tar.gz (41kB)
100% |████████████████████████████████| 45kB 32kB/s
Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python3.4/site-packages (from dryscrape)
Collecting xvfbwrapper (from dryscrape)
Downloading xvfbwrapper-0.2.7.tar.gz
Building wheels for collected packages: dryscrape, webkit-server, xvfbwrapper
Running setup.py bdist_wheel for dryscrape ... done
Stored in directory: /home/mitenmehta/.cache/pip/wheels/c9/4a/4e/669ebb4c8c4a6c88b9446eb5263c20813d7e47609c3a0057c4
Running setup.py bdist_wheel for webkit-server ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-terbdf9w/webkit-server/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpm3038mqxpip-wheel- --python-tag cp34:
running bdist_wheel
running build
sh: qmake: command not found
error: [Errno 2] No such file or directory: 'src/webkit_server'


Failed building wheel for webkit-server
Running setup.py clean for webkit-server
Running setup.py bdist_wheel for xvfbwrapper ... done
Stored in directory: /home/mitenmehta/.cache/pip/wheels/a9/05/4e/30146b2288b3267a2d8675acf87be67fbccba251e44b946b72
Successfully built dryscrape xvfbwrapper
Failed to build webkit-server
Installing collected packages: webkit-server, xvfbwrapper, dryscrape
Running setup.py install for webkit-server ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-terbdf9w/webkit-server/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-wye88dkw-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
sh: qmake: command not found
error: [Errno 2] No such file or directory: 'src/webkit_server'

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-terbdf9w/webkit-server/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-wye88dkw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-terbdf9w/webkit-server

@deter3
Copy link

deter3 commented Mar 18, 2016

I had the same problem . I spent 2 days to get it closed . After I figured out how to find qmake , then i was notified i have no "webkitwidgets" .

you need to
install qt5.6 and link qmake to /usr/bin/qmake , then when you install webkit-server , system can find qmake .

  1. wget https://download.qt.io/archive/qt/5.6/5.6.0/single/qt-everywhere-opensource-src-5.6.0.tar.xz
  2. tar xvfJ qt-everywhere-opensource-src-5.6.0.tar.xz
  3. cd qt-everywhere-opensource-src-5.6.0
  4. ./configure -opensource -nomake examples -nomake tests -no-gtkstyle -qt-xcb
  5. sudo gmake
  6. sudo gmake install
  7. sudo ln -s /usr/local/Qt-5.6.0/bin/qmake /usr/bin/qmake

@dylanmann
Copy link

It says on the github page that you cannot use qt 5.6 or later, so this solution shouldn't work (and theres an easier solution anyway). What I did was used the cygwin installer to download qt 5.5 and qt5-webkit and then linked bin/qmake to /bin/x86_64-w64-mingw32-qmake-qt5.

@kushagraSahu
Copy link

kushagraSahu commented Jul 9, 2016

I have the same error while deploying my app to heroku. What is the right solution to this problem?
@niklasb @dylanmann @imiten Please help, really stuck on it for 2 days straight.

@warreee
Copy link

warreee commented Nov 1, 2016

I had the same error for heroku.
I solved this adding:

-e git+https://github.com/niklasb/webkit-server.git#egg=webkit-server

in the requirements.txt file

@winnerineast
Copy link

@warreee it does solve my problem with your method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants