FabiUnne/youtube-upload

Progress bar doesn't work

Closed this issue · 2 comments

What steps will reproduce the problem?

1. Windows 7
2. Python 2.7
3. Progressbar 2.3

Please provide any additional information:

Traceback (most recent call last):
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 137, in <lambda>
    c.setopt(c.PROGRESSFUNCTION, lambda *args: progress(bar, total_filesize, *ar
gs))
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 121, in progress
    bar.update(min(maxval, upload_d))
  File "build\bdist.win32\egg\progressbar\__init__.py", line 276, in update
  File "build\bdist.win32\egg\progressbar\__init__.py", line 251, in _need_update
AttributeError: next_update
Traceback (most recent call last):
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 137, in <lambda>
    c.setopt(c.PROGRESSFUNCTION, lambda *args: progress(bar, total_filesize, *args))
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 121, in progress
    bar.update(min(maxval, upload_d))
  File "build\bdist.win32\egg\progressbar\__init__.py", line 276, in update
  File "build\bdist.win32\egg\progressbar\__init__.py", line 251, in _need_update
AttributeError: next_update
Traceback (most recent call last):
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 409, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main_upload, sys.argv[1:]))
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 97, in catch_exceptions
    fun(*args, **kwargs)
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 394, in main_upload
    post(data["post_url"], {"file": video_path}, {"token": data["token"]})
  File "C:\Users\ck\Downloads\youtube\youtube_upload.py", line 144, in post
    c.perform()
pycurl.error: (7, 'Callback aborted')

Original issue reported on code.google.com by ck.reckoner on 19 Jun 2011 at 1:12

commited change required for 2.3, thanks for reporting

r137

Original comment by tokland on 19 Jun 2011 at 8:30

  • Changed state: Fixed

Original comment by tokland on 13 May 2014 at 2:55