I had posted this is the Development forum but I've moved it to here as I've confirmed it to be what I think is a bug and this seems more appropriate.
On some services created and saved in OpenLP 2.0.4, OpenLP3.1.0 will open them fine. On most it crashes with the traceback below.
I've discovered through trial and error that the issue only happens if any song has linked audio. If I remove the audio from the songs and re-save the service it will open fine in OpenLP 3. Services where no song has linked audio attached will open just fine.
I've confirmed this on 3.1.0 and 3.1.3 running on Linux Mint 21.3 and 22 (on different computers).
`OpenLP Bug Report
Version: {'full': '3.1.0rc4', 'version': '3.1.0rc4', 'build': None}
--- Details of the Exception. ---
open a service saved in version 2
--- Exception Traceback ---
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/openlp/core/ui/servicemanager.py", line 497, in on_load_service_clicked
self.load_service()
File "/usr/lib/python3/dist-packages/openlp/core/ui/servicemanager.py", line 520, in load_service
self.load_file(file_path)
File "/usr/lib/python3/dist-packages/openlp/core/ui/servicemanager.py", line 857, in load_file
self.process_service_items(items)
File "/usr/lib/python3/dist-packages/openlp/core/ui/servicemanager.py", line 899, in process_service_items
service_item.set_from_service(item, self.service_path, self.servicefile_version)
File "/usr/lib/python3/dist-packages/openlp/core/lib/serviceitem.py", line 544, in set_from_service
if version >= 3:
^^^^^^^^^^^^
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
--- System information ---
Platform: Linux-6.8.0-48-generic-x86_64-with-glibc2.39
Desktop: GNOME
--- Library Versions ---
Python: 3.12.3
PyQt5: 5.15.10
SQLAlchemy: 1.4.50
Alembic: 1.13.1
BeautifulSoup: 4.12.3
lxml: 5.2.1
Chardet: 5.2.0
PyEnchant: 3.2.2
Mako: 1.3.2
VLC: OK
PyUNO: 24.2`
Both versions run on Linux (different version of Linux Mint) and the services do open on the older version of OpenLP 2 just fine. I'm guessing this is to do with the way the service has been saved but I'm not sure how I can handle that. In the older version I don't have an OpenLP lite option. The service has songs and some custom slides but no video or other media at all.