<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[capture.py in MMM-Facial-Recognition-Tools error]]></title><description><![CDATA[<p dir="auto"><a href="https://forum.magicmirror.builders/topic/6345/facial-recognition-module-step-by-step-guide">https://forum.magicmirror.builders/topic/6345/facial-recognition-module-step-by-step-guide</a><br />
Referring to the above link, I was following the guidelines. But while following the guide, an error occurred in the Python <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a> part.<br />
I am trying to run <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a> but getting this Error.  I am using a webcam…</p>
<p dir="auto">python <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a></p>
<pre><code>Traceback (most recent call last):
File “capture.py”, line 18, in
import lib.capture as capture
File “/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py”, line 12, in
from builtins import input
ImportError: No module named builtins
</code></pre>
<p dir="auto">python3 <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a></p>
<pre><code>Traceback (most recent call last):
   File "capture.py", line 18, in 
      import lib.capture as capture
   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 21, in 
     from . import config
   File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/config.py", line 15, in 
     (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
ValueError: not enough values to unpack (expected 4, got 3)
</code></pre>
<p dir="auto">Then im tring to sudo pip install future --upgrade,<br />
I modified the code in <a href="http://config.py" target="_blank" rel="noopener noreferrer nofollow ugc">config.py</a><br />
from CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2 = cv2.<em>version</em>.split(“.”)<br />
to CV_MAJOR_VER, CV_MINOR_VER, type = cv2.<em>version</em>.split(“.”)</p>
<p dir="auto">try: python3 <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a> // python <a href="http://capture.py" target="_blank" rel="noopener noreferrer nofollow ugc">capture.py</a></p>
<p dir="auto">success!!</p>
<p dir="auto">I’m still worried. Is there anything wrong with it later?</p>
]]></description><link>https://forum.magicmirror.builders/topic/10325/capture-py-in-mmm-facial-recognition-tools-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 11:50:08 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10325.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Apr 2019 09:10:47 GMT</pubDate><ttl>60</ttl></channel></rss>