LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2021, 03:34 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Angry termintor. psutil, python 2 and 3


So I remember running Terminator (yet another terminal program) back in 2015 or so on my (at the time) debian system. I'd stumbled onto an old screenshot and decided to try it again. OK: Terminator has Psutil as a dependency.

Right: so I put Psutil in. The slackbuild mentioned python 2 and 3 but the line for python 2 errored out. Right: it's for slackware 14.2 which older and staler than debian oldstable and nobody uses python 2?. So I got it to install for python 3. OK, whatever. Success. Next step.

Then, Terminator itself. It installs itself no muss no fuss, neatly as you please. Great. Into the python 2 directories. Oh. Well, there were no error messages so it must be fine, right?

NOPE: python 2 programs can't call python 3 programs. D'oh!

Can I have a hint please? Either I need to trick (and I'm not feeling tricky today) Psutil into installing as python 2 or trick Terminator into installing into python 3, right?

Thank you.
 
Old 06-27-2021, 04:09 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,081

Rep: Reputation: Disabled
I'd try this fork against python3: https://github.com/gnome-terminator/terminator
 
Old 06-27-2021, 05:06 PM   #3
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
I am using the same "gnome-terminator" Didier suggests, (on -current) with (python3) psutil and (python3) configobj. Works fine for me, at least on current.
 
Old 06-28-2021, 07:48 PM   #4
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 233

Rep: Reputation: 195Reputation: 195
I am using 2.1.1 see info below and all that's needed is to version bump the old slackbuild and tweak to python3 (and possibly a few other very minor changes) - this is running on current.

Code:
PRGNAM="terminator"
VERSION="2.1.1"
HOMEPAGE="https://github.com/gnome-terminator/terminator"
DOWNLOAD="https://github.com/gnome-terminator/terminator/releases/download/v2.1.1/terminator-2.1.1.tar.gz"
MD5SUM="a22e65eae47b34ccd42055725573bbb9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="psutil vte2 configobj"

Last edited by truepatriot76; 06-28-2021 at 07:50 PM.
 
Old 06-28-2021, 07:51 PM   #5
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by truepatriot76 View Post
I am using 2.1.1 see info below and all that's needed is to version bump the old slackbuild and tweak to python3 (and possibly a few other very minor changes) - this is running on current.

Code:
PRGNAM="terminator"
VERSION="2.1.1"
HOMEPAGE="https://github.com/gnome-terminator/terminator"
DOWNLOAD="https://github.com/gnome-terminator/terminator/releases/download/v2.1.1/terminator-2.1.1.tar.gz"
MD5SUM="a22e65eae47b34ccd42055725573bbb9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="psutil vte2 configobj"
vte2 is not required. vte3 (technically 2.91) that ships with Slackware-current works for 2.1.1

Last edited by Skaendo; 06-28-2021 at 07:53 PM.
 
Old 06-28-2021, 09:51 PM   #6
truepatriot76
Member
 
Registered: Apr 2014
Location: California, USA
Distribution: slackware64-current
Posts: 233

Rep: Reputation: 195Reputation: 195
Thanks Skaendo, looks like my info file is out of date.

Last edited by truepatriot76; 06-28-2021 at 10:01 PM.
 
Old 06-28-2021, 10:06 PM   #7
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 655

Original Poster
Blog Entries: 136

Rep: Reputation: 191Reputation: 191
Thank you very much. Will attempt install of that newer version.
 
Old 08-05-2021, 12:58 AM   #8
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Well, after playing around on current for a bit and having to use a terminal for more than just "testing", it turns out that I cannot stand the way that when you type in a command that is longer than the window, you can no longer see part of it as it scrolls off to the left.

If someone knows how to change this behavior, please let me know.

For now I have switched to ROXTerm. Which has been revived by the original author and is really nice as well.
 
Old 08-05-2021, 02:26 AM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,688

Rep: Reputation: Disabled
@Skaendo. You do know you can enter backslash and continue typing the command on the next line, don't you?
Code:
$ echo a b \
> c
a b c
 
Old 08-05-2021, 02:14 PM   #10
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
@Skaendo. You do know you can enter backslash and continue typing the command on the next line, don't you?
Code:
$ echo a b \
> c
a b c
Yea, too much work. It's OK, I would much rather move away from GTK than bow to the GNOME devs. On top of that, ROXTerm has less dependencies. Like none for building on current.

Edit:
Yes ROXTerm uses GTK, but not intrusively like with headerbars and left-scrolling commandlines. It is optional I believe. If or when it does, I will find ssomething else.

Last edited by Skaendo; 08-05-2021 at 02:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python psutil usage snowman81 Programming 1 12-09-2017 08:25 AM
Top Command not Consistent with Psutil result taa5225 Linux - Kernel 7 06-24-2015 04:06 AM
Why the result of TOP is different than psutil taa5225 LinuxQuestions.org Member Intro 1 06-23-2015 06:55 PM
LXer: Python modules you should know: psutil LXer Syndicated Linux News 0 04-26-2012 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration