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.

lsimmons
  • 205

1 Answers1

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