Yuk, it seems that there are four occurences of set() in the 1.0.15
release and a dozen in total when you include the patches on the update
server. I assume that since this was the first time it has been noticed
that most people are working with >= Python 2.4 now. Simon has 2.3, is
anyone else still pre-2.4 (and if so what Analysis release are you on)?
Wayne
On Fri, 31 Aug 2007, Wayne Boucher wrote:
> Hello,
>
> That means you must be using < Python 2.4, which is when sets got
> introduced properly. But there is a version of sets in Python 2.3 so I
> have changed the code to use that if the 2.4 version fails (in this one
> spot). If this still fails (either because I got the code wrong or
> because you are on Python 2.2) then let me know. (We should be supporting
> 2.2 still but we are all on 2.4 or 2.5 here so things sometimes creep in
> that should not.)
>
> This is a good time to remind people that very shortly (with the next
> release) we well require people to have Python 2.4 and if you have 2.5
> things will go much more smoothly (with 2.4 you will need to install an
> extra separate package called ElementTree, which is included automatically
> in 2.5).
>
> Wayne
>
> On Fri, 31 Aug 2007, Simon Evans wrote:
>
> > hi,
> >
> > just tried to open the peak list editor after a recent upgrade of analysis
> > to the latest ver..
> >
> > simon
> >
> > I get this traceback:
> >
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> > File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 1345, in __call__
> > return self.func(*args)
> > File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/gui/PulldownMenu.py",
> > line 288, in <lambda>
> > command = lambda n=n: self.setSelectedIndex(n)
> > File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/gui/PulldownMenu.py",
> > line 444, in setSelectedIndex
> > self.callback(selected_index, self.entries[selected_index])
> > File
> > "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
> > line 576, in changeSpec
> > self.updatePeakLists()
> > File
> > "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
> > line 534, in updatePeakLists
> > self.listPulldown.setup(names, index)
> > File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/gui/PulldownMenu.py",
> > line 250, in setup
> > self.setSelectedIndex(selected_index)
> > File "/home/simon/ccpnmr/ccpnmr1.0/python/memops/gui/PulldownMenu.py",
> > line 444, in setSelectedIndex
> > self.callback(selected_index, self.entries[selected_index])
> > File
> > "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
> > line 591, in changeList
> > self.peaksUpdate()
> > File
> > "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/EditPeakListPopup.py",
> > line 800, in peaksUpdate
> > isotopes = getSpectrumIsotopes(spectrum)
> > File
> > "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/ExperimentBasic.py",
> > line 968, in getSpectrumIsotopes
> > isotopeCodes = list(getDataDimIsotopes(dataDim))
> > File
> > "/home/simon/ccpnmr/ccpnmr1.0/python/ccpnmr/analysis/ExperimentBasic.py",
> > line 996, in getDataDimIsotopes
> > isotopes = set()
> > NameError: global name 'set' is not defined
> >
>
|