Hello,
If it is at that bit of code then it means it failed (for some reason) to
do the save. And where it fell over it is trying to clean up after having
failed to do the save, by removing all the files from the new project
directory that it might have meanwhile created (so as to leave everything
as it was before the save was attempted). Now where it fell over the code
says:
try:
removePath(newPath)
except:
pass
and the try/except/pass should mean that it ignores any exception. So I
don't understand why it was not ignored in your case. So it should have
ignored it and then the actual original exception that occurred when the
save failed (which would be good to know) should have been reported,
instead of the exception that was reported.
Also, the exception that it reported is (it seems to me) a bug in one of
the Python system libraries, which is not good! Given the file name it
reported, this is some Mac-specific issue to do with those funny "._" Mac
files.
Wayne
On Fri, 1 Apr 2011, Matthias Huber wrote:
> Hi,
>
> I'm trying to save a copy of my project with the "Save As" function in CCPNMR
> 2.1.5 on mac. I get the error message displayed below. What does that mean?
>
> Have a nice weekend!
> Matthias
>
>
>
>
> markov:~ mahu$ bin/ccpnmr/bin/analysis
> Model read finished. Duration 2.14348387718
> Model validity check skipped
> CcpNmr Analysis Version 2.1. Release 5 (Copyright 2003-2010 CCPN)
> Distribution created Wed Aug 11 17:37:18 2010
>
> If you use CcpNmr Analysis, please quote the following reference:
>
> Wim F. Vranken, Wayne Boucher, Tim J. Stevens, Rasmus H. Fogh, Anne
> Pajon, Miguel Llinas, Eldon L. Ulrich, John L. Markley, John Ionides
> and Ernest D. Laue (2005). The CCPN Data Model for NMR Spectroscopy:
> Development of a Software Pipeline. Proteins 59, 687 - 696.
>
> A copy of the in-program documentation is located at:
> http://www.ccpn.ac.uk/documentation
>
> For how-tos and FAQs visit the CCPN wiki site at:
> http://www.ccpn.ac.uk/wiki
>
> To report bugs use the bug tracker at:
> http://www.ccpn.ac.uk/bugs
>
> For help and support join the mailing list at:
> http://www.ccpn.ac.uk/support
>
> For Python API documentation, tutorials and CCPN web applications visit:
> http://www.ccpn.ac.uk/
>
>>>> Copying directory /home/mahu/ccpn/MyProjectOld to
> /home/mahu/ccpn/MyProjectNew (this might take some time if there are big files)
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/Users/mahu/bin/ccpnmr/python2.6/lib/python2.6/lib-tk/Tkinter.py", line
> 1410, in __call__
> return self.func(*args)
> File
> "/Users/mahu/bin/ccpnmr/ccpnmr2.1/python/memops/editor/SaveProjectFrame.py",
> line 163, in save
> changeDataLocations=changeDataLocations)
> File "/Users/mahu/bin/ccpnmr/ccpnmr2.1/python/memops/general/Io.py", line 422,
> in saveProject
> removePath(newPath)
> File "/Users/mahu/bin/ccpnmr/ccpnmr2.1/python/memops/universal/Io.py", line
> 272, in removePath
> shutil.rmtree(path)
> File "/Users/mahu/bin/ccpnmr/python2.6/lib/python2.6/shutil.py", line 216, in
> rmtree
> rmtree(fullname, ignore_errors, onerror)
> File "/Users/mahu/bin/ccpnmr/python2.6/lib/python2.6/shutil.py", line 216, in
> rmtree
> rmtree(fullname, ignore_errors, onerror)
> File "/Users/mahu/bin/ccpnmr/python2.6/lib/python2.6/shutil.py", line 216, in
> rmtree
> rmtree(fullname, ignore_errors, onerror)
> File "/Users/mahu/bin/ccpnmr/python2.6/lib/python2.6/shutil.py", line 221, in
> rmtree
> onerror(os.remove, fullname, sys.exc_info())
> File "/Users/mahu/bin/ccpnmr/python2.6/lib/python2.6/shutil.py", line 219, in
> rmtree
> os.remove(fullname)
> OSError: [Errno 2] No such file or directory:
> '/home/mahu/ccpn/MyProjectNew/ccp/general/DataLocation/._MyProt+MyProt_mahu_2010-12-14-19-09-50-421_00001.xml'
>
>
|