Hello,
I assume that the old directory still exists and you don't have write
permission. What the loading code does is automatically repoint that
directory (~/.ccpn) to your home directory but only if the existing
directory does not exist. But I see now that that is a bit problematic.
But I'm not sure I'd always want to repoint it to the current ~/.ccpn
(or maybe we do, I'll see what Rasmus and Tim think).
For an immediate fix, at the Analysis Python prompt do:
>>> from memops.api.Implementation import Url
>>> repository = top.project.findFirstRepository(name='generalData')
>>> repository.url = Url(path='/Users/akvile/.ccpn/data')
(assuming that /Users/akvile is the correct home directory for you).
Regards, Wayne
On Fri, 12 Feb 2010, Akvile Gaidelyte wrote:
> Hello everybody,
> I'm getting a following error message in Analysis 2.1.2 while saving a project
> after making changes in the Macros shortcut table. (Everything works fine if I
> just make changes to e.g. assignments):
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1403, in
> __call__
> return self.func(*args)
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1505, in openProject
> if not self.closeProject():
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 2073, in closeProject
> if (not self.checkSaving()):
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 2061, in checkSaving
> if not self.quitSaveProject():
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 1890, in quitSaveProject
> return self.saveFile()
> File "/Applications/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py",
> line 2044, in saveFile
> saveProject(self.project, createFallback=True)
> File "/Applications/ccpnmr/ccpnmr2.1/python/memops/general/Io.py", line 312,
> in saveProject
> createTopObjectFallback(topObject)
> File "/Applications/ccpnmr/ccpnmr2.1/python/memops/general/Io.py", line 102,
> in createTopObjectFallback
> shutil.copy(location, backupLocation)
> File "ccpnmr/python2.5/lib/python2.5/shutil.py", line 81, in copy
> copymode(src, dst)
> File "ccpnmr/python2.5/lib/python2.5/shutil.py", line 60, in copymode
> os.chmod(dst, mode)
> OSError: [Errno 1] Operation not permitted:'/Users/data2structure/.ccpn/data/ccpnmr/AnalysisProfile/NapD+NapD_nmrcourses_2009-08-2
> 7-15-20-26-587_00001.xml.bak'
>
> I have recently moved the project from the old 'data2structure' account to a
> new 'akvile' account and I think the problem is that analysis somehow keeps
> trying to save some data in the old account. I'm working on Mac OS 10.6.
> How can I fix this problem?
>
> Thanks in advance,
> Akvilė
>
> **********************************************************
>
> Akvilė Gaidelytė
> Spronk NMR Consultancy
> Subačiaus gatvė 15-4
> LT-01126, Vilnius
> Vilnius, Lithuania
>
> [log in to unmask]
> www.spronknmr.eu
>
> **********************************************************
>
>
>
|