dryscrape
dryscrape copied to clipboard
cygwin error qmake: command not found
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
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 .
- wget https://download.qt.io/archive/qt/5.6/5.6.0/single/qt-everywhere-opensource-src-5.6.0.tar.xz
- tar xvfJ qt-everywhere-opensource-src-5.6.0.tar.xz
- cd qt-everywhere-opensource-src-5.6.0
- ./configure -opensource -nomake examples -nomake tests -no-gtkstyle -qt-xcb
- sudo gmake
- sudo gmake install
- sudo ln -s /usr/local/Qt-5.6.0/bin/qmake /usr/bin/qmake
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.
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.
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
@warreee it does solve my problem with your method.