Traceback in czech bible download
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenLP | Status tracked in Trunk | |||||
2.0 |
Fix Released
|
Medium
|
matysek | |||
Trunk |
Fix Released
|
Medium
|
matysek |
Bug Description
Recently were made available for openlp new czech bibles.
- they appear in the first-time wizard
- downloading any of them causes the following traceback:
Traceback (most recent call last):
File "/home/
self.
File "/home/
size = self._getFileSi
File "/home/
return int(meta.
IndexError: list index out of range
- this happens in 2.0.1 and in trunk
- the OS and if it is source or build do not matter
Possible cause could be:
- wrong syntax of download.cfg
- download.cfg is not properly parsed.
Related branches
- Andreas Preikschat (community): Approve
- Raoul Snyman: Approve
-
Diff: 192 lines (+56/-13)2 files modifiedopenlp/core/ui/firsttimeform.py (+38/-13)
openlp/core/utils/__init__.py (+18/-0)
After some discussion on IRC this seems to be the root cause:
- openlp need to know the filesize of the bible file
- this size is checked for bibles on openlp site
- then bible files are downloaded from sourceforge
- get the filesize will fail for new modules added only to sourceforge and not to openlp site!
Ways to fix it:
- specify filesize in the download.cfg file
- igure out how to get SF.net to return the file size