openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #16866
[Bug 963894] Re: openlp not starting on Mac if vlc not available
I have made changes to vlc.py seems to fix this issue.
It is able to handle vlc not being present, or the 64 bit version being
installed.
To use VLC it requires the 32/64 bit version, or the 32 version of vlc.
If not present, it marks VLC as disabled ( which grays out the checkbox
in the UI and switches the enabled option to webkit )
I don't know how to make this work in vlcplayer.py, it seems to need to
need a try statement around the initial loading of the DLL, but assuming
we can edit vlc.py, this should fix the issue.
** Branch linked: lp:~briantmeyer/openlp/bug-963955
** Changed in: openlp
Assignee: (unassigned) => Brian Meyer (briantmeyer)
--
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