I just installed meld
in Ubuntu 20.04. Upon trying to launch meld
, I got the following error message:
Traceback (most recent call last):
File "/usr/bin/meld", line 79, in <module>
import meld.conf # noqa: E402
ModuleNotFoundError: No module named 'meld.conf'
After this, I came across this solution where the answer suggests changing #!/usr/bin/python
to #!/usr/bin/python2
. Upon changing, I got the following error message:
File "/usr/bin/meld", line 243
SyntaxError: Non-ASCII character '\xe2' in file /usr/bin/meld on line 243, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
The solution for this being given here about the missing line # -*- coding: utf-8 -*-
. Now after this, I am back to original error:
File "/usr/bin/meld", line 81, in <module>
import meld.conf # noqa: E402
ImportError: No module named meld.conf
The only thing I have done is making python3
as the default python
prior to this.