X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 788A8394FC35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinwoodie.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org Date: Thu, 17 Mar 2022 11:56:25 +0000 From: Adam Dinwoodie To: cygwin AT cygwin DOT com Subject: Re: Using terminator with cygwin Message-ID: <20220317115625.gopucjkijidk46ib@lucy.dinwoodie.org> References: <8f8f5466-adb9-0c95-6c43-dec7d1a4d9e3 AT gmail DOT com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8f8f5466-adb9-0c95-6c43-dec7d1a4d9e3@gmail.com> X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, BODY_8BITS, KAM_DMARC_STATUS, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="iso-8859-1" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 22HBv4l8008480 On Thu, Mar 17, 2022 at 11:54:02AM +0100, zweiund40 wrote: > Hi all, > > I've got a question and I hope u can help there. I guess the question may be > a bit silly for some of u, but, u know, I'm not an expert. I want to use > terminator with cygwin and was excited when I found it as package listed in > the setup.exe, So, I installed it and since there was no terminator.exe to > be found I tried "terminator" on the command line, but it didn't work. > Error-message is rather confusing: > > $ terminator >   File "/usr/bin/terminator", line 119 >     except (KeyError,ValueError), ex: >                                 ^ > SyntaxError: invalid syntax > > > What am I doing wrong? I think I didn't understand something very basal. It looks like terminator hasn't been updated since Cygwin moved from /usr/bin/python being Python2 to Python3, and it doesn't explicitly specify the Python version it needs. This really needs a fix from the terminator maintainer, Mike DePaulo, but while Mike used to be fairly active on these lists, I've not seen him post for several years. Mike: are you there? Are you able to update this package? In the meantime, you might be able to work around this by manually editing /usr/bin/terminator and /usr/bin/remotinator, and changing the first line from this: #!/usr/bin/python to this: #!/usr/bin/python2 That said, it's worth noting the version of terminator that's available from the Cygwin package repositories is almost six years old, and relies on a Python version that has been completely out of support for almost two years, so I wouldn't be vastly surprised if this isn't fixable without a more significant update from the Cygwin package maintainer. HTH Adam -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple