I realise this may not be an active project, but it could be really helpful for us.
I'm using Python 3.7 and have replaced the "unicode" references with "str" where applicable, but still get the following error, which seems to indicate that the object passed to regex's sub function isn't quite right. I'm not overly familiar with regex, so any help would be greatly appreciated!
Traceback (most recent call last):
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 374, in
main()
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 348, in main
for v in ParseLyric(song['lyrics'])])
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 348, in
for v in ParseLyric(song['lyrics'])])
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 193, in VerseBlock
'')
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 196, in SlideBlock
return '<_-RVRect3D-_position x="30" y="30" z="0" width="964" height="708"><_-D-_serializedShadow containerClass="NSMutableDictionary"><_-RVProTransitionObject-_transitionObject transitionType="-1" transitionDuration="1" motionEnabled="0" motionDuration="20" motionSpeed="100">'
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 141, in MakeRTFBlob
'\f0\fs102\fsmilli51200 \cf1 \expnd0\expndtw0\kerning0\n\outl0\strokewidth-20 \strokec0 \uc0 ' + AntiUnicode(text) + '}')
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 132, in AntiUnicode
text.encode('unicode_escape')))\
File "D:\Python37\lib\re.py", line 194, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object
Hi there
I realise this may not be an active project, but it could be really helpful for us.
I'm using Python 3.7 and have replaced the "unicode" references with "str" where applicable, but still get the following error, which seems to indicate that the object passed to regex's sub function isn't quite right. I'm not overly familiar with regex, so any help would be greatly appreciated!
Traceback (most recent call last): File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 374, in
main()
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 348, in main
for v in ParseLyric(song['lyrics'])])
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 348, in
for v in ParseLyric(song['lyrics'])])
File "D:\Downloads\OpenLP-To-ProPresenter5-Converter-master\converter.py", line 193, in VerseBlock