← Back to team overview

openlp-core team mailing list archive

[Bug 1160506] Re: Traceback in czech bible download

 

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

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1160506

Title:
  Traceback in czech bible download

Status in OpenLP - Worship Presentation Software:
  New

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/andreas/Projects/OpenLP/trunk/openlp/core/ui/firsttimeform.py", line 222, in onCurrentIdChanged
      self._preWizard()
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/ui/firsttimeform.py", line 354, in _preWizard
      size = self._getFileSize(u'%s%s' % (self.web, filename))
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/ui/firsttimeform.py", line 306, in _getFileSize
      return int(meta.getheaders("Content-Length")[0])
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1160506/+subscriptions


References