Print

Print


Hi,

I think I have sorted all that out. The problem was with python 2.5, for 
some reason 2.3 and 2.4 were in fink as the current versions and 2.5 was 
'outdated' I reinstalled it and it now works with tkinter. I have 
analysis 1.0.15 but my .cshrc file was pointing at the wrong path- my 
fault, sorry.  Everything seems to be working ok now as far as I can tell.

cheers,

Jo Claridge

Wayne Boucher wrote:
> Hello,
>
> That's odd.  First of all, it looks like it is picking up 1.0.14 Analysis
> code.  (Do you have 1.0.15 installed?)
>
> I think the error has been caused because that function thinks that it is
> creating an Experiment in "reading" mode (i.e. as if the experiment is
> being read from a file rather than being created in memory) and the serial
> attribute should therefore already exist, but it does not (because when
> you create an experiment in memory the serial is set for you
> automatically).  So the puzzle is why does this function think we are in
> reading mode.  To add to that puzzle it says that it has an error loading
> the Nmr data (so perhaps that is for project 2 it is complaining?).  I
> tried shifting an experiment both into a project with no experiments
> already and an existing experiment already and both worked ok for me.  So
> I'm not sure what has happened in your case.
>
> On the Python 2.3/2.5 front, it looks like your 2.5 has not had Tkinter
> installed, so Mr Python is instead picking it up from 2.3.  And even more
> bizarrely, from the System Python not the Fink one.  This is probably not
> a great idea, but it looks like it is working for you (i.e.  at least not
> crashing), which I find amazing.  If you look in /sw/lib/python2.5 is
> there a lib-tk directory inside that and if so does that have a Tkinter.py
> file?  (It is not necessarily a problem that the System Tkinter.py is
> picked up as long as the Fink _tkinter.so, which should be in
> /sw/lib/python2.5/lib-dynload, is being picked up.  But if Tkinter.py does
> not exist in Fink, or is not being picked up first on the search path, I
> wouldn't expect _tkinter.so to exist in Fink or be picked up first on the
> search path.)  In Fink on my Mac I cannot see that Tkinter is a separate
> install from Python (but it might be, I might not just be finding it).
>
> Wayne
>
> On Thu, 30 Aug 2007, Jo Claridge wrote:
>
>   
>> Hi,
>>
>> I am having some problems with the DataShifter. It will let me transfer molecular systems but not
>> experiments or measurement lists. When I try to transfer an experiment I get this at the command
>> line:
>>
>> ERROR loading xml ccp.nmr.Nmr ccp/nmr/Nmr.xml
>> RCNE SendEventToEventTarget (suom Moved               ) failed, -50
>> Exception in Tkinter callback
>> Traceback (most recent call last):
>>   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/l
>> ib-tk/Tkinter.py", line 1345, in __call__
>>     return self.func(*args)
>>   File "DataShifter.py", line 1661, in <lambda>
>>     button = Tkinter.Button(master, text = shiftLabelText, command = lambda butt
>> onKeyword = buttonKeyword, toProjectNum = shiftCol:self.shiftData(buttonKeyword,
>> toProjectNum), state = buttonState)
>>   File "DataShifter.py", line 1734, in shiftData
>>     copyClass = CopyClass(ccpnObject,toProject,(self.guiParent,self.multiDialog,
>> self.messageReporter,self.dataEntry),verbose = self.verbose)
>>   File "DataShifter.py", line 179, in __init__
>>     self.copyObject()
>>   File "DataShifter.py", line 196, in copyObject
>>     self.toObject = createInProject(self.ccpnObject,self.toProject,copyOrder,sel
>> f.createdObjectDict, self.toProjectResInfo, self.dialogInfo, postponedObjects =
>> self.postponedObjects, ignorePresets = self.ignorePresets, verbose = self.verbos
>> e, ignoreAttrs = self.ignoreAttrs)
>>   File "DataShifter.py", line 535, in createInProject
>>     newObject = copyObject(ccpnObject,toProject,createdObjectDict,postponedLinkD
>> ict,metaInfo,toProjectResInfo,postponedObjects,dialogInfo,ignorePresets = ignore
>> Presets, verbose = verbose, ignoreAttrs = ignoreAttrs)
>>   File "DataShifter.py", line 1461, in copyObject
>>     newObject = createClass(newParent,**keywds)
>>   File "/sw/lib/python2.5/site-packages/ccpnmr/ccpnmr1.0_1.0.14/python/ccp/api/n
>> mr/Nmr.py", line 32472, in __init__
>>     assert dataDict['serial'] > 0, '%s' % dataDict['serial']
>> AssertionError: None
>>
>> the measurement list box only contains [none] even though there are several shift lists in the
>> project.
>>  It seems to be calling python 2.3 sometimes even though analysis is installed in python 2.5 and I
>> am running DataShifter from 2.5 as well.
>>
>> cheers,
>> Jo Claridge
>>
>>     
>
> .
>
>