2

I'm trying to copy my /usr/bin/terminator as downloaded on Ubuntu 18 with apt-get install terminator. I do sudo cp /usr/bin/terminator /usr/bin/terminator2. When I run terminator2 though, I get a Python exception thrown:

Traceback (most recent call last):
  File "/usr/bin/t5", line 47, in <module>
    import terminatorlib.optionparse
ImportError: No module named terminatorlib.optionparse

How is the terminatorlib Python module imported/seen by the original /usr/bin/terminator?

For the record, I'm trying to make duplicates of the app for easy Dock access as described here.

2
  • Is terminator a binary? Try to do less /usr/bin/terminator – jugmac00 Nov 15 '19 at 22:32
  • @jugmac00 no it's a Python script. I can open up the script and edit it fine, so I'm just looking how to make the Python code work. – lsimmons Nov 15 '19 at 22:33
1

As you mentioned in the comment above that terminator is a Python script, before running the script, you can set a break point via import pdb;pdb.set_trace().

Start terminator and you will be in an interactive session.

You can then enter import terminatorlib and then terminatorlib.__file__ - this shows you where the package / module is located.

If you prefer a simple solution, just visit this site: https://superuser.com/questions/625445/create-multiple-instance-of-terminator

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.