Métamorphose Renamer v2

Overview

Métamorphose 2

Métamorphose is a graphical mass renaming program for files and folders.

These are the command line options:

-h,  --help       Show help screen and exit.
-t,  --timer      Show time taken to complete operations.
-d,  --debug      Show debugging information.
-p=, --path       Specify a directory to load.
-c=, --config     Specify a configuration file to load.
-a=, --auto       Specify automatic mode level to use with configuration file:
                    0 = do not preview items
                    1 = auto preview items
                    2 = auto rename items
                    3 = auto rename items and exit on success
-l=, --language   Override preferred language:
                    en_US
                    fr
                    es
-w=, --wxversion  Specify wxPython Version - use at your own risk!

If no other options are given, you may specify a path to open:

$ metamorphose2 /srv/samba/Windows Likes Spaces

Running from Source

What follows is for developers or those wishing to use the very latest version.

For binary (normal) installs, use the appropriate install file for your system (setup.exe, .deb, etc ...).

Cloning

Cloning the sources from the remote:

git clone https://github.com/metamorphose/metamorphose2.git

Submodules are used, so after cloning don't forget to check them out:

git submodule update --init

Requirements

  • Python 2.6 or 2.7 (not compatible with 3.x)
  • wxPython 2.8 (preferred) or 3.0
  • Python Imaging Library (PIL) 1.1.6 or greater or Pillow 2.3.0 or greater

Running

Create or update the language files:

messages/update_langs.sh

Launch the application:

./metamorphose2

Installing

As root:

make all

Under Linux & freeBSD The makefile should take care of everything for you, it is architecture and distro independant.

Métamorphose will be installed in /usr/share/metamorphose2, you can run it with:

metamorphose2

and access the man page with:

man metamorphose2

If you are using a freedesktop.org compatible window manager (like Gnome or KDE), there should be an entry in Applications -> Accessories.

Removing

Remove the user-specific files here:

  • Windows: C:\Documents and Settings\USERNAME\Application Data\.metamorphose2
  • Linux/BSD: ~/.metamorphose2
  • Mac: /Library/Application Support/.metamorphose2

In Linux & BSD, if you have the sources:

make remove

To remove all user files as well:

make remove remusr=1

Known Issues

Program locks up when 'walking' a large number of files/folders

Not really locked up, but the time it takes to process entries can be long if you are loading many items. During this process the application doesn't refresh, giving the appearance of being locked up but is actually working on stuff.

The time in this state is dependent on your computer, whether the directory is on a local drive or a network share, and of course the number of items.

This will be addressed in a future release.

Unreadable picker items under Linux (possibly other GTK)

There seems to be a bug in wxGTK, the list can become slow and unreadable when dealing with large number of items (over 10 000).

A work around may be possible.

Thumbnails fail

There seems to be some problems with python-imaging under windows. Sometimes the image will not load.
Comments
  • No translation file found

    No translation file found

    In FreeBSD10 receiving the following error.

    File /usr/local/lib/python2.7/gettext.py line 469, in translation raise IOError(ENOENT, 'No Translation file found for domain', domain) IOError: [Error 2] No Translation file found for domain: u'metamorphose2'

    bug 
    opened by javierpra 13
  • ImportError:  cannot import name EXIF

    ImportError: cannot import name EXIF

    On Freebsd when running metamorphose2.py

    Traceback (most recent call last): File "/usr/share/metamorphose2/metamorphose2.py", line 53, in import MainWindow File "/usr/share/metamorphose2/MainWindow/init.py", line 39, in import sorting File "/usr/share/metamorphose2/sorting/init.py", line 25, in from exif import EXIF ImportError: cannot import name EXIF

    $ pkg info|grep exif py27-exif-0.9_1 Python library to extract EXIF metadata from JPEG and TIFF image files.

    $ ls src/exif/ $

    Looks like exif did not get pulled with git. Will try again when internet is available. But a different exif module is installed with pkg. Labelled as bug for now pending further testing.

    bug 
    opened by javierpra 2
  • System agnostic Makefile fixes and cleanups

    System agnostic Makefile fixes and cleanups

    Following https://github.com/NixOS/nixpkgs/pull/17171, I decided to clean up the Makefile upstream.

    Summary:

    1. make PREFIX=/foo/bar should now work for any directory so long as the install path is absolute (NOT: make PREFIX= ../../out). Default is still /usr.
    2. messages/Makefile replaces messages/update_langs.sh for all purposes.
    3. app.py's hardcoded path is adjusted using the PREFIX.
    4. The metamorphose2 shell script path is adjusted using the PREFIX.
    5. metamorphose2.desktop path is adjusted using the PREFIX.
    opened by RamKromberg 1
  • Does not build

    Does not build

    Metamorphose2 is not building due to some missing .html files. According to the Makefile it's just a doc file. Commenting out line 108 of the Makefile bypasses the problem. Tested on Mac OS X Yosemite 10.10.3, Python 2.7.6, wxPython 3.0.2 cocoa.

    opened by javierpra 1
  • PIL not found, but python2-pillow is installed

    PIL not found, but python2-pillow is installed

    Running latest git snapshot on arch linux x64. As far as I know, PIL was replaced by pillow (and there is no PIL package in the repos or the AUR anymore), so I have installed python2-pillow from the official repositories:

    community/python2-pillow 2.7.0-2 [installed]
        Python Imaging Library (PIL) fork. Python2 version.
    

    Yet I'm still getting a PIL not found error message at startup. What could be wrong here?

    opened by Soukyuu 1
  • Removal of FBSD files and better shell support

    Removal of FBSD files and better shell support

    Removed the FBSD related files as they don't seem to be used by anyone and I'm no longer running the OS to test on. Improved cross shell compatibility since some distros are no longer using Bash nor do they necessarily install things in the same locations.

    opened by javierpra 0
  • New version available for Python 3 and wxPython 4.1

    New version available for Python 3 and wxPython 4.1

    I realise this project has been dormant for some time but I have been a long time user of metamorphose2, and many thanks to ianare for developing it and looking after it while he had the time.

    When I switched to Debian Bullseye a year ago, I made the changes needed to run it with Python3.9 and wxPython 4.1 and I have finally found my way round github to share the outcome.

    You can find this version on a fork/branch here.

    The are a lot of changes related to the new Python/wxPython, but it doesn't introduce any new functionality or fix any bugs. I haven't the knowledge to create new deb packages, but you can find the simple steps I took to get it to run on clean Linux and Windows systems in the issues, and the instructions in the readme have been updated.

    Most of my use/testing is on Debian Bullseye using Python 3.9 and wxPython4.1.1, but I expect it will work with any Python 3 and wxPython4. I have run it on Windows 10, as a quick check. Sorry - I don't have access to a Mac. I am not sure how this will co-exist with earlier versions, so setting up for this new version will potentially break the previous one.

    I hope this may help those who have used metamorphose2 in the past and found it as useful as I have.

    opened by timinaust 0
  • Keypresses not detected in saved configurations (Ubuntu Mate 18.04.5 reinstall)

    Keypresses not detected in saved configurations (Ubuntu Mate 18.04.5 reinstall)

    Had to reinstall a machine with UM 18.04.5 from its .iso and, since then, editing rules is largely compromised: when in the Renamer tab, I can click within each box and position the cursor, but keypresses are no longer detected (can't move with arrow keys, can't add or delete characters). Weirder than that, I can define new rules (and - as long as I stay within the new rule - keyboard works as it should; but as soon as I exit the rule, and return after having clicked elsewhere or having added another one, that same new rule cannot be edited anymore).

    However, rename operations, as well as deleting existing rules and other mouse-driven actions, work as intended.

    Presently on metamorphose2_0.9.0.beta-1sav0_all.deb, installed via Gdebi (obviously, no missing dependencies); fun thing is that until the reinstall (when I already was on UM 18.04.5, but coming from an upgrade path from 18.04.2) functioning was nominal.

    Launched the program with -d parameter, no log whatsoever (neither in ~/.metamorphose, nor in /var/log); FWIW, permissions on all .cfg files are standard 644, file ownership is $USER, and iBus/keyboard configurations have no customizations.

    Any suggestion on how to overcome this weirdness is greatly appreciated.

    opened by granric 0
  • Fix #16 locales error with Python 2

    Fix #16 locales error with Python 2

    Simply a workaround to ensure the call to locale.getlocale returns a valid locale. Not sure if this the best solution (not a Python programmer -- yet!) but it works. Have used this patch fine for 2 years now on my own Ubuntu 16.04 based system.

    opened by savoury1 0
  • New Ubuntu PPA with patched build

    New Ubuntu PPA with patched build

    tl;dr -- Metamorphose2 PPA for Ubuntu

    This is not an issue, rather a log in the record here on what appears to be unmaintained software (especially given various other issues about installing). Finally got around to creating a new PPA with a build that patches #16 (credit to Alin Andrei for publishing a version of the software with some needed patches already applied).

    So for all who are trying to get Metamorphose2 working on a Ubuntu-based system, check the PPA for a Xenial build that may well work fine with newer series too (perhaps someone can report on that here, as and when they get to trying the new build on a series newer than Xenial). Soon a forked Github copy of the program, that will have all the patches already applied.

    opened by savoury1 5
  • replace text issue

    replace text issue

    I am using version 0.9.0 of Metamorphose 2 on Ubuntu 18.04.2. I am attempting to rename the cover art jpg file for a series of albums. I am using the replace function, what to replace "cover" and replace with "folder". This appears to be causing some sort of glitch as the preview gives a warning for all matches showing original name of "cover.jpg" and new name of ".jpg", basically removing the file name. If I use some other text in place of "folder", like "somename", it works just fine.

    opened by thwaller 0
One of Best renamer bot with python

?? One of Best renamer bot repo Please Give a ☆ if You like This Open Source and Don't Forget to Follow Me On Github For More Repos And Codes. Scrappe

null 1 Dec 14, 2021
One of the best Telegram renamer bot with many new features

Renamer-Bot I think this repo gonna become one of the best renamer open source ?? . Please Give a ⭐ if you like this repo and also try following me fo

Ns Bots 97 Jan 6, 2023
Telegram File Renamer Bot

RENAMER_BOT Telegram File Renamer Bot Configs TG_BOT_TOKEN - Get bot token from @BotFather API_ID - From my.telegram.org API_HASH - From my.telegram.o

Lntechnical 37 Dec 27, 2022
One of Best renamer bot with python

?? One of Best renamer bot repo Please Give a ☆ if You like This Open Source and Don't Forget to Follow Me On Github For More Repos And Codes. Scrappe

null 1 Dec 14, 2021
A simple bulk file renamer, written in python.

Python File Editor A simple bulk file renamer, written in python. There are two functions, the bulk rename and the bulk file extention change. Bulk Fi

Sam Bloomfield 2 Dec 22, 2021