Print

Print


Hello,

An interesting error, which we haven't come across before (that I
remember).  So one of the new packages in v2 is called AnalysisProfile.
It is meant to be used so that different people working on the same
project can have their own preferences (e.g. with regard to background
color, etc.).  Because it is supposed to be project independent the file
is saved in ~/.ccpn/data/ccpnmr/AnalysisProfile rather than in the project
directory (although there are issues with this, but unrelated to your
problem, I think).  Now to do that it has to create those directories.
It looks like it is failing here, for some reason.  So does
/users/agutmana/.ccpn/data exist already but is not a directory?  If so
what is in it?  Hopefully it can be deleted so you can then do the save.
If it doesn't exist, then I'm puzzled.

Wayne

On Mon, 24 Nov 2008, Aleksandras Gutmanas wrote:

> Dear all,
>
> I am using Analysis 2.0.5. When trying to save a new project, I got the
> following errors. It seems it is trying to find a directory in a wrong
> path. I do have CCPNMR_TO_DIR pointing to /scratch/LOCAL/CCPN2/ccpnmr
> Any advice?
>
> Thanks,
> Aleks
> -----------------------------------------
> Exception in Tkinter callback
> Traceback (most recent call last):
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/python2.4/lib/python2.4/lib-tk/Tkinter.py",
> line 1345, in __call__
>     return self.func(*args)
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/ccpnmr2.0/python/memops/editor/SaveProjectFrame.py",
> line 123, in save
>     createFallback=True, showYesNo=showYesNo)
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/ccpnmr2.0/python/memops/general/Io.py",
> line 311, in saveProject
>     project.saveModified()
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/ccpnmr2.0/python/memops/api/Implementation.py",
> line 16322, in saveModified
>     topObj.save()
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/ccpnmr2.0/python/memops/api/Implementation.py",
> line 5143, in save
>     self.saveTo(repository)
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/ccpnmr2.0/python/memops/api/Implementation.py",
> line 5167, in saveTo
>     XmlIO.save(repository.url.getDataLocation(), self)
>   File
> "/scratch/LOCAL/CCPN2/ccpnmr/ccpnmr2.0/python/memops/format/xml/XmlIO.py",
> line 172, in save
>     os.makedirs(dirName)
>   File "/scratch/LOCAL/CCPN2/ccpnmr/python2.4/lib/python2.4/os.py", line
> 156, in makedirs
>     makedirs(head, mode)
>   File "/scratch/LOCAL/CCPN2/ccpnmr/python2.4/lib/python2.4/os.py", line
> 156, in makedirs
>     makedirs(head, mode)
>   File "/scratch/LOCAL/CCPN2/ccpnmr/python2.4/lib/python2.4/os.py", line
> 159, in makedirs
>     mkdir(name, mode)
> OSError: [Errno 20] Not a directory: '/users/agutmana/.ccpn/data'
>
>