Greenwolf / social_mapper

A Social Media Enumeration & Correlation Tool by Jacob Wilkin(Greenwolf)
GNU General Public License v3.0
3.77k stars 785 forks source link

CMake must be installed to build the following extensions: dlib #25

Closed clem9669 closed 3 years ago

clem9669 commented 6 years ago

Hi friends,

I am trying to install it but i got this error. However, I already got the newest cmake version installed. That's why I do not understand the trigger...

RuntimeError:
    *******************************************************************
     CMake must be installed to build the following extensions: dlib
    *******************************************************************

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-P0mUba/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-CDESaD-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-P0mUba/dlib/

Do you have a hint ?

Thanks 😄

PS:

$whereis cmake 
cmake: /usr/lib/x86_64-linux-gnu/cmake /usr/lib/cmake /usr/share/cmake /opt/cmake/bin/cmake
Green-Wolf commented 6 years ago

Can you post some more info please if this is still an issue? OS + version?

fuuddanni commented 6 years ago

Hello, I am on Windows with a fresh Installation of CMake and also have Issues with dlib library. I´m working in a virtualenv fresh Python Environment (2.7). Could not rid of my Error. Here is my Output:

`Requirement already satisfied: beautifulsoup4 in c:\users\besitzer\envs\social_mapper\lib\site-packages (from -r requirements.txt (line 1)) (4.6.1) Requirement already satisfied: selenium in c:\users\besitzer\envs\social_mapper\lib\site-packages (from -r requirements.txt (line 2)) (3.14.0) Requirement already satisfied: pyvirtualdisplay in c:\users\besitzer\envs\social_mapper\lib\site-packages (from -r requirements.txt (line 3)) (0.2.1) Requirement already satisfied: tabulate in c:\users\besitzer\envs\social_mapper\lib\site-packages (from -r requirements.txt (line 4)) (0.8.2) Requirement already satisfied: requests in c:\users\besitzer\envs\social_mapper\lib\site-packages (from -r requirements.txt (line 5)) (2.19.1) Collecting face_recognition (from -r requirements.txt (line 6)) Downloading https://files.pythonhosted.org/packages/28/10/f153bbbc218fc169768aa1c02f2e9178e9241e4af8da56289bdca2c0c217/face_recognition-1.2.2-py2.py3-none-any.whl Collecting django (from -r requirements.txt (line 7)) Downloading https://files.pythonhosted.org/packages/f8/1c/31112c778b7a56ce18e3fff5e8915719fbe1cd3476c1eef557dddacfac8b/Django-1.11.15-py2.py3-none-any.whl (6.9MB) Collecting numpy (from -r requirements.txt (line 8)) Downloading https://files.pythonhosted.org/packages/d0/23/de3c3f8fdee3245dd61bedc8c8de0ea5ead8adc245321be38993179ef437/numpy-1.15.0-cp27-none-win32.whl (9.9MB) Collecting scipy (from -r requirements.txt (line 9)) Downloading https://files.pythonhosted.org/packages/1f/fa/a65088a42ed6699027c01fc0fa9fb35eb435fb6c66307c0ce541db333f35/scipy-1.1.0-cp27-none-win32.whl (26.7MB) Collecting matplotlib (from -r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/6e/cf/0153fe3767addefdd8bc81e7f41143477a8528ddec64544ef35d06f9a38a/matplotlib-2.2.3-cp27-cp27m-win32.whl (8.3MB) Collecting scikit-image (from -r requirements.txt (line 11)) Downloading https://files.pythonhosted.org/packages/cd/19/981c31e36814e5ddcbc0b414367f7e4f04ba850eaabe5249589a26eb4900/scikit_image-0.14.0-cp27-none-win32.whl (24.0MB) Collecting scikit-learn (from -r requirements.txt (line 12)) Downloading https://files.pythonhosted.org/packages/15/79/f88871051db5d30e2ae88129802ffa4c3186e7a6ad090b4d2c0c2381cbfd/scikit_learn-0.19.2-cp27-cp27m-win32.whl (4.1MB) Collecting ipython (from -r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/b0/88/d996ab8be22cea1eaa18baee3678a11265e18cf09974728d683c51102148/ipython-5.8.0-py2-none-any.whl (760kB) Collecting dlib (from -r requirements.txt (line 14)) Downloading https://files.pythonhosted.org/packages/df/aa/6a9bb2a763107bb2606d6ee1aa65fcd3b51375a9ef6436e9c9280b0dd63c/dlib-19.15.0.tar.gz (3.3MB) Collecting facebook-sdk (from -r requirements.txt (line 15)) Downloading https://files.pythonhosted.org/packages/34/ac/830c1f2821847bf191687ac57d3c8416623c7c496332cb281c949c05a308/facebook_sdk-3.0.0-py2-none-any.whl Requirement already satisfied: urllib3 in c:\users\besitzer\envs\social_mapper\lib\site-packages (from selenium->-r requirements.txt (line 2)) (1.23) Requirement already satisfied: EasyProcess in c:\users\besitzer\envs\social_mapper\lib\site-packages (from pyvirtualdisplay->-r requirements.txt (line 3)) (0.2.3) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\besitzer\envs\social_mapper\lib\site-packages (from requests->-r requirements.txt (line 5)) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\users\besitzer\envs\social_mapper\lib\site-packages (from requests->-r requirements.txt (line 5)) (2018.4.16) Requirement already satisfied: idna<2.8,>=2.5 in c:\users\besitzer\envs\social_mapper\lib\site-packages (from requests->-r requirements.txt (line 5)) (2.7) Requirement already satisfied: Pillow in c:\users\besitzer\envs\social_mapper\lib\site-packages (from face_recognition->-r requirements.txt (line 6)) (5.2.0) Collecting face-recognition-models>=0.3.0 (from face_recognition->-r requirements.txt (line 6)) Downloading https://files.pythonhosted.org/packages/cf/3b/4fd8c534f6c0d1b80ce0973d01331525538045084c73c153ee6df20224cf/face_recognition_models-0.3.0.tar.gz (100.1MB) Collecting Click>=6.0 (from face_recognition->-r requirements.txt (line 6)) Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB) Collecting pytz (from django->-r requirements.txt (line 7)) Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB) Collecting kiwisolver>=1.0.1 (from matplotlib->-r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/6d/c5/ca9bbf1249119900e53996ed1530f073a7ada3946495231eb92a6f1f737c/kiwisolver-1.0.1-cp27-none-win32.whl (44kB) Collecting cycler>=0.10 (from matplotlib->-r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl Collecting six>=1.10 (from matplotlib->-r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Collecting backports.functools-lru-cache (from matplotlib->-r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib->-r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB) Collecting python-dateutil>=2.1 (from matplotlib->-r requirements.txt (line 10)) Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB) Collecting PyWavelets>=0.4.0 (from scikit-image->-r requirements.txt (line 11)) Downloading https://files.pythonhosted.org/packages/1b/3d/c3f2eac79e22641a7452ec5c9120a53f2a2997a4a011247194e6182c30ca/PyWavelets-0.5.2-cp27-none-win32.whl (4.1MB) Collecting networkx>=1.8 (from scikit-image->-r requirements.txt (line 11)) Downloading https://files.pythonhosted.org/packages/11/42/f951cc6838a4dff6ce57211c4d7f8444809ccbe2134179950301e5c4c83c/networkx-2.1.zip (1.6MB) Collecting cloudpickle>=0.2.1 (from scikit-image->-r requirements.txt (line 11)) Downloading https://files.pythonhosted.org/packages/e7/bf/60ae7ec1e8c6742d2abbb6819c39a48ee796793bcdb7e1d5e41a3e379ddd/cloudpickle-0.5.3-py2.py3-none-any.whl Collecting dask[array]>=0.9.0 (from scikit-image->-r requirements.txt (line 11)) Downloading https://files.pythonhosted.org/packages/91/52/427541141707ac533a6dcafa3bff7ff8b57ded3c9ea84d6ec014d15fbbff/dask-0.18.2-py2.py3-none-any.whl (645kB) Collecting traitlets>=4.2 (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl (74kB) Collecting simplegeneric>0.8 (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip Collecting backports.shutil-get-terminal-size; python_version == "2.7" (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/7d/cd/1750d6c35fe86d35f8562091737907f234b78fdffab42b29c72b1dd861f4/backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl Collecting pickleshare (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/9f/17/daa142fc9be6b76f26f24eeeb9a138940671490b91cb5587393f297c8317/pickleshare-0.7.4-py2.py3-none-any.whl Collecting pygments (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl (841kB) Collecting win-unicode-console>=0.5; sys_platform == "win32" and python_version < "3.6" (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/89/8d/7aad74930380c8972ab282304a2ff45f3d4927108bb6693cabcc9fc6a099/win_unicode_console-0.5.zip Collecting pathlib2; python_version == "2.7" or python_version == "3.3" (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/66/a7/9f8d84f31728d78beade9b1271ccbfb290c41c1e4dc13dbd4997ad594dcd/pathlib2-2.3.2-py2.py3-none-any.whl Requirement already satisfied: setuptools>=18.5 in c:\users\besitzer\envs\social_mapper\lib\site-packages (from ipython->-r requirements.txt (line 13)) (40.0.0) Collecting colorama; sys_platform == "win32" (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/db/c8/7dcf9dbcb22429512708fe3a547f8b6101c0d02137acbd892505aee57adf/colorama-0.3.9-py2.py3-none-any.whl Collecting decorator (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl Collecting prompt-toolkit<2.0.0,>=1.0.4 (from ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/d1/b0/1a6c262da35c779dd79550137aa7c298a424987240a28792ec5ccf48f848/prompt_toolkit-1.0.15-py2-none-any.whl (247kB) Collecting toolz>=0.7.3; extra == "array" (from dask[array]>=0.9.0->scikit-image->-r requirements.txt (line 11)) Downloading https://files.pythonhosted.org/packages/14/d0/a73c15bbeda3d2e7b381a36afb0d9cd770a9f4adc5d1532691013ba881db/toolz-0.9.0.tar.gz (45kB) Collecting ipython-genutils (from traitlets>=4.2->ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl Collecting enum34; python_version == "2.7" (from traitlets>=4.2->ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl Collecting scandir; python_version < "3.5" (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/9e/a5/56b4dec02b16bb720cac9872fccd63b61a815b70633ef15bfe3ea5ce4488/scandir-1.9.0-cp27-cp27m-win32.whl Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython->-r requirements.txt (line 13)) Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl Installing collected packages: dlib, face-recognition-models, Click, numpy, face-recognition, pytz, django, scipy, kiwisolver, six, cycler, backports.functools-lru-cache, pyparsing, python-dateutil, matplotlib, PyWavelets, decorator, networkx, cloudpickle, toolz, dask, scikit-image, scikit-learn, ipython-genutils, enum34, traitlets, simplegeneric, backports.shutil-get-terminal-size, scandir, pathlib2, pickleshare, pygments, win-unicode-console, colorama, wcwidth, prompt-toolkit, ipython, facebook-sdk Running setup.py install for dlib: started Running setup.py install for dlib: finished with status 'error' Complete output from command C:\Users\Besitzer\Envs\Social_Mapper\Scripts\python.exe -u -c "import setuptools, tokenize;file='c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\besitzer\appdata\local\temp\pip-record-ijqey1\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\Besitzer\Envs\Social_Mapper\include\site\python2.7\dlib: running install running build running build_py package init file 'dlib__init__.py' not found (or not a regular file) running build_ext Building extension for Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] Invoking CMake setup: 'cmake c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\build\lib.win32-2.7 -DPYTHON_EXECUTABLE=C:\Users\Besitzer\Envs\Social_Mapper\Scripts\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\build\lib.win32-2.7' -- Building for: Visual Studio 10 2010 -- The C compiler identification is MSVC 16.0.30319.1 -- The CXX compiler identification is MSVC 16.0.30319.1 -- Check for working C compiler: E:/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: E:/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- broken CMake Error at C:/Users/Besitzer/Envs/Social_Mapper/Lib/site-packages/cmake/data/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler

    "E:/Microsoft Visual Studio 10.0/VC/bin/cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/Besitzer/AppData/Local/Temp/pip-install-ezovfg/dlib/build/temp.win32-2.7/Release/CMakeFiles/CMakeTmp

    Run Build Command:"C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe" "cmTC_8721b.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=10.0"
    Microsoft (R)-Buildmodul, Version 4.7.2558.0
    [Microsoft .NET Framework, Version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

    Der Buildvorgang wurde am So.12.08.2018 09:20:39 gestartet.
    Projekt "C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\cmTC_8721b.vcxproj" auf Knoten "1" (Standardziele).
    PrepareForBuild:
      Das Verzeichnis "cmTC_8721b.dir\Debug\" wird erstellt.
      Das Verzeichnis "C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\Debug\" wird erstellt.
    InitializeBuildStatus:
      "cmTC_8721b.dir\Debug\cmTC_8721b.unsuccessfulbuild" wird erstellt, da "AlwaysCreate" angegeben wurde.
    ClCompile:
      E:\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_8721b.dir\Debug\\" /Fd"cmTC_8721b.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c
      Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 16.00.30319.01 für 80x86
      Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

      cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTC_8721b.dir\Debug\\" /Fd"cmTC_8721b.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c

      testCCompiler.c
    ManifestResourceCompile:
      C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTC_8721b.dir\Debug\cmTC_8721b.exe.embed.manifest.res" cmTC_8721b.dir\Debug\cmTC_8721b_manifest.rc
    Link:
      E:\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\Debug\cmTC_8721b.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTC_8721b.dir\Debug\cmTC_8721b.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/Users/Besitzer/AppData/Local/Temp/pip-install-ezovfg/dlib/build/temp.win32-2.7/Release/CMakeFiles/CMakeTmp/Debug/cmTC_8721b.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/Besitzer/AppData/Local/Temp/pip-install-ezovfg/dlib/build/temp.win32-2.7/Release/CMakeFiles/CMakeTmp/Debug/cmTC_8721b.lib" /MACHINE:X86 cmTC_8721b.dir\Debug\cmTC_8721b.exe.embed.manifest.res
      cmTC_8721b.dir\Debug\testCCompiler.obj  /machine:X86
    LINK : fatal error LNK1123: Fehler bei der Konvertierung in COFF: Datei ist ung├é┬│ltig oder besch├â┬Ádigt. [C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\cmTC_8721b.vcxproj]
    Die Erstellung des Projekts "C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\cmTC_8721b.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.

    Fehler beim Buildvorgang.

    "C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\cmTC_8721b.vcxproj" (Standardziel) (1) ->
    (Link Ziel) ->
      LINK : fatal error LNK1123: Fehler bei der Konvertierung in COFF: Datei ist ung├é┬│ltig oder besch├â┬Ádigt. [C:\Users\Besitzer\AppData\Local\Temp\pip-install-ezovfg\dlib\build\temp.win32-2.7\Release\CMakeFiles\CMakeTmp\cmTC_8721b.vcxproj]

        0 Warnung(en)
        1 Fehler

    Verstrichene Zeit 00:00:00.23

  CMake will not be able to correctly generate this project.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Besitzer/AppData/Local/Temp/pip-install-ezovfg/dlib/build/temp.win32-2.7/Release/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Besitzer/AppData/Local/Temp/pip-install-ezovfg/dlib/build/temp.win32-2.7/Release/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\setup.py", line 257, in <module>
    'Topic :: Software Development',
  File "C:\Users\Besitzer\Envs\Social_Mapper\lib\site-packages\setuptools\__init__.py", line 131, in setup
    return distutils.core.setup(**attrs)
  File "e:\python27\Lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "e:\python27\Lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "e:\python27\Lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Users\Besitzer\Envs\Social_Mapper\lib\site-packages\setuptools\command\install.py", line 61, in run
    return orig.install.run(self)
  File "e:\python27\Lib\distutils\command\install.py", line 563, in run
    self.run_command('build')
  File "e:\python27\Lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "e:\python27\Lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "e:\python27\Lib\distutils\command\build.py", line 127, in run
    self.run_command(cmd_name)
  File "e:\python27\Lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "e:\python27\Lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\setup.py", line 133, in run
    self.build_extension(ext)
  File "c:\users\besitzer\appdata\local\temp\pip-install-ezovfg\dlib\setup.py", line 170, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "e:\python27\Lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'c:\\users\\besitzer\\appdata\\local\\temp\\pip-install-ezovfg\\dlib\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=c:\\users\\besitzer\\appdata\\local\\temp\\pip-install-ezovfg\\dlib\\build\\lib.win32-2.7', '-DPYTHON_EXECUTABLE=C:\\Users\\Besitzer\\Envs\\Social_Mapper\\Scripts\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=c:\\users\\besitzer\\appdata\\local\\temp\\pip-install-ezovfg\\dlib\\build\\lib.win32-2.7']' returned non-zero exit status 1

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

`

I googled a little bit and find something about cmake modules: `C:\Users\Besitzer>cmake --help-module FindPython2 FindPython2

Find Python 2 interpreter, compiler and development environment (include directories and libraries).

Three components are supported:

fuuddanni commented 6 years ago

C:\Users\Besitzer>cmake -E environment |clip

ALLUSERSPROFILE=C:\ProgramData AMDAPPSDKROOT=C:\Program Files (x86)\AMD APP\ ANDROID_NDK_PATH=C:\Users\Besitzer\Documents\Android\ndk\android-ndk-r10e APPDATA=C:\Users\Besitzer\AppData\Roaming BONJOUR_SDK_HOME=E:\Bonjour SDK\ CLASSPATH=E:\Java8\jdk\bin\ CommonProgramFiles=C:\Program Files (x86)\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=WATSON ComSpec=C:\Windows\system32\cmd.exe ConEmuANSI=ON ConEmuAnsiLog= ConEmuArgs= ConEmuBackHWND=0x000401BE ConEmuBaseDir=E:\PentestBox\PentestBox\vendor\conemu-maximus5\ConEmu ConEmuBuild=140707 ConEmuConfig= ConEmuDir=E:\PentestBox\PentestBox\vendor\conemu-maximus5 ConEmuDrawHWND=0x000302AC ConEmuDrive=E: ConEmuHooks=Enabled ConEmuHWND=0x0002017A ConEmuPID=3184 ConEmuServerPID=3028 ConEmuWorkDir=C:\Users\Besitzer ConEmuWorkDrive=C: Devmgr_show_nonpresent_devices=1 DOCKER_TOOLBOX_INSTALL_PATH=E:\Docker Toolbox EDITOR=~/AppData/Roaming/GitPad/GitPad.exe ES_HOME=E:\Elasticsearch-6.2.4\6.2.4\ ES_PATH_CONF=E:\Elasticsearch-6.2.4\6.2.4\config FP_NO_HOST_CHECK=NO GOPATH=E:\Go\Projekte GOROOT=E:\Go GTK_BASEPATH=C:\Program Files (x86)\GtkSharp\2.12\ HAXEPATH=E:\HaxeToolkit\haxe\ HOMEDRIVE=C: HOMEPATH=\Users\Besitzer JAVA_HOME=E:\Java8\jdk LOCALAPPDATA=C:\Users\Besitzer\AppData\Local LOGONSERVER=\\WATSON MOZ_PLUGIN_PATH=E:\SumatraPDF\ NEKO_INSTPATH=E:\HaxeToolkit\neko Node=E:\nodejs\node.exe NUMBER_OF_PROCESSORS=8 OS=Windows_NT Path=e:\python27\lib\site-packages\gtk-2.0\runtime\bin;E:\PentestBox\PentestBox\vendor\conemu-maximus5\ConEmu;E:\PentestBox\PentestBox\vendor\conemu-maximus5;E:\Gow\bin;E:\Windows Resource Kits\Tools\;C:\Perl64\site\bin;C:\Perl64\bin;E:\Mingw\lib;E:\Mingw\include;E:\Mingw\bin;E:\Python2.7\python2.exe;E:\Python27\Scripts;E:\Python2.7\;C:\Windows\system32\Npcap;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;E:\xampp\php;E:\xampp\mysql\bin;E:\Download\Sysinternals;C:\Program Files (x86)\Nmap;E:\Hexeditor\HxD.exe;E:\Download\xxd-on-windows\xxd.exe;;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\nodejs\;C:\Program Files\Git\bin;C:\Program Files\Git\cmd;E:\Download\xxd-on-windows;E:\OpenSSL\bin\;E:\Calibre2\;C:\Program Files (x86)\Java\jdk1.8.0_65\bin;C:\Program Files\CMake\bin;E:\Gow\bin;E:\Python2.7;E:\Ruby193\bin;E:\Ruby193\DevKit;C:\Users\Besitzer\AppData\Roaming\npm;C:\Users\Besitzer\AppData\Local\.meteor\;E:\Go;E:\Go\bin\;E:\Ncrack;E:\Ncrack;E:\Docker Toolbox;E:\Github\;E:\Heroku\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.RB;.RBW PROCESSOR_ARCHITECTURE=x86 PROCESSOR_ARCHITEW6432=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=3a09 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files (x86) ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public REM JAVA_HOME=E:\Java8\jdk\lib;E:\Java8\jdk\bin; SESSIONNAME=Console SSLKEYLOGFILE=E:\SSLKEYLOG\sslkeylog.log System32=C:\Windows SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\Besitzer\AppData\Local\Temp TMP=C:\Users\Besitzer\AppData\Local\Temp USERDOMAIN=Watson USERNAME=Besitzer USERPROFILE=C:\Users\Besitzer VBOX_MSI_INSTALL_PATH=E:\VitrualBox\ VS100COMNTOOLS=E:\Microsoft Visual Studio 10.0\Common7\Tools\ VS140COMNTOOLS=E:\Microsoft Visual Studio 14.0\Common7\ windir=C:\Windows windows_tracing_flags=3 ??=????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????4??????????????????????????4??????????????????????????4???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

AdnaneKhan commented 6 years ago

I ran into this issue as well. I am using OS X 10.13 and have a Python virtual environment that I am installing the requirements to.

I ran pip install cmake and re-ran pip install -r requirements.txt and I no longer received the error.

Green-Wolf commented 6 years ago

Closing this and removing the reference in the readme to windows, this was never tested, just presumed based on python. My apologies. Please run on OSX, Linux or a Linux VM.

thienandangthanh commented 6 years ago

@clem9669, you should install or update these requirements. sudo apt-get install python python-pip build-essential cmake pkg-config libx11-dev libatlas-base-dev libgtk-3-dev libboost-python-dev -y

HansamalDharmananda commented 4 years ago

For windows - pip install cmake Works for me as well

chaitrasj commented 4 years ago

I was also getting a smiliar error as, " CMake must be installed to build the following extensions: dlib" (There was entire error trace which I am not adding) The reason was I was installing dlib in my conda environment and cmake was not present there. After installing cmake in conda environment, dlib got installed.

Greenwolf commented 4 years ago

So this is confirmed working on Windows for you guys?

Greenwolf commented 4 years ago

@HansamalDharmananda, @chaitrasj have you got it working on Windows?

bawantha commented 4 years ago

don't forget to install Microsoft Visual C++ Build Tools in windows

MaskeZen commented 3 years ago

pip install cmake

aktaseren commented 2 years ago

@clem9669, you should install or update these requirements. sudo apt-get install python python-pip build-essential cmake pkg-config libx11-dev libatlas-base-dev libgtk-3-dev libboost-python-dev -y

This works for me as well. It is a clear solution.

tarikmanoar commented 1 year ago

@clem9669, you should install or update these requirements. sudo apt-get install python python-pip build-essential cmake pkg-config libx11-dev libatlas-base-dev libgtk-3-dev libboost-python-dev -y


For Python3


sudo apt-get install python3 python3-pip build-essential cmake pkg-config libx11-dev libatlas-base-dev libgtk-3-dev libboost-python-dev -y