Skip to content

AttributeError: 'FaceMeshDetector' object has no attribute 'landmarker' #28

Description

@gustavomr

Hi,

Thanks for sharing your job. I followed instructions from installation but getting this error:

Error executing job with overrides: []
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1286, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1332, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1281, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1041, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 979, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/http/client.py", line 1458, in connect
self.sock = self._context.wrap_socket(self.sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1108, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py", line 1379, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/gustavo.monti/Downloads/heartrate/venv/lib/python3.11/site-packages/yarppg/main.py", line 14, in main
rppg = yarppg.Rppg.from_settings(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gustavo.monti/Downloads/heartrate/venv/lib/python3.11/site-packages/yarppg/rppg.py", line 103, in from_settings
detector = roi.detectorssettings.detector
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gustavo.monti/Downloads/heartrate/venv/lib/python3.11/site-packages/yarppg/roi/facemesh_segmenter.py", line 70, in init
modelpath = get_face_landmarker_modelfile()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gustavo.monti/Downloads/heartrate/venv/lib/python3.11/site-packages/yarppg/roi/facemesh_segmenter.py", line 42, in get_face_landmarker_modelfile
return get_cached_resource_path(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gustavo.monti/Downloads/heartrate/venv/lib/python3.11/site-packages/yarppg/helpers.py", line 21, in get_cached_resource_path
urllib.request.urlretrieve(url, filename=str(local_file))
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 241, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 519, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Exception ignored in: <function FaceMeshDetector.del at 0x12bfa6700>
Traceback (most recent call last):
File "/Users/gustavo.monti/Downloads/heartrate/venv/lib/python3.11/site-packages/yarppg/roi/facemesh_segmenter.py", line 84, in del
self.landmarker.close()
^^^^^^^^^^^^^^^
AttributeError: 'FaceMeshDetector' object has no attribute 'landmarker'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions