openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #16873
[Bug 963894] Re: openlp not starting on Mac if vlc not available
This code is already in a try statement inside vlcplayer.py, putting the
try right around the dll loading allows it to indicate what is actually
wrong when the issue happens, but it does not .
I think i'd need to actually load the dll inside our codebase if vlc.py
cannot be changed, recreating the vlc.py code, not sure if i can unload
it properly - it seems like it's redundant and ugly.
I think we need to discuss this with the folks at vlc, perhaps they
might have some ideas on the vlc playback issue as well.
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/963894
Title:
openlp not starting on Mac if vlc not available
Status in OpenLP - Worship Presentation Software:
Confirmed
Bug description:
On Mac OpenLP does not start when vlc player is not available.
The following error message appear in the log file:
2012-03-24 14:15:41,863 root ERROR Traceback (most recent call last):
File "openlp.pyw", line 42, in <module>
main()
File "/Users/martin/Documents/openlp/trunk/openlp/core/__init__.py", line 291, in main
sys.exit(app.run(qt_args))
File "/Users/martin/Documents/openlp/trunk/openlp/core/__init__.py", line 130, in run
self.mainWindow = MainWindow(self.clipboard(), self.args)
File "/Users/martin/Documents/openlp/trunk/openlp/core/ui/mainwindow.py", line 576, in __init__
self.mediaController = MediaController(self)
File "/Users/martin/Documents/openlp/trunk/openlp/core/ui/media/mediacontroller.py", line 56, in __init__
self.check_available_media_players()
File "/Users/martin/Documents/openlp/trunk/openlp/core/ui/media/mediacontroller.py", line 117, in check_available_media_players
__import__(modulename, globals(), locals(), [])
File "/Users/martin/Documents/openlp/trunk/openlp/core/ui/media/vlcplayer.py", line 32, in <module>
import vlc
File "/Users/martin/Documents/openlp/trunk/openlp/core/ui/media/vlc.py", line 119, in <module>
dll, plugin_path = find_lib()
File "/Users/martin/Documents/openlp/trunk/openlp/core/ui/media/vlc.py", line 111, in find_lib
dll = ctypes.CDLL('libvlc.dylib')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libvlc.dylib, 6): image not found
None
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/963894/+subscriptions
References