Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Environment:
Ubuntu Linux usfm2osis.py – USFM 2.35 to OSIS 2.1.1 converter version 0.5
Revision: 410 (2013-01-05)
Description
This minimal file A0FRTxxx.txt:
\id FRT - some project
\periph Title Page
\mt Some title
\periph Publication Data
\pc some Bible Society somewhere
\periph Introduction
\imt Intro title
\ip A paragraph of text goes here
\periph Table of Contents
\mt Another title
causes (with or without the -d option)
python .../sword-tools/modules/python/usfm2osis.py Test -d A0FRTxxx.txt
Sorting book files naturally.
Processing: A0FRTxxx.txt
Process Worker-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/mnt/SSD/Programming/WebDevelopment/sword-tools/modules/python/usfm2osis.py", line 1442, in run
osis = convertToOsis(job)
File "/mnt/SSD/Programming/WebDevelopment/sword-tools/modules/python/usfm2osis.py", line 1333, in convertToOsis
osis = cvtPeripherals(osis, relaxedConformance)
File "/mnt/SSD/Programming/WebDevelopment/sword-tools/modules/python/usfm2osis.py", line 1140, in cvtPeripherals
osis = re.sub(r'\\periph\s+([^'+'\n'+r'])\s*''\n'r'(.?)(?=(</div type="book">|\\periph\s+))', tagPeriph, osis, flags=re.DOTALL)
File "/usr/lib/python2.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/mnt/SSD/Programming/WebDevelopment/sword-tools/modules/python/usfm2osis.py", line 1129, in tagPeriph
periphType,contents = matchObject
TypeError: '_sre.SRE_Match' object is not iterable
^C
Traceback (most recent call last):
File "/mnt/SSD/Programming/WebDevelopment/sword-tools/modules/python/usfm2osis.py", line 1559, in <module>
k,v=result_queue.get()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 117, in get
res = self._recv()
KeyboardInterrupt