MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MagicMirror capture.py error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    10 Posts 2 Posters 1.9k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      Buncie
      last edited by

      Is there anyone who can see whats wrong with the code?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Buncie
        last edited by

        @Buncie see
        https://forum.magicmirror.builders/topic/10325/capture-py-in-mmm-facial-recognition-tools-error

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • B Offline
          Buncie
          last edited by

          I did that and I got a new error.

          Traceback (most recent call last):
            File "capture.py", line 18, in <module>
              import lib.capture as capture
            File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 12, in <module>
              from   builtins import input
          ImportError: No module named builtins
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Buncie
            last edited by

            @Buncie

            looks like you need to run python3

            
            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)
            
            Then im tring to sudo pip install future --upgrade,
            
            **I modified the code in config.py**
            
            from CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2 = cv2.version.split(".")
            to CV_MAJOR_VER, CV_MINOR_VER, type = cv2.version.split(".")
            
            try: python3 capture.py // python capture.py
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              Buncie
              last edited by

              Now it says this when I do have OpenCV.

              Traceback (most recent call last):
                File "capture.py", line 18, in <module>
                  import lib.capture as capture
                File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-Tools/lib/capture.py", line 19, in <module>
                  import cv2
              ModuleNotFoundError: No module named 'cv2'
              
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Buncie
                last edited by

                @Buncie this module setup is a pain… i’m sorry, I don’t know any more on how to fix it.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Buncie
                  last edited by

                  Do you know anyone who can fix it?

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Buncie
                    last edited by

                    @Buncie no… i am sure I can. but don’t have time right now

                    also not sure what it is capturing from?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Buncie
                      last edited by

                      What do you mean, “What is it capturing from?”
                      Where do you want me to look?

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy