akipta / appsnap

Automatically exported from code.google.com/p/appsnap
0 stars 0 forks source link

Throws error when opened in Windows Vista (exact error in description) #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I opened the gui up on windows vista x32
2.
3.

What is the expected output? What do you see instead?
I expect to s
ee the appsnap gui
What version of the product are you using? On what operating system?
Latest version, vista home premium x32

Please provide any additional information below.

A fatal exception has occurred. Please report this bug to the AppSnap 
issue tracker: http://code.google.com/p/appsnap/issues/entry. Sorry for 
the inconvenience.

========================
Sun Feb 10 23:29:39 2008
========================

AppSnap = 1.3.3
wxPython = 2.8.7.1
PyCurl = libcurl/7.15.5 OpenSSL/0.9.8c zlib/1.2.3 c-ares/1.3.1
Locale = en_US

>>> whitecolour = wx.Colour( blue=255,green=255,red=255 )
... (255, 255, 255, 255)
>>> lightgreycolour = wx.Colour( blue=240,green=240,red=240 )
... (240, 240, 240, 255)
>>> darkgreycolour = wx.Colour( blue=200,green=200,red=200 )
... (200, 200, 200, 255)
>>> lightredcolour = wx.Colour( blue=180,green=180,red=255 )
... (255, 180, 180, 255)
>>> lightbluecolour = wx.Colour( blue=255,green=200,red=180 )
... (180, 200, 255, 255)
>>> bluecolour = wx.Colour( blue=255 )
... (0, 0, 255, 255)
>>> sectionfont = wx.Font( 
style=wx.FONTSTYLE_NORMAL,pointSize=10,weight=wx.FONTWEIGHT_BOLD,family=wx.FONTF
AMILY_DECORATIVE,face='Verdana' )
... <wx._gdi.Font; proxy of <Swig Object of type 'wxFont *' at 0x24bb388> >
>>> dropdownfont = wx.Font( 
style=wx.FONTSTYLE_NORMAL,pointSize=10,weight=wx.FONTWEIGHT_NORMAL,family=wx.FON
TFAMILY_SWISS,face='Arial' )
... <wx._gdi.Font; proxy of <Swig Object of type 'wxFont *' at 0x24bb3a8> >
>>> filterfont = wx.Font( 
style=wx.FONTSTYLE_NORMAL,pointSize=9,weight=wx.FONTWEIGHT_NORMAL,family=wx.FONT
FAMILY_SWISS,face='Arial' )
... <wx._gdi.Font; proxy of <Swig Object of type 'wxFont *' at 0x24bb398> >
>>> urlfont = wx.Font( 
style=wx.FONTSTYLE_NORMAL,pointSize=6,weight=wx.FONTWEIGHT_BOLD,family=wx.FONTFA
MILY_TELETYPE,face='Courier 
New' )
... <wx._gdi.Font; proxy of <Swig Object of type 'wxFont *' at 0x24bb3b8> >
>>> cancelfont = wx.Font( 
style=wx.FONTSTYLE_NORMAL,pointSize=8,weight=wx.FONTWEIGHT_NORMAL,family=wx.FONT
FAMILY_DEFAULT,underline=True
 )
... <wx._gdi.Font; proxy of <Swig Object of type 'wxFont *' at 0x24bb378> >
>>> tbpanel = wx.Panel( pos=(0, 0),parent=self.objects['frame'] )
... <wx._windows.Panel; proxy of <Swig Object of type 'wxPanel *' at 
0x176ccc8> >
>>> panel = wx.Panel( pos=(100, 1),parent=self.objects['frame'] )
... <wx._windows.Panel; proxy of <Swig Object of type 'wxPanel *' at 
0x176cb70> >
>>> dropdown = wx.Choice( parent=self.objects['panel'],pos=(0, -
1),size=(165, -1) )
... <wx._controls.Choice; proxy of <Swig Object of type 'wxChoice *' at 
0x16f6028> >
>>> filterbox = wx.TextCtrl( parent=self.objects['panel'],pos=(215, 
3),size=(130, 19) )
... <wx._controls.TextCtrl; proxy of <Swig Object of type 'wxTextCtrl *' 
at 0x11b8028> >
>>> bsizer = wx.BoxSizer( orient=wx.VERTICAL )
... <wx._core.BoxSizer; proxy of <Swig Object of type 'wxBoxSizer *' at 
0x1723b40> >
>>> scrollwindow = wx.ScrolledWindow( pos=(0, 
25),parent=self.objects['panel'] )
... <wx._windows.ScrolledWindow; proxy of <Swig Object of type 
'wxScrolledWindow *' at 0x19acb80> >
>>> icon = wx.Icon( type=wx.BITMAP_TYPE_ICO,name='appsnap.ico' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbdf8> >
>>> downloadicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;18' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbe08> >
>>> downloadbmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbde8> >
>>> installicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;15' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbe28> >
>>> installbmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbe18> >
>>> upgradeicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;19' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbe48> >
>>> upgradebmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbe38> >
>>> uninstallicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;32' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbe68> >
>>> uninstallbmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbe58> >
>>> updateicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;35' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbe88> >
>>> updatebmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbe78> >
>>> reloadicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;69' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbea8> >
>>> reloadbmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbe98> >
>>> reportbugicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;13' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbec8> >
>>> reportbugbmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbeb8> >
>>> helpicon = wx.Icon( 
type=wx.BITMAP_TYPE_ICO,desiredHeight=16,desiredWidth=16,name='%systemroot%\syst
em32\shell32.dll;23' )
... <wx._gdi.Icon; proxy of <Swig Object of type 'wxIcon *' at 0x24bbee8> >
>>> helpbmp = wx.EmptyBitmap( width=16,height=16 )
... <wx._gdi.Bitmap; proxy of <Swig Object of type 'wxBitmap *' at 
0x24bbed8> >
>>> toolbar = wx.ToolBar( style=wx.TB_TEXT | 
wx.TB_VERTICAL,parent=self.objects['tbpanel'] )
... <wx._controls.ToolBar; proxy of <Swig Object of type 'wxToolBar *' at 
0x1969ca8> >
>>> statusbar = wx.StatusBar( parent=self.objects['frame'] )
... <wx._windows.StatusBar; proxy of <Swig Object of type 'wxStatusBar *' 
at 0x16f65c8> >
>>> self.objects['frame'].SetSizeHints( minH=590,minW=500 )
... None
>>> self.objects['frame'].SetIcon( icon=self.objects['icon'] )
... None
>>> self.objects['frame'].SetToolBar( toolbar=self.objects['toolbar'] )
... None
>>> self.objects['frame'].SetStatusBar( statBar=self.objects['statusbar'] )
... None
>>> self.objects['tbpanel'].SetBackgroundColour( 
colour=self.objects['whitecolour'] )
... True
>>> self.objects['panel'].SetBackgroundColour( 
colour=self.objects['whitecolour'] )
... True
>>> self.objects['dropdown'].SetFont( font=self.objects['dropdownfont'] )
... True
>>> self.objects['filterbox'].SetFont( font=self.objects['filterfont'] )
... True
>>> self.objects['filterbox'].SetValue( value=u"Filter" )
... None
>>> self.objects['filterbox'].SetForegroundColour( 
colour=self.objects['darkgreycolour'] )
... True
>>> self.objects['scrollwindow'].SetBackgroundColour( 
colour=self.objects['whitecolour'] )
... True
>>> self.objects['scrollwindow'].SetScrollRate( xstep=0,ystep=10 )
... None
>>> self.objects['scrollwindow'].SetSizer( sizer=self.objects['bsizer'] )
... None
>>> self.objects['scrollwindow'].EnableScrolling( 
y_scrolling=True,x_scrolling=False )
... None
>>> self.objects['scrollwindow'].SetFocus( )
... None
>>> self.objects['downloadbmp'].CopyFromIcon( 
icon=self.objects['downloadicon'] )
... True
>>> self.objects['installbmp'].CopyFromIcon( 
icon=self.objects['installicon'] )
... True
>>> self.objects['upgradebmp'].CopyFromIcon( 
icon=self.objects['upgradeicon'] )
... True
>>> self.objects['uninstallbmp'].CopyFromIcon( 
icon=self.objects['uninstallicon'] )
... True
>>> self.objects['updatebmp'].CopyFromIcon( 
icon=self.objects['updateicon'] )
... True
>>> self.objects['reloadbmp'].CopyFromIcon( 
icon=self.objects['reloadicon'] )
... True
>>> self.objects['reportbugbmp'].CopyFromIcon( 
icon=self.objects['reportbugicon'] )
... True
>>> self.objects['helpbmp'].CopyFromIcon( icon=self.objects['helpicon'] )
... True
>>> self.objects['toolbar'].SetBackgroundColour( 
colour=self.objects['whitecolour'] )
... True
>>> self.objects['statusbar'].SetFieldsCount( number=2 )
... None
>>> ['wx.EVT_SIZE', '( ', "self.objects['frame'],", 
'event_object.resize_all )']
>>> ['wx.EVT_CHOICE', '( ', "self.objects['frame'], 
self.objects['dropdown'].GetId(),", 'event_object.category_chosen )']
>>> ['wx.EVT_TEXT', '( ', "self.objects['frame'], 
self.objects['filterbox'].GetId(),", 'event_object.filter_section_list )']
>>> ['wx.EVT_SET_FOCUS', '( ', "self.objects['filterbox'],", 
'event_object.adjust_filter_box_text )']
>>> ['wx.EVT_KILL_FOCUS', '( ', "self.objects['filterbox'],", 
'event_object.adjust_filter_box_text )']

Traceback (most recent call last):
  File "appsnapgui.py", line 4, in <module>
  File "appsnap.pyo", line 45, in appsnap_main
  File ".\appsnaplib\gui.py", line 92, in appsnap_start
  File ".\appsnaplib\makegui.py", line 204, in parse_and_run
  File ".\appsnaplib\guisetup.py", line 357, in setup
  File ".\appsnaplib\config.py", line 98, in __init__
  File ".\appsnaplib\config.py", line 326, in copy_database_to_cache
  File ".\appsnaplib\config.py", line 318, in create_cache_directory
  File "os.pyo", line 165, in makedirs
  File "os.pyo", line 172, in makedirs
WindowsError: [Error 3] The system cannot find the path specified: 
'C:\\ProgramData\\Application Data\\AppSnap'

Original issue reported on code.google.com by rit...@gmail.com on 11 Feb 2008 at 5:31

GoogleCodeExporter commented 9 years ago
Are you running AppSnap as a user with Administrator privileges? If not, the 
cache
directory will not be created.

Original comment by ganesh...@gmail.com on 11 Feb 2008 at 4:16

GoogleCodeExporter commented 9 years ago
I tried running the gui with administrative privileges, but I don't think it 
changed 
anything...

Original comment by rit...@gmail.com on 11 Feb 2008 at 10:23

GoogleCodeExporter commented 9 years ago
This seems to be an issue with Vista's heavy use of junctions (or "reparse 
points").

More info:
http://www.hanselman.com/blog/WindowsVistaJunctionsAndMovingMyDocumentsToAnother
Drive.aspx
http://www.hanselman.com/blog/MoreOnVistaReparsePoints.aspx

In my case, the junctions in C:\ProgramData were pointing to the E:\ drive
(presumably a mount point for the restore partition).  I blame Sony.

To fix, go get Mark Russinovich's "junction" utility:
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
(What would we do without Sysinternals?)

Copy the junction.exe executable somewhere convenient in order to run it (e.g.,
C:\Windows).  You may have to run cmd.exe as Administrator to do this.

cd to C:\ProgramData and run the following:
> junction "Application Data"

Note the output.  Then run this"
> junction /d "Application Data"
> mklink /d "Application Data" C:\ProgramData

That fixed it for me.  Ultimately, AppSnap needs to be altered to simply point 
to
C:\ProgramData\AppSnap, which will make this work-around unnecessary.

Regards,
Aaron Hathaway

Original comment by aaron.ha...@gmail.com on 29 Apr 2008 at 11:06