• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

ValueError: Needs more than 3 values to unpack - anyone ever address this?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
3 Posts 2 Posters 1.3k 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
    BigBadJohnnyB
    last edited by Dec 23, 2019, 8:33 PM

    Re: Facial Recognition Module

    I’ve got this same problem - driving me mad

    S 1 Reply Last reply Dec 24, 2019, 5:43 PM Reply Quote 0
    • S Online
      sdetweil @BigBadJohnnyB
      last edited by Dec 24, 2019, 5:43 PM

      @BigBadJohnnyB this is a wrong python version compared to the code.

      https://stackoverflow.com/questions/5515859/valueerror-need-more-than-2-values-to-unpack-in-python-2-6-6

      there is a user code fix for this… documented in the linked article.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Dec 24, 2019, 5:58 PM Reply Quote 0
      • S Online
        sdetweil @sdetweil
        last edited by sdetweil Dec 25, 2019, 4:38 AM Dec 24, 2019, 5:58 PM

        @BigBadJohnnyB

        this line of code in MMM-Facial-Recognition-Tools/lib/config.py
        line 15

        (CV_MAJOR_VER, CV_MINOR_VER, mv1, mv2) = cv2.__version__.split(".")
        

        that says parse the cv2 version string with a dot, and put the parts in the 4 variables…

        BUT the cv2 version doesn’t have 4 parts after split… only 3… so the python assignment code doesn’t know what to do… it can’t fill in the 4th part (mv2)
        AND
        only CV_MAJOR_VER is used in the code following, so one could change the broken line to

        result = cv2.__version__.split('.')
        CV_MAJOR_VER = result[0]
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        1 / 1
        • First post
          1/3
          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