python-progressbar icon indicating copy to clipboard operation
python-progressbar copied to clipboard

ValueError: Value 40 is out of range, should be between 0 and 39

Open Mennaruuk opened this issue 3 years ago • 0 comments

Hello WoLpH, I hope you are doing well.

Thank you for your amazing project, it's very helpful.

Description

I get the following error:

Traceback (most recent call last):
  File "C:\Users\Menna\Desktop\funny\memes\delete.py", line 66, in <module>
    for url in pbar(data):
  File "C:\Users\Menna\AppData\Local\Programs\Python\Python310\lib\site-packages\progressbar\bar.py", line 550, in __next__
    self.update(self.value + 1)
  File "C:\Users\Menna\AppData\Local\Programs\Python\Python310\lib\site-packages\progressbar\bar.py", line 661, in update
    raise ValueError(
ValueError: Value 40 is out of range, should be between 0 and 39

Code

  1. Save the code below as main.py https://pastebin.com/xrm7kZkU

  2. Install waybackpack (GitHub repo) pip install waybackpack

  3. Run the following command: main.py -u tiredarabwoman -from 20220126

  4. After a minute, you'll get this prompt: 2 deleted Tweets have been found. Would you like to download them all? Type yes or no. Type yes and press Enter. You should get the error above.

Versions

  • Python version: 3.10.0
  • Python distribution/environment: Command Prompt
  • Operating System: Windows 10
  • Package version: 4.0.0

Thank you again.

Mennaruuk avatar Feb 04 '22 06:02 Mennaruuk