0

In particular, the very nice join lines for gedit.

I have a suspicion that it all started when I installed Python3.7 and switched to it by default.

Somehow, other things stopped working also, like Rabbit VCS.

Is there a kind of a Python version clash or something? I can't find anything related.

I am on Ubuntu 18.04 LTS.

Output of ls -l /usr/bin/python*:

lrwxrwxrwx 1 root root      24 Jul  2 11:36 /usr/bin/python -> /etc/alternatives/python
lrwxrwxrwx 1 root root       9 Apr 16  2018 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3637096 Apr 15 20:20 /usr/bin/python2.7
lrwxrwxrwx 1 root root      33 Apr 15 20:20 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root      16 Apr 16  2018 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root       9 Oct 25  2018 /usr/bin/python3 -> python3.6
-rwxr-xr-x 2 root root 4526456 Apr 18 04:56 /usr/bin/python3.6
lrwxrwxrwx 1 root root      33 Apr 18 04:56 /usr/bin/python3.6-config -> x86_64-linux-gnu-python3.6-config
-rwxr-xr-x 2 root root 4526456 Apr 18 04:56 /usr/bin/python3.6m
lrwxrwxrwx 1 root root      34 Apr 18 04:56 /usr/bin/python3.6m-config -> x86_64-linux-gnu-python3.6m-config
-rwxr-xr-x 2 root root 4873376 Nov  7  2019 /usr/bin/python3.7
-rwxr-xr-x 2 root root 4873376 Nov  7  2019 /usr/bin/python3.7m
lrwxrwxrwx 1 root root      16 Oct 25  2018 /usr/bin/python3-config -> python3.6-config
lrwxrwxrwx 1 root root      10 Oct 25  2018 /usr/bin/python3m -> python3.6m
lrwxrwxrwx 1 root root      17 Oct 25  2018 /usr/bin/python3m-config -> python3.6m-config
lrwxrwxrwx 1 root root      16 Apr 16  2018 /usr/bin/python-config -> python2.7-config
Rubi Shnol
  • 363
  • 1
  • 3
  • 13
  • 1
    Don't just 'switch' python versions without being smart about it. Did you switch Python 2 to Python 3 completely? Don't do that since 18.04 has a bunch of Python2 dependencies still for scripts, programs, etc. – Thomas Ward Jul 13 '20 at 18:56
  • @ThomasWard I don't know exactly what is meant by "switching completely", but I simply installed Python3.7. update-alternatives --config python seems not to list Python2.7, however. Strange – Rubi Shnol Jul 13 '20 at 19:01
  • @GunnarHjalmarsson Well ... it feels messed up. /usr/bin/python calls python3.7, whereas /usr/bin/python3 calls python3.6. That's not right, right? – Rubi Shnol Jul 13 '20 at 19:24
  • Sounds like you replaced python2 with python 3.7. Best idea is to delete 3.7 and try reinstalling python2. You may need to reinstall. Learn about python virtual environments to use other versions of python 3. – Eagle_Mike Jul 13 '20 at 19:28
  • @Eagle_Mike I do use virtual environments, but was apparently a bit ignorant of possible issues - thought installing python3 wouldn't cause troubles. Do you mean you can't have two pythons alongside in Ubuntu? Would adding python2.7 to update-alternatives not suffice? Actually, I'd appreciate a couple more details in an answer. – Rubi Shnol Jul 13 '20 at 19:48
  • @RubiShnol: Can you please edit your question and include the output from this terminal command: ls -l /usr/bin/python* – Gunnar Hjalmarsson Jul 14 '20 at 00:34
  • @GunnarHjalmarsson Done! – Rubi Shnol Jul 15 '20 at 06:21
  • 2
    @RubiShnol: Hmm.. The question was closed due to the duplicate I pointed at. But a simple way to fix it for you is to change the python symlink directly: sudo rm /usr/bin/python && sudo ln -s python2 /usr/bin/python – Gunnar Hjalmarsson Jul 15 '20 at 13:20
  • @GunnarHjalmarsson Would you mind to help with this? I thought fixing the symlink would remedy that, but nothing changed – Rubi Shnol Jul 15 '20 at 20:08
  • @RubiShnol: Sorry, but that's over my head. You can always try to reinstall, of course: sudo apt install --reinstall rabbitvcs-nautilus – Gunnar Hjalmarsson Jul 15 '20 at 20:32
  • @GunnarHjalmarsson Wow! It worked) – Rubi Shnol Jul 15 '20 at 20:33
  • @RubiShnol: Sometimes you are lucky. :) – Gunnar Hjalmarsson Jul 15 '20 at 20:34

0 Answers0