Unable to run metamorphose in Linux

Help
2008-12-08
2013-04-26
  • I have tried both metamorphose1 and metamorphose2 and they both fail with the same error.

    Traceback (most recent call last):
      File "/home/ruser/local/share/metamorphose/metamorphose.py", line 95, in <module>
        main()
      File "/home/ruser/local/share/metamorphose/metamorphose.py", line 88, in main
        application = BoaApp(0)
      File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7836, in __init__
        self._BootstrapApp()
      File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7433, in _BootstrapApp
        return _core_.PyApp__BootstrapApp(*args, **kwargs)
      File "/home/ruser/local/share/metamorphose/metamorphose.py", line 74, in OnInit
        self.main = main_window.create(None)
      File "/vault/ruser/local/share/metamorphose/main_window.py", line 73, in create
        return main_window(parent)
      File "/vault/ruser/local/share/metamorphose/main_window.py", line 483, in __init__
        Lang = gettext.translation(u'metamorphose', self.localePath(language), languages=[locales[language][1]])
      File "/usr/lib/python2.5/gettext.py", line 469, in translation
        raise IOError(ENOENT, 'No translation file found for domain', domain)
    IOError: [Errno 2] No translation file found for domain: u'metamorphose'

    I believe this is somewhat related to my locale settings.
    $ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

    I'm able to start it one time, I select the language and then it crashes. And fails to start on every other times until I delete the ~/.metamorphose dir.

    $cat  /home/ruser/.metamorphose/language.ini
    en_US

    How can I get this working?

    I googled and tried editing main_window.py line:
    Lang = gettext.translation(u'metamorphose', self.localePath(language), languages=[locales[language][1]])

    But I didn't come up with anything usefull :-/

     
    • ianaré
      ianaré
      2008-12-08

      Thanks for your message.

      How did you install the app ?
      You can try downloading the tar.gz file, extract it and then run like so :

      $ ./metamorphose.py

      let me know if this helps ...

      BTW, my locale:

      ianare@ianare:~$ locale
      LANG=en_US.UTF-8
      LC_CTYPE="en_US.UTF-8"
      LC_NUMERIC="en_US.UTF-8"
      LC_TIME="en_US.UTF-8"
      LC_COLLATE="en_US.UTF-8"
      LC_MONETARY="en_US.UTF-8"
      LC_MESSAGES="en_US.UTF-8"
      LC_PAPER="en_US.UTF-8"
      LC_NAME="en_US.UTF-8"
      LC_ADDRESS="en_US.UTF-8"
      LC_TELEPHONE="en_US.UTF-8"
      LC_MEASUREMENT="en_US.UTF-8"
      LC_IDENTIFICATION="en_US.UTF-8"
      LC_ALL=

      Cheers

       
    • ianaré
      ianaré
      2008-12-08

      Sorry forgot to mention :
      In the step above, do not install the app, run from extracted sources.

       
    • THANKS!
      It's working!
      Both version metamorphose1 and metamorphose2.

      That is really weird!
      Something to do with my custom install path?

      BTW, you have a minor bug in your metamorphose script file, the path is hard coded.
      And in your makefile, you should have an setup script to replace the "DESTDIR=" line with the user provides; and in that case "/usr/" string should be removed from all paths.
      (maybe messing with this was the cause of my problems?)

      Suggestions:
      - drag & drop support

      Thanks for your work in this tool!
      I haven't played much with it yet, but it seems powerfull... although a bit confusing as well (probably only at first).

       
    • ianaré
      ianaré
      2008-12-09

      There are some modifications being made to how the DESDIR is used by the freeBSD porter, so I think in a later release it will be easier to specify custom directories. For now it is better to just copy the folder contents and create a link to metamorphose2.py ...

      metamorphose2 has limited drag and drop in the renamer panel, there are plans to extend this to also allow dropping files in from a file manager.