terminator not working with python3

Bug #1621156 reported by gaurav arora
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Undecided
Unassigned
terminator (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

System config:
--------------------
gauravv7@ubuntu:~$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection Path Priority Status
------------------------------------------------------------
  0 /usr/bin/python3.5 2 auto mode
* 1 /usr/bin/python2.7 1 manual mode
  2 /usr/bin/python3.5 2 manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/bin/python3.5 to provide /usr/bin/python (python) in auto mode
gauravv7@ubuntu:~$ uname -a
Linux ubuntu 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

terminator doesn't even starts when python2.7 is changed to python3.5 on my ubuntu.
During new installation for terminator, an error for Configparser comes up which is some native lib for python2 used in terminator.

Can i expect an official fix soon?

Related branches

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

As a quick (and absolutely proper) fix, Terminator should change the shebang lines from #!/usr/bin/python to #!/usr/bin/python2.

Sooner or later it would be nice to port to python3.

Revision history for this message
gaurav arora (gauravv7) wrote :

Alright, although i know this package is maintained but if i am allowed to rectify this bug, i would love to. Any thoughts on this?

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Stephen: I forgot about this the other day when I pinged you about the release. Could you please address this for 1.91? (Just the #!...python -> #!...python2 change.)

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Committed revision 1655.

Changed in terminator:
status: New → Fix Committed
Changed in terminator (Ubuntu):
status: New → Fix Committed
Changed in terminator:
status: Fix Committed → Fix Released
Revision history for this message
Jon Crall (erotemic) wrote :

I'm not sure how far the Python3 update has gotten, but I've done a bit of work on the issue updating the 1.91-1 repository on my github: https://github.com/Erotemic/terminator2

If there is still Python3 work to be done for the next release, I wouldn't mind putting a bit of my time towards it. I'll need to familiarize myself with the launchpad contribution process though. Is there a site (e.g. github / bitbucket / gitlab) where the main development repository is hosted and that I could submit a merge request to?

Revision history for this message
Bryce Harrington (bryce) wrote :

It looks like debian's 1.91-2 release includes porting to python3:

terminator (1.91-2) experimental; urgency=medium

  [ Ondřej Nový ]
  * d/changelog: Remove trailing whitespaces

  [ Emilio Pozuelo Monfort ]
  * debian/patches/python3.diff: port to Python 3.
  * debian/control, debian/rules: update for Python 3.

 -- Emilio Pozuelo Monfort <email address hidden> Tue, 24 Apr 2018 20:24:15 +0200

Subsequent releases refined this support. It looks like this work was undertaken as part of lp #1662544. Casually poking around just a bit, it seems there have been other independent python3 conversions.

I'm thinking maybe we ought to land one of these efforts. I have been using the Debian python3 work, and would be comfortable landing that to trunk if no one has an objection.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.