Print

Print


Hello,

I think that is because of the earlier exception, so it never finished 
constructing all the objects so got confused in the deletion phase. 
Hopefully it will be ok next time you start it up (and close it down).

Wayne

On Sat, 22 May 2010, Patrick van der Wel wrote:

> Ok, It seems that this was covered in an update I downloaded just now. 
> However, after doing this update from within running Analysis (which I 
> normally don't do, typically using the updateAll command), I got the 
> following error message and had Analysis refusing to quit or save the 
> project:
>
> 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 "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 2023, in saveProject
>    if self.project.activeRepositories:
> AttributeError: 'NoneType' object has no attribute 'activeRepositories'
>
> 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 "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 2539, in quit
>    self.destroy()
>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 2526, in destroy
>    BasePopup.destroy(self)
>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/editor/BasePopup.py", line 234, in destroy
>    memops.gui.BasePopup.BasePopup.destroy(self)
>  File "ccpnmr/ccpnmr2.1/python/memops/gui/BasePopup.py", line 377, in destroy
>  File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1935, in destroy
>    for c in self.children.values(): c.destroy()
>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/PrintWindow.py", line 289, in destroy
>    BasePopup.destroy(self)
>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/editor/BasePopup.py", line 234, in destroy
>    memops.gui.BasePopup.BasePopup.destroy(self)
>  File "ccpnmr/ccpnmr2.1/python/memops/gui/BasePopup.py", line 377, in destroy
>  File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1935, in destroy
>    for c in self.children.values(): c.destroy()
>  File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1935, in destroy
>    for c in self.children.values(): c.destroy()
>  File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1935, in destroy
>    for c in self.children.values(): c.destroy()
>  File "ccpnmr/python2.5/lib/python2.5/lib-tk/Tkinter.py", line 1935, in destroy
>    for c in self.children.values(): c.destroy()
>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/PrintFrame.py", line 417, in destroy
>    self.border_font_list.grid(row=0, column=3, sticky='w')
>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/PrintFrame.py", line 584, in setOptionValues
>    tick_location = tick_placement = None
> AttributeError: PrintFrame instance has no attribute 'border_buttons'
>
>
> On May 22, 2010, at 3:08 PM, Patrick van der Wel wrote:
>
>> I get the following error while trying to print an overlay of 1Ds:
>>
>>>>> 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 "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/Menu.py", line 308, in <lambda>
>>    options_copy['command'] = lambda: func(self.menu_event)
>>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/frames/WindowFrame.py", line 1366, in printWindow
>>    self.topPopup.printWindow(self.windowPane.spectrumWindow)
>>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 2317, in printWindow
>>    popup = self.openPopup('print_window', PrintWindowPopup)
>>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/AnalysisPopup.py", line 1596, in openPopup
>>    transient=transient, *args, **kw)
>>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/PrintWindow.py", line 155, in __init__
>>    BasePopup.__init__(self, parent=parent, title=title, **kw)
>>  File "ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/BasePopup.py", line 94, in __init__
>>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/editor/BasePopup.py", line 85, in __init__
>>    memops.gui.BasePopup.BasePopup.__init__(self, parent, *args, **kw)
>>  File "ccpnmr/ccpnmr2.1/python/memops/gui/BasePopup.py", line 128, in __init__
>>  File "/opt/ccpnmr/ccpnmr2.1/python/ccpnmr/analysis/popups/PrintWindow.py", line 194, in body
>>    setOption=setOption, haveTicks=True)
>>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/PrintFrame.py", line 405, in __init__
>>    tipTexts=tipTexts)
>>  File "/opt/ccpnmr/ccpnmr2.1/python/memops/gui/CheckButtons.py", line 105, in __init__
>>    selected=selected[n])
>> IndexError: list index out of range
>