I did what you suggested:
>    sudo apt-get remove trash-cli
>    sudo apt-get install python-setuptools
>    sudo easy_install trash-cli
>   
Then I did the same procedure as before (trash-file everything from a 
directory, trash-file the directory itself, try to restore-trash 
(trash-restore?) one of the files.

A. If I try /restore-trash/:
> (... List of files ...)
> What file to restore [0..53]: 8
> Traceback (most recent call last):
>   File "/usr/bin/restore-trash", line 5, in <module>
>     pkg_resources.run_script('trash-cli==0.2.1', 'restore-trash')
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448, 
> in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1173, 
> in run_script
>     exec script_code in namespace, namespace
>   File "/usr/bin/restore-trash", line 39, in <module>
>     
>   File "build/bdist.linux-i686/egg/trashcli/trash.py", line 322, in 
> restore
>   File "build/bdist.linux-i686/egg/trashcli/filesystem.py", line 30, 
> in move
>   File "/usr/lib/python2.5/shutil.py", line 205, in move
>     copy2(src,dst)
>   File "/usr/lib/python2.5/shutil.py", line 96, in copy2
>     copyfile(src, dst)
>   File "/usr/lib/python2.5/shutil.py", line 52, in copyfile
>     fdst = open(dst, 'wb')
> IOError: [Errno 2] No such file or directory: 
> '/home/christoph/test/pons-ds.mobi'
B. If I try /trash-restore/:
> $ trash-restore
> Traceback (most recent call last):
>   File "/usr/bin/trash-restore", line 5, in <module>
>     pkg_resources.run_script('trash-cli==0.2.1', 'trash-restore')
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448, 
> in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1172, 
> in run_script
>     script_code = compile(script_text,script_filename,'exec')
>   File 
> "/usr/lib/python2.5/site-packages/trash_cli-0.2.1-py2.5.egg/EGG-INFO/scripts/trash-restore",
>  
> line 30
>     class NoWrapFormatter(optparse.IndentedHelpFormatter) :
>         ^
> IndentationError: expected an indented block

Up to you to draw conclusions... I'll be happy to help with further
testing.

By the way, Nautilus cannot really handle the problem either, he just 
returns an error message (instead of proposing to create the original 
directory).

Good luck fixing this!

-- 
restore-trash crashes if the original path does not exist (even if it's in the 
same trash can)
https://bugs.launchpad.net/bugs/310088
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to