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?

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)
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 at 
http://groups.google.com/group/spyderlib?hl=en.

Reply via email to