You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,i'm facing this error even though i install dlib using conda and i tried every possible way on internet to fix this none of them are working pls help me fix this error sir
#30
Open
bobby477 opened this issue
Jul 6, 2024
· 0 comments
PS C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding>
PS C:\Users\jjaya\Docuuvicorn main:app --port 8002 g-AI\face_encoding> cd .\face_encoding
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Scripts\uvicorn.exe_main.py", line 7, in
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\main.py", line 410, in main
run(
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\server.py", line 69, in serve
await self._serve(sockets)
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\server.py", line 76, in serve
config.load()
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\importlib_init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding\main.py", line 7, in
from helper_utils import get_encoding
File "C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding\helper_utils.py", line 7, in
face_detector = dlib.get_frontal_face_detector()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'
The text was updated successfully, but these errors were encountered:
PS C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding> conda install -c conda-forge dlib
Channels:
Collecting package metadata (repodata.json): done
Solving environment: done
All requested packages already installed.
PS C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding>
PS C:\Users\jjaya\Docuuvicorn main:app --port 8002 g-AI\face_encoding> cd .\face_encoding
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Scripts\uvicorn.exe_main.py", line 7, in
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\main.py", line 410, in main
run(
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\server.py", line 69, in serve
await self._serve(sockets)
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\server.py", line 76, in serve
config.load()
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\site-packages\uvicorn\importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jjaya\AppData\Local\Programs\Python\Python312\Lib\importlib_init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding\main.py", line 7, in
from helper_utils import get_encoding
File "C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding\helper_utils.py", line 7, in
face_detector = dlib.get_frontal_face_detector()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'
The text was updated successfully, but these errors were encountered: