Hello everyone,
today I installed Ubuntu 18.04. After the installation, I have normally installed openlp and now I get the following error message. Does anyone have an idea what I did wrong? Thanks in advance.
Traceback (most recent call last):
File "/usr/bin/openlp", line 27, in <module>
from openlp.core.common import is_win, is_macosx
File "/usr/share/openlp/openlp/__init__.py", line 26, in <module>
from openlp import core, plugins
File "/usr/share/openlp/openlp/core/__init__.py", line 43, in <module>
from openlp.core.ui.mainwindow import MainWindow
File "/usr/share/openlp/openlp/core/ui/mainwindow.py", line 29, in <module>
from distutils import dir_util
ImportError: cannot import name 'dir_util'
Comments
Open a terminal (console), and type in the following:
This is the information I get when trying to start OpenLP
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 3630, in libvlc_new
ctypes.c_void_p, ctypes.c_int, ListPOINTER(ctypes.c_char_p))
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'
Having said that, I know about your error too. There's a bug in the VLC integration library, installing VLC should solve your error.
Open a terminal (console), and type in the following: