Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: You must call "start" before calling "update" #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carcinocron
Copy link

✗ python3 download.py --download_dir ./download2 --data_dir ./download_data2 --datasets vcc2016
Attempting to download: vcc2016_training.zip
Traceback (most recent call last):
  File "/Users/iomcr/code/gan/download.py", line 93, in <module>
    download_vcc2016(download_dir = download_dir, data_dir = data_dir)
  File "/Users/iomcr/code/gan/download.py", line 68, in download_vcc2016
    dataset_filepath = maybe_download(filename = data_file, url = url, destination_dir = download_dir, force = False)
  File "/Users/iomcr/code/gan/download.py", line 36, in maybe_download
    filepath, _ = urlretrieve(url, filepath, reporthook = progress_bar)
  File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 265, in urlretrieve
    reporthook(blocknum, bs, size)
  File "/Users/iomcr/code/gan/download.py", line 22, in progress_bar
    pbar.update(downloaded)
  File "/usr/local/lib/python3.9/site-packages/progressbar/progressbar.py", line 257, in update
    raise RuntimeError('You must call "start" before calling "update"')
RuntimeError: You must call "start" before calling "update"

```
✗ python3 download.py --download_dir ./download2 --data_dir ./download_data2 --datasets vcc2016
Attempting to download: vcc2016_training.zip
Traceback (most recent call last):
  File "/Users/iomcr/code/gan/download.py", line 93, in <module>
    download_vcc2016(download_dir = download_dir, data_dir = data_dir)
  File "/Users/iomcr/code/gan/download.py", line 68, in download_vcc2016
    dataset_filepath = maybe_download(filename = data_file, url = url, destination_dir = download_dir, force = False)
  File "/Users/iomcr/code/gan/download.py", line 36, in maybe_download
    filepath, _ = urlretrieve(url, filepath, reporthook = progress_bar)
  File "/usr/local/Cellar/python@3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 265, in urlretrieve
    reporthook(blocknum, bs, size)
  File "/Users/iomcr/code/gan/download.py", line 22, in progress_bar
    pbar.update(downloaded)
  File "/usr/local/lib/python3.9/site-packages/progressbar/progressbar.py", line 257, in update
    raise RuntimeError('You must call "start" before calling "update"')
RuntimeError: You must call "start" before calling "update"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant