Ubuntu 18.04 OpenLP can not start

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

  • +1  I was fixing to post the exact same traceback.  Ubuntu Mate 18.04, I double checked all dependencies and they are installed. OpenLp icon appears briefly in my dock but the program itself does not load up. If you need further details from me, just let me know.
  • As a follow up I tried version 2.4.4-2 as well and received the same error.  Has Ubuntu changed a dependency location perhaps?
  • It looks like one of the packages that OpenLP depends on changed enough to affect OpenLP, we'll have to see what we can do about it.
  • SOLUTION:

    Open a terminal (console), and type in the following:
    sudo apt install python3-distutils
  • Thank you Raoul!  I was able to do the fix this morning and have everything up and running before early service.  Worked great!
  • Hi tried Raoul's fix sadly it didn't work any other suggestions please
  • 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'


  • edited May 11
    @bogbrush, your issue is different, it's a different error message.

    Having said that, I know about your error too. There's a bug in the VLC integration library, installing VLC should solve your error.

    sudo apt install vlc
Sign In or Register to comment.