Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@bobby477
Copy link

bobby477 commented Jul 6, 2024

PS C:\Users\jjaya\Documents\Finding-missing-person-using-AI\face_encoding> conda install -c conda-forge dlib
Channels:

  • conda-forge
    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'

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

No branches or pull requests

1 participant