question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError: too many values to unpack (expected 2)

See original GitHub issue

Ran into this error in my main file i was using.

So i made the most basic version i could and still got that error. Running in python 3.8 64 bit

from pytube import YouTube yt = YouTube('https://www.youtube.com/watch?v=jNQXAC9IVRw')

Error thrown: Traceback (most recent call last): File "c:\Users\user\Documents\My scripting projects\yt download testr\test.py", line 4, in <module> yt = YouTube('https://www.youtube.com/watch?v=jNQXAC9IVRw') File "C:\Python38\lib\site-packages\pytube\__main__.py", line 92, in __init__ self.descramble() File "C:\Python38\lib\site-packages\pytube\__main__.py", line 140, in descramble apply_signature(self.player_config_args, fmt, self.js) File "C:\Python38\lib\site-packages\pytube\extract.py", line 225, in apply_signature cipher = Cipher(js=js) File "C:\Python38\lib\site-packages\pytube\cipher.py", line 31, in __init__ var, _ = self.transform_plan[0].split(".") ValueError: too many values to unpack (expected 2)

Is it just me or are you guys getting this error also?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:34
  • Comments:41 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
belthaZornvcommented, Jul 28, 2020
2reactions
kbuildscommented, Jul 29, 2020

I patched and hosted this again. Looks like there was a merge conflict between this PR and #643

You can install directly from my repo like this:

pip install git+https://gitlab.com/obuilds/public/pytube@ob-v2

or add the following to your requirements.txt

git+https://gitlab.com/obuilds/public/pytube@ob-v2
Read more comments on GitHub >

github_iconTop Results From Across the Web

Python valueerror: too many values to unpack (expected 2)
The “valueerror: too many values to unpack (expected 2)” error occurs when you do not unpack all the items in a list. This...
Read more >
python: ValueError: too many values to unpack (expected 2 ...
Tom says "ValueError: too many values to unpack (expected 2) means that you called a function that only returns a single value".
Read more >
ValueError: too many values to unpack (expected 2) in Python
The Python "ValueError: too many values to unpack (expected 2) in Python" occurs when the number of variables in the assignment is not...
Read more >
ValueError: too many values to unpack (expected 2)
Python ValueError: too many values to unpack, occurs during a multiple-assignment where you either don't have enough objects to assign to the variables...
Read more >
ValueError: Too many values to unpack in Python - STechies
PythonValueError: Too many values to unpack in Python, This error occurs when we assign more number of values and less number of variables,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found