0

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.

SKPS
  • 4,888
  • 3
  • 23
  • 55
  • How did you install meld? I'm using the distribution-provided version with python3 (the default), and it works perfectly well... – mara004 Apr 06 '22 at 16:43
  • By regular `sudo`? `sudo apt install meld` – SKPS Apr 06 '22 at 19:15
  • How strange. I can't reproduce your problems, although I'm using exactly the same system. – mara004 Apr 06 '22 at 19:31
  • Can you check that meld's source files, including `conf.py`, are present in `/usr/lib/python3/dist-packages/meld/`? – mara004 Apr 06 '22 at 19:34

0 Answers0