abhijitjadhav1998 / Deepfake_detection_using_deep_learning

This projects aims in detection of video deepfakes using deep learning techniques like RestNext and LSTM. We have achived deepfake detection by using transfer learning where the pretrained RestNext CNN is used to obtain a feature vector, further the LSTM layer is trained using the features. For more details follow the documentaion.
GNU General Public License v3.0
397 stars 140 forks source link

ERROR: Failed building wheel for dlib Failed to build dlib ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects #28

Open DEEPAKM-1872003 opened 3 months ago

DEEPAKM-1872003 commented 3 months ago

Building wheels for collected packages: dlib Building wheel for dlib (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for dlib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [66 lines of output] running bdist_wheel running build running build_py running build_ext Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Scripts\cmake.exe__main.py", line 4, in ModuleNotFoundError: No module named 'cmake' Traceback (most recent call last): File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 251, in build_wheel return _build_backend().build_wheel(wheel_directory, config_settings, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 410, in build_wheel return self._build_with_temp_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 395, in _build_with_temp_dir self.run_setup() File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 223, in File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\init__.py", line 103, in setup return distutils.core.setup(*attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\normal\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run self.run_command("build") File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command super().run_command(command) File "C:\Users\Deepak\AppData\Local\Temp\pip-build-env-x1s8c8n7\overlay\Lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "", line 129, in run File "", line 120, in get_cmake_version File "C:\Users\Deepak\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 466, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Deepak\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['cmake', '--version']' returned non-zero exit status 1. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for dlib Failed to build dlib ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

(venv) D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application>python setup.py install --no dlib_if_support C:\Users\Deepak\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\setup.py': [Errno 2] No such file or directory

(venv) D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application>python setup.py install --no dlib_s upport C:\Users\Deepak\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'D:\Finalyearproject\Deepfake_detection_using_deep_learning\Django Application\setup.py': [Errno 2] No such file or directory

DEEPAKM-1872003 commented 3 months ago

couldn't able to finish those requirements step, what to do , need solution

SanchitDua20 commented 1 month ago

couldn't able to finish those requirements step, what to do , need solution

Hey, Is there any update? I'm stuck because of this same issue.

DEEPAKM-1872003 commented 1 month ago

Bro just delete the clones repository and clone it again then re install all requirement , also generalize the requirements version like instead of torch==1.9.0 . Try like torch =>1.9.0 , because of different dependency

SanchitDua20 commented 1 month ago

Is it possible for you to connect over discord or google meet. I value your time and efforts but we are preparing this as out major project and we need to clear all these issues before the deadline. I really appreciate your efforts. Thank you

On Tue, 21 May 2024 at 00:30, DEEPAKM-1872003 @.***> wrote:

Bro just delete the clones repository and clone it again then re install all requirement , also generalize the requirements version like instead of torch==1.9.0 . Try like torch =>1.9.0 , because of different dependency

— Reply to this email directly, view it on GitHub https://github.com/abhijitjadhav1998/Deepfake_detection_using_deep_learning/issues/28#issuecomment-2121026908, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3XKWPPRFZC4RGGHPEAJ3ATZDJB4HAVCNFSM6AAAAABEHRJWJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGAZDMOJQHA . You are receiving this because you commented.Message ID: <abhijitjadhav1998/Deepfake_detection_using_deep_learning/issues/28/2121026908 @github.com>

SanchitDua20 commented 1 month ago

Bro just delete the clones repository and clone it again then re install all requirement , also generalize the requirements version like instead of torch==1.9.0 . Try like torch =>1.9.0 , because of different dependency

![Uploading IMG20240520201356.jpg…]()