OpenLP 2.4.6 is in the Linux Mint 20 repository and installs with no problems
However, it will not open and I get the following error information:
johnny@johnny-linux-mint:~$ openlp
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' from 'distutils' (/usr/lib/python3.8/distutils/__init__.py)
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_openlp_openlp.py.1000.crash'
Original exception was:
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' from 'distutils' (/usr/lib/python3.8/distutils/__init__.py)
johnny@johnny-linux-mint:~$
Comments
I checked and python3 is installed.
I tried to add Software Source PPA add "ppa:open-core/release" and Linux Mint reported "This PPA does not support focal"
Still doesn't work.
I believe we are missing the openlp app in the focal-repo for Mint 20 Linux
Well I found the problem. I must run "sudo apt install python3-distutils"
Wow! Thanks Johnny!! Nice of you to provide the solution to your own problem. That helped me across Mint and other distros ....
Im having similar issue
**OpenLP Bug Report**
Version: {'full': '2.4.6', 'version': '2.4.6', 'build': None}
--- Details of the Exception. ---
first launch of openlp in a new install of Linux Mint
--- Exception Traceback ---
Traceback (most recent call last):
File "/usr/share/openlp/openlp/core/ui/mainwindow.py", line 823, in paintEvent
self.preview_controller.preview_size_changed()
File "/usr/share/openlp/openlp/core/ui/slidecontroller.py", line 619, in preview_size_changed max_height = self.preview_frame.height() -
self.grid.contentsMargins().top() * 2
AttributeError: 'PreviewController' object has no attribute 'grid'
--- System information ---
Platform: Linux-5.15.0-56-generic-x86_64-with-glibc2.35
Desktop: GNOME
--- Library Versions ---
Python: 3.10.6
Qt5: 5.15.3
PyQt5: 5.15.6
QtWebkit: 602.1
SQLAlchemy: 1.4.31
SQLAlchemy Migrate: -
BeautifulSoup: 4.10.0
lxml: 4.8.0
Chardet: 4.0.0
PyEnchant: 3.2.0
Mako: 1.1.3
pyICU: 2.8.1
pyUNO bridge: 7.3
VLC: -