Error detected while processing function jedi#init_python[11]..26_display_exception:

While using Vim in a Python virtual environment created using the venv module, this error pops up when opening a Python script:

Error detected while processing function jedi#init_python[11]..26_display_exception:
line 19:
Error: jedi-vim failed to initialize Python: jedi#setup_python_imports: ModuleNotFoundError: No module named ‘jedi’ (in function jedi#init_python[4]..26_init_python[27]..jedi#setup_python_imports, li
ne 27). See :messages and/or :JediDebugInfo for more information.

Let’s gather some information about the working environment:

Vim version:


VIM - Vi IMproved 8.1 (2018 May 18, compiled Mar 19 2020 13:12:18)
Included patches: 1-875, 878, 884, 948, 1046, 1365-1368, 1382, 1401

OS information:

cat /etc/os-release
VERSION="19.10 (Eoan Ermine)"
PRETTY_NAME="Ubuntu 19.10"

Current status of the jedi-vim plugin installation:

dpkg -l |grep vim-python-jedi

Package: vim-python-jedi
Version: 0.14.1-1
Priority: optional
Section: universe/python
Source: python-jedi
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Piotr O┼╝arowski
Installed-Size: 117 kB
Depends: python3-jedi, vim-nox | vim-python
Recommends: vim-addon-manager
Download-Size: 24.0 kB
APT-Manual-Installed: yes
APT-Sources: eoan/universe amd64 Packages
Description: autocompletion tool for Python - VIM addon files
Jedi is an autocompletion tool for Python. It works. With and without
syntax errors. Sometimes it sucks, but that's normal in dynamic languages.
But it sucks less than other tools. It understands almost all of the basic
Python syntax elements including many builtins.
`vim-addons install python-jedi` will create all needed symlinks in

Vim plugins using the OS package installer (for Debian/Ubuntu based distros) are handled by the vim-addons utility.

To list all the installed Vim plugins:

vim-addons list


The version provided by Ubuntu for jedi-vim is older than the latest one publicly available. For more details about the releases: jedi-vim releases

Since version 8, Vim has now a native plugins management.

For more details:

:h packages
:h package-create

To install the vanilla version of jedi-vim and have it available at Vim startup:

unzip -d jedi-vim ~/Downloads/
mkdir -p ~/.vim/pack/vendor/start/jedi-vim
cp -rf jedi/vim/* ~/.vim/pack/vendor/start/jedi-vim/

~./vim/pack/vendor/start is the destination folder for any packages that contain plugins for Vim and automatically enabled at startup.

The plugin is now available and ready to be used in Vim.

If Vim is used in a Python virtual environment, the following error pops up:

jedi-vim: Error when loading the jedi python module (module ‘jedi’ has no attribute ‘__version__’). Please ensure that Jedi is installed correctly (see Installation in the README.

Furthermore, the Python code autocompletion feature provided by jedi-vim is not available in Vim.

2 options are available to fix this issue:

Either install the Python module jedi within the virtual environment using pip

Or re-create the virtual environment and enable access to the system site-packages dir ( as follows:

python3 -m venv --system-site-packages my_new_env

Enable this new virtual environment:

cd $HOME/my_new_env

source bin/activate

python -c 'import jedi'

If there is anything wrong with loading this module:

Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘jedi’

This module will be picked up from the version installed using the OS package manager. For Ubuntu, jedi is provided by the python3-jedi package.

LibreOffice Calc: How to format cells for time duration ?

LibreOffice Calc provides different possibilities for formatting cells to include time information.
If you want to use functions such MIN, MAX or AVERAGE on time duration formatted cells, the most appropriate category for time duration is [H]:MM

More details:

The LibreOffice built-in help for current UI language (English (USA)) is not installed on your computer

If you’re using LibreOffice on Ubuntu 19.10, the built-in help is not available by default within the whole application.
In Ubuntu, the built-in help documentation has its dedicated package.
For the English USA language:

apt info libreoffice-help-en-us
Package: libreoffice-help-en-us
Version: 1:6.3.5-0ubuntu0.19.10.1
Priority: optional
Section: doc
Source: libreoffice
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian LibreOffice Maintainers
Installed-Size: 19.8 MB
Provides: libreoffice-help (= 6.3)
Depends: libreoffice-common (= 1:6.3.5-0ubuntu0.19.10.1), libreoffice-l10n-en-us, libreoffice-help-common (= 1:6.3.5-0ubuntu0.19.10.1)
Recommends: libreoffice-core (>> 1:6.3.5)
Replaces: libreoffice-help-common (<< 1:6.1.0~beta1)
Task: ubuntu-desktop-default-languages, lubuntu-live, ubuntu-mate-live, ubuntu-budgie-live
Supported: 9m
Download-Size: 1,371 kB
APT-Sources: eoan-updates/main amd64 Packages
Description: office productivity suite -- English_american help
LibreOffice is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.
This package contains the help of LibreOffice in English_american.

To install it:

apt install libreoffice-help-en-us

The package libreoffice-help-common will also be installed as a required dependency.

Missing documentation in Vim on Suse Linux Enterprise Server 12 SP4

Offline Vim documentation usually comes with the Vim binary itself and can be accessed with the following Vim command:

:h help.txt

Regarding the OS vendor, the documentation is not always automatically installed.

This issue occurred on Suse Linux Enterprise Server 12 SP4.

To check the existing installed Vim related packages:

zypper search -i vim

Only the vim binary is installed and provided by the package vim

What is needed is Vim runtime files.

zypper search vim

vim-data is the package that provides Vim runtime files, including Vim documentation.

To install it:

zypper install vim-data

The documentation is now available in Vim:

:h help.txt

[WARNING] This document format requires a nonempty element

If you are using pandoc for converting markdown files to html files, you can come up with this warning message:

[WARNING] This document format requires a nonempty element

This message pop up while using gfm (GitHub Flavored Markdown) and the version of pandoc provided on Debian stable.(, version 2.2.1)

As a solution, it is suggested to specify some metadata parameters as argument to pandoc command line tool.
Let’s give an example:

file1=$(basename -s .md $file)
file1=${file1/_/ }
pandoc -s -f gfm -t html+raw_html --metadata pagetitle:"${file1^}" -o ${file%md}"$suffix" $file

Despite such setting, the warning message still pop up.
The workaround has been to upgrade pandoc to a newer version (2.5). No need to provide the metadata details anymore to get rid of this warning.

pdflatex not found. Please select a different –pdf-engine or install pdflatex

If you use pandoc to generate a pdf file from a markdown file, you may have this warning message :

pdflatex not found. Please select a different –pdf-engine or install pdflatex

On Ubuntu 19.04, after an initial install using the distribution package manager, no pdf engine is installed.

Using the apt-file utility and searching for pdflatex, texlive-latex-base package includes it.
This package texlive-fonts-recommended will bring additional fonts.

To install it :

apt install textlive-latex-base textlive-fonts-recommended

To test the pdf output :

pandoc -s -o test.pdf


What is java.awt.headless ?

As well detailed in the article below,

Java contains a lot of classes which assume that there is a some sort of display and a keyboard attached. Sometimes, you are writing code to run on a server which does not have these and this is called Headless mode

For some Java-based web applications, graphics can be generated. Either you need to configure the application to use the local X Window server or use the Java Headless option.

Source :

Use case example for headless image processing :

javaldx: Could not find a Java Runtime Environment! on Ubuntu 18.04.1

Running LibreOffice from the shell can display this message :

javaldx: Could not find a Java Runtime Environment!
Please ensure that a JVM and the package libreoffice-java-common
is installed.
If it is already installed then try removing ~/.libreoffice/3/user/config/javasettings_Linux_*.xml
Warning: failed to read path from javaldx
func=xmlSecCheckVersionExt:file=xmlsec.c:line=188:obj=unknown:subj=unknown:error=19:invalid version:mode=abi compatible;expected minor version=2;real minor version=2;expected subminor version=25;real subminor version=26

This solution suggests installing libreoffice-base ubuntu package to fix it. It will also install libreoffice-java-common package while managing all the required dependencies.
Installing it removes this error message permanently On Ubuntu 18.04.1

NB : This solution works as well for Ubuntu 19.04