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

Error to download #16

Open
kyumiouchi opened this issue Jul 19, 2019 · 0 comments
Open

Error to download #16

kyumiouchi opened this issue Jul 19, 2019 · 0 comments
Labels

Comments

@kyumiouchi
Copy link

When I try to this:
chakin.download(number=2, save_dir='./')
or
chakin.download(number=21, save_dir='./')

It is not working.


ValueError Traceback (most recent call last)
in ()
----> 1 chakin.download(number=2, save_dir='./')

/hd/anaconda2/envs/gpu2/lib/python2.7/site-packages/chakin/downloader.pyc in download(number, save_dir)
39 os.makedirs(save_dir)
40 save_path = os.path.join(save_dir, file_name)
---> 41 path, _ = urlretrieve(url, save_path, reporthook=dlProgress)
42 pbar.finish()
43 return path

/hd/anaconda2/envs/gpu2/lib/python2.7/urllib.pyc in urlretrieve(url, filename, reporthook, data, context)
96 else:
97 opener = _urlopener
---> 98 return opener.retrieve(url, filename, reporthook, data)
99 def urlcleanup():
100 if _urlopener:

/hd/anaconda2/envs/gpu2/lib/python2.7/urllib.pyc in retrieve(self, url, filename, reporthook, data)
269 size = int(headers["Content-Length"])
270 if reporthook:
--> 271 reporthook(blocknum, bs, size)
272 while 1:
273 block = fp.read(bs)

/hd/anaconda2/envs/gpu2/lib/python2.7/site-packages/chakin/downloader.pyc in dlProgress(count, blockSize, totalSize)
31 if pbar.max_value is None:
32 pbar.max_value = totalSize
---> 33 pbar.start()
34
35 pbar.update(min(count * blockSize, totalSize))

/hd/anaconda2/envs/gpu2/lib/python2.7/site-packages/progressbar/bar.pyc in start(self, max_value, init)
655
656 if self.max_value is not base.UnknownLength and self.max_value < 0:
--> 657 raise ValueError('Value out of range')
658
659 self.start_time = self.last_update_time = datetime.now()

ValueError: Value out of range

@icoxfog417 icoxfog417 added the bug label Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants