If I try to save a wallpaper image in BitPim, it crashes: BitPim version: 0.8.12-official An unexpected exception has occurred. Please see the help for details on what to do. Traceback (most recent call last): File "//usr/lib/bitpim-0.8.12/fileview.py", line 343, in OnSave shutil.copyfile(items[0].filename, dlg.GetPath()) NameError: global name 'shutil' is not defined Variables by last 8 frames, innermost last Frame ? in /usr/lib/bitpim-0.8.12/bp.py at line 94 profile = <function profile at 0xb7f140d4> _debug = True _options = [] _args = ['bitpim'] __file__ = '/usr/lib/bitpim-0.8.12/bp.py' _kwargs = Keys [] {} __name__ = '__main__' __doc__ = 'Main entry point to Bitpim\n\nIt invokes BitPim in gui or commandline mode as a Frame run in //usr/lib/bitpim-0.8.12/gui.py at line 633 argv = ['/usr/lib/bitpim-0.8.12/bp.py', 'bitpim'] kwargs = Keys [] {} Frame MainLoop in /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py at line 7720 self = <gui.MainApp; proxy of C++ wxPyApp instance at _18ec3b08_p_wxPyApp> Frame MainLoop in /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py at line 7153 args = (<gui.MainApp; proxy of C++ wxPyApp instance at _18ec3b08_p_wxPyApp>,) kwargs = Keys [] {} Frame OnRightClick in //usr/lib/bitpim-0.8.12/fileview.py at line 238 item = <wallpaper.DisplayItem object at 0xb42c7ecc> self = <wallpaper.WallpaperView; proxy of C++ wxPanel instance at _08b88c08_p_wxPanel> evt = <wx._core.MouseEvent; proxy of C++ wxMouseEvent instance at _7c8afabf_p_wxMouseE menu = <wx._core.Menu; proxy of C++ wxMenu instance at _40bc9408_p_wxMenu> Frame PopupMenu in /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py at line 9790 args = (<aggregatedisplay.Display; proxy of C++ wxScrolledWindow instance at _20e28c08_ kwargs = Keys [] {} Frame OnSave in //usr/lib/bitpim-0.8.12/fileview.py at line 343 items = [<wallpaper.DisplayItem object at 0xb42c7ecc>] ext = '*.jpg' dlg = <wx._windows.FileDialog; proxy of C++ wxFileDialog instance at _6004ed08_p_wxFil self = <wallpaper.WallpaperView; proxy of C++ wxPanel instance at _08b88c08_p_wxPanel> _ = <wx._core.CommandEvent; proxy of C++ wxCommandEvent instance at _f072fabf_p_wxCo Adding "import shutil" at the beginning of the "fileview.py" file seems to fix the problem.
upstream solved this in 0.8.13. I've just bumped the version.