I think that these issues with 'super' are related to PyQt v4.4 which was not dealing well with this mecanism. I'll fix this in next release: http://code.google.com/p/spyderlib/issues/detail?id=398
On Oct 2, 9:36 pm, [email protected] wrote: > On Sat, Oct 2, 2010 at 11:05 AM, <[email protected]> wrote: > > On Sat, Oct 2, 2010 at 10:27 AM, Pierre Raybaut > > <[email protected]> wrote: > >> On Oct 2, 3:34 pm, [email protected] wrote: > >>> On Sat, Oct 2, 2010 at 5:38 AM, Pierre Raybaut <[email protected]> > >>> wrote: > >>> > Hi all, > > >>> > I am pleased to announced that Spyder v1.1.7 and Spyder v2.0.0beta4 > >>> > have been released: > > >>> > * Spyder v1.1.7 -- a couple of bug fixes since v1.1.6: > >>> > * Fixed PyQt compatibility issues related to QTreeWidgetItem > >>> > objects construction > >>> > * Attempt to fix Issue 318 / PyQt compatibility issues > >>> > * Fixed PyQt compatibility issue: setProperty's 2nd argument must > >>> > be a QVariant on some PyQt versions > > >>> > * Spyder v2.0.0beta4 -- a lot of bugfixes since beta2, here are > >>> > some > >>> > of the recent changes: > >>> > * new: real-time code analysis (warnings, errors, todos) with a > >>> > customizable timeout (analysis was performed only when saving file) > >>> > * new in variable explorer: multiple data files may be imported at > >>> > once > >>> > * new in source editor: added shortcut to view object in object > >>> > inspector > >>> > * new in source editor: added option to insert automatically > >>> > closing parentheses, brackets and braces > >>> > * new in source editor: added option to unindent automatically > >>> > after 'else', 'elif', 'finally', etc. > >>> > * new in source editor: added option to save all files before > >>> > running script > >>> > * source editor: a lot of bugfixes regarding breakpoints, file > >>> > list management dialog, file selection combo box, ... > >>> > * fix PyQt compatibility issues (same as in v1.1.7 -- see above) > >>> > * and a lot of bugfixes: code completion, outline explorer > >>> > sorting, maximized widgets, etc. > > >>> I tried spyder 2.0.0beta4 with WindowsXP32, py2.5.2 Qt 4.4.1 PyQt 4.4.3 > > >>> The first time I started spyder it crashed. Starting in debug mode > >>> spyder.py -d, I get a long list of: > > >>> Traceback (most recent call last): > >>> File > >>> "C:\Programs\Python25\lib\site-packages\spyderlib\widgets\codeeditor\code > >>> editor.py", line 827, in viewportEvent > >>> return super(CodeEditor, self).viewportEvent(event) > >>> AttributeError: 'super' object has no attribute 'viewportEvent' > > >> That is quite weird because the inheritance diagram is the following: > >> CodeEditor (spyderlib) <-- TextEditBaseWidget (spyderlib) <-- > >> QPlainTextEdit (Qt) <-- QAbstractScrollArea (Qt) > >> The last one (QAbstractScrollArea) has a method named > >> 'viewportEvent'... > > >> Are you sure that every single previous Spyder version has been > >> removed on your machine? > > > I only have one spyderlib directory in site-packages, I have previous > > spyder-xxx directories but they should be on the python path. > > >> If that's not it, could you please try and replace the line: > >> return super(CodeEditor, self).viewportEvent(event) > >> by the following line: > >> TextEditBaseWidget.viewportEvent(self, event) > > > this worked, the debug console doesn't show the error anymore and I > > get the text in the texteditor. > > > now I get a new error: > > Traceback (most recent call last): > > File > > "C:\Programs\Python25\lib\site-packages\spyderlib\widgets\codeeditor\code > > editor.py", line 792, in resizeEvent > > super(CodeEditor, self).resizeEvent(event) > > AttributeError: 'super' object has no attribute 'resizeEvent' > > this exception goes away if I also replace the super call by > > TextEditBaseWidget.resizeEvent(self, event) > > Josef > > > > > > > --- > > After "Loading editor..." I also get : > > > Traceback (most recent call last): > > File "C:\Programs\Python25\lib\site-packages\spyderlib\widgets\editor.py", > > lin > > e 213, in run > > self.analysis_results = check(source_code, filename=self.filename) > > File > > "C:\Programs\Python25\lib\site-packages\spyderlib\widgets\editortools.py" > > , line 55, in check > > pyflakes.messages.UndefinedExport, > > AttributeError: 'module' object has no attribute 'UndefinedExport' > > > (I think I had this one also before) > > > Josef > > >> or, if it still does not work, by the following two lines: > >> from PyQt4.QtGui import QPlainTextEdit > >> QPlainTextEdit.viewportEvent(self, event) > > >> Thanks, > >> Pierre > > >>> The editor doesn't work, I cannot edit, but both ipython and regular > >>> shells work, doing some simple examples and with execfile(...). I > >>> didn't try other things. > > >>> (I'm not completely sure about this one because I had lot's of other > >>> python shells open.) > >>> After shutting down spyder, I still had several stray python processes > >>> open, two of kept doing a very large number of disc reads/writes > >>> according to the windows task managers. This could also be a > >>> consequence of the initial crash. > > >>> Josef > > >>> > Pierre > > >>> > -- > >>> > You received this message because you are subscribed to the Google > >>> > Groups "spyder" group. > >>> > To post to this group, send email to [email protected]. > >>> > To unsubscribe from this group, send email to > >>> > [email protected]. > >>> > For more options, visit this group > >>> > athttp://groups.google.com/group/spyderlib?hl=en. > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "spyder" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group > >> athttp://groups.google.com/group/spyderlib?hl=en. -- You received this message because you are subscribed to the Google Groups "spyder" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
