I got the following error when I made VLC the primary player without having installed VLC first. Uninstalling and reinstalling OpenLP and manually deleting the ./local/share/openlp folder did not help. Please advise how I can get back in. Thanks in advance.
Kees
Traceback (most recent call last):
File "/usr/bin/openlp", line 44, in <module>
main()
File "/usr/share/openlp/openlp/core/__init__.py", line 437, in main
sys.exit(application.run(qt_args))
File "/usr/share/openlp/openlp/core/__init__.py", line 142, in run
Registry().execute('bootstrap_initialise')
File "/usr/share/openlp/openlp/core/common/registry.py", line 137, in execute
result = function(*args, **kwargs)
File "/usr/share/openlp/openlp/core/lib/pluginmanager.py", line 60, in bootstrap_initialise
self.hook_media_manager()
File "/usr/share/openlp/openlp/core/lib/pluginmanager.py", line 122, in hook_media_manager
plugin.create_media_manager_item()
File "/usr/share/openlp/openlp/core/lib/plugin.py", line 204, in create_media_manager_item
self.media_item = self.media_item_class(self.main_window.media_dock_manager.media_dock, self)
File "/usr/share/openlp/openlp/plugins/media/lib/mediaitem.py", line 58, in __init__
super(MediaMediaItem, self).__init__(parent, plugin)
File "/usr/share/openlp/openlp/core/lib/mediamanageritem.py", line 82, in __init__
self.setup_item()
File "/usr/share/openlp/openlp/plugins/media/lib/mediaitem.py", line 90, in setup_item
self.media_controller.setup_display(self.display_controller.preview_display, False)
File "/usr/share/openlp/openlp/core/ui/media/mediacontroller.py", line 322, in setup_display
player.setup(display)
File "/usr/share/openlp/openlp/core/ui/media/vlcplayer.py", line 157, in setup
display.vlc_instance = vlc.Instance(command_line_options)
File "/usr/share/openlp/openlp/core/ui/media/vendor/vlc.py", line 1411, in __new__
return libvlc_new(len(args), args)
File "/usr/share/openlp/openlp/core/ui/media/vendor/vlc.py", line 3629, in libvlc_new
_Cfunction('libvlc_new', ((1,), (1,),), class_result(Instance),
File "/usr/share/openlp/openlp/core/ui/media/vendor/vlc.py", line 246, in _Cfunction
raise NameError('no function %r' % (name,))
NameError: no function 'libvlc_new'
Comments
@Kees The config for OpenLP on linux is usually stored in
~/.config/OpenLP/OpenLP.conf
, try deleting that one: Or otherwise installing VLC should fix the issue.I hope you backed up the
./.local/share/openlp
folder, that's where all the songs/slides/bibles/images are stored.Thanks so much @ninjakiwi. That solved the problem! Yes, I had backed up all the songs, slides and images, of course!
I already had VLC installed. Now, unfortunately, as soon as I add VLC under Configure/Players, I get the same error I reported above. So without VLC ticked, everything works fine, but as soon as I tick it, I get the error message. OpenLP does not seem to like VLC. Should I perhaps uninstall it and try again?