Ticket #381 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Umit Crash - 'Destination path 'C:\Documents and Settings\ptheo\.umit_backup\.umit' already exists'

Reported by: iasptk@… Owned by: boltrix
Priority: medium Milestone: Umit 1.0
Component: CrashReport Version: current svn
Keywords: user crash Cc: rscarvalho

Description (last modified by luis) (diff)

Crash Report
==========

sys.platform win32
os.name nt
Gtk version 2.16.4
Umit version 1.0RC

Description


Versions:
---
GTK: 2.16.4
PyGTK: 2.14.2
HIGWidgets: 1.0RC
Python: 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Nmap: Nmap version 5.00 ( http://nmap.org )
Operating System: XP 5.1.2600 SP3 Uniprocessor Free
Umit: 1.0RC
UmitCore: 1.0RC
UmitGUI: 1.0RC
---
<class 'shutil.Error'>
Python 2.6.2: C:\Program Files\Umit\umit.exe
Fri Mar 26 18:51:27 2010

A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.

 C:\Program Files\Umit\umit in <module>()


 C:\Program Files\Umit\umit in main(args=[r'C:\Program Files\Umit\umit.exe'])


 C:\Program Files\Umit\umit\core\Paths.pyo in set_umit_conf(self=<umit.core.Paths.Paths object at 0x00D966F0>, base_dir=r'C:\Program Files\Umit')


 C:\Program Files\Umit\umit\merger\nt_appdata.pyo in merge()


 C:\Program Files\Umit\shutil.pyo in move(src=u'C:\\Documents and Settings\\ptheo\\.umit', dst=u'C:\\Documents and Settings\\ptheo\\.umit_backup')

<class 'shutil.Error'>: Destination path 'C:\Documents and Settings\ptheo\.umit_backup\.umit' already exists
    __class__ = <class 'shutil.Error'>
    __delattr__ = <method-wrapper '__delattr__' of Error object at 0x00D86B90>
    __dict__ = {}
    __doc__ = None
    __format__ = <built-in method __format__ of Error object at 0x00D86B90>
    __getattribute__ = <method-wrapper '__getattribute__' of Error object at 0x00D86B90>
    __getitem__ = <method-wrapper '__getitem__' of Error object at 0x00D86B90>
    __getslice__ = <method-wrapper '__getslice__' of Error object at 0x00D86B90>
    __hash__ = <method-wrapper '__hash__' of Error object at 0x00D86B90>
    __init__ = <method-wrapper '__init__' of Error object at 0x00D86B90>
    __module__ = 'shutil'
    __new__ = <built-in method __new__ of type object at 0x1E1D2C90>
    __reduce__ = <built-in method __reduce__ of Error object at 0x00D86B90>
    __reduce_ex__ = <built-in method __reduce_ex__ of Error object at 0x00D86B90>
    __repr__ = <method-wrapper '__repr__' of Error object at 0x00D86B90>
    __setattr__ = <method-wrapper '__setattr__' of Error object at 0x00D86B90>
    __setstate__ = <built-in method __setstate__ of Error object at 0x00D86B90>
    __sizeof__ = <built-in method __sizeof__ of Error object at 0x00D86B90>
    __str__ = <method-wrapper '__str__' of Error object at 0x00D86B90>
    __subclasshook__ = <built-in method __subclasshook__ of type object at 0x00E01FE8>
    __unicode__ = <built-in method __unicode__ of Error object at 0x00D86B90>
    __weakref__ = None
    args = (u"Destination path 'C:\\Documents and Settings\\ptheo\\.umit_backup\\.umit' already exists",)
    errno = None
    filename = None
    message = u"Destination path 'C:\\Documents and Settings\\ptheo\\.umit_backup\\.umit' already exists"
    strerror = None

The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "umit", line 228, in <module>
  File "umit", line 205, in main
  File "umit\core\Paths.pyo", line 184, in set_umit_conf
  File "umit\merger\nt_appdata.pyo", line 54, in merge
  File "shutil.pyo", line 254, in move
Error: Destination path 'C:\Documents and Settings\ptheo\.umit_backup\.umit' already exists


Attachments

patch_381.patch (0.6 kB) - added by luis 3 years ago.

Change History

Changed 3 years ago by luis

  • description modified (diff)
  • milestone changed from Umit 1.0RC to Umit 1.0

Changed 3 years ago by luis

Changed 3 years ago by luis

the patch is just an workaround.

the question is, why there is a .umit_backup before? I'm going test it under Windows but it will hard to see why it was happen.

Changed 3 years ago by luis

Probably the answer is: Umit Network Scanner and UmitWeb together.

Changed 3 years ago by luis

  • cc rscarvalho added

Changed 3 years ago by niteesh

@luis the problem in #380 and #381 are overlapping in some sense . when umit crashes (as in #380) , backup_dir is already made and files stored in it again #380 happens and a one more directory is created in backuppath/oldpath on the third attempt umit crashes as given in #381 Testing was done when solving #380 by me and ganja

Changed 2 years ago by luis

I'm going to apply this patch. Anyway, it is incompatible with #380. I'm changing it a bit

Changed 2 years ago by luis

  • status changed from new to closed
  • resolution set to fixed

Fixed r5877

Note: See TracTickets for help on using tickets.