Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131056 - app-mobilephone/bitpim-0.8.12 - "fileview.py" is missing "import shutil"
Summary: app-mobilephone/bitpim-0.8.12 - "fileview.py" is missing "import shutil"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Mobile Phone Developers (INACTIVE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 21:16 UTC by Dima Ryazanov
Modified: 2006-04-26 09:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2006-04-23 21:16:03 UTC
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.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-04-26 09:07:01 UTC
upstream solved this in 0.8.13.
I've just bumped the version.