New Doom Forums  
Snowberry error - New Doom Forums
Go Back   New Doom Forums > Source Ports > Doomsday

Reply
 
Thread Tools Display Modes
Old June 4th, 2007, 09:22 AM   #1
KuriKai
Commander Keen
 
KuriKai's Avatar
 
Join Date: Nov 2005
Location: New Zealand
Posts: 1,274
Snowberry error

Quote:
tribunal said...
I have a problem. Downloaded Doomsday and Snowberry
Compiled Doomsday (had to find CMakeLists.txt!)
And.. snowberry doesn't start

Here is its:
Code:
Traceback (most recent call last):
File "./snowberry.py", line 26, in <module>
import language, ui, plugins, sb.profdb
File "/home/kolya/Share/src/deng-1.9.0-beta5.1/snowberry/ui.py", line 698, in <module>
app = SnowberryApp()
File "/home/kolya/Share/src/deng-1.9.0-beta5.1/snowberry/ui.py", line 536, in __init__
wx.App.__init__(self, 0)
File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
self._BootstrapApp()
File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/home/kolya/Share/src/deng-1.9.0-beta5.1/snowberry/ui.py", line 540, in OnInit
self.mainFrame = MainFrame('Snowberry')
File "/home/kolya/Share/src/deng-1.9.0-beta5.1/snowberry/ui.py", line 290, in __init__
self.mainPanel = MainPanel(self.profSplitter)
File "/home/kolya/Share/src/deng-1.9.0-beta5.1/snowberry/ui.py", line 166, in __init__
area.addSpacer()
File "/home/kolya/Share/src/deng-1.9.0-beta5.1/snowberry/sb/widget/area.py", line 197, in addSpacer
self.containerSizer.AddStretchSpacer(self.weight)
AttributeError: 'BoxSizer' object has no attribute 'AddStretchSpacer'
What is wrong?
I also get the same error (snowberry used to work) might be because of a newer version of python?
Code:
File "./snowberry.py", line 26, in <module>
    import language, ui, plugins, sb.profdb
  File "/home/dave/snowberry/ui.py", line 698, in <module>
    app = SnowberryApp()
  File "/home/dave/snowberry/ui.py", line 536, in __init__
    wx.App.__init__(self, 0)
  File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/home/dave/snowberry/ui.py", line 540, in OnInit
    self.mainFrame = MainFrame('Snowberry')
  File "/home/dave/snowberry/ui.py", line 290, in __init__
    self.mainPanel = MainPanel(self.profSplitter)
  File "/home/dave/snowberry/ui.py", line 166, in __init__
    area.addSpacer()
  File "/home/dave/snowberry/sb/widget/area.py", line 197, in addSpacer
    self.containerSizer.AddStretchSpacer(self.weight)
AttributeError: 'BoxSizer' object has no attribute 'AddStretchSpacer'
KuriKai is offline   Reply With Quote
Old July 6th, 2007, 12:05 AM   #2
DeVelaine
Commander Keen
 
Join Date: Feb 2007
Posts: 9
Digging around on my own, because I'm seeing this issue as well, I'm inclined to believe that it has more to do with a change to wxPython instead of to Python itself. Mostly because back in Jan/Feb when I was on my first attempt with getting this software running cleanly from a compile, I was able to get Snowberry to work with no issues. However, I think I may have been using wxPython 2.6. Maybe even 2.4. But downgrading tonight to check that, and digging through the wxPython website, I cannot confirm this one to be the case.
DeVelaine is offline   Reply With Quote
Old July 6th, 2007, 08:06 AM   #3
DaniJ
 
Join Date: Apr 2003
Location: UK
Posts: 4,916
According to the wxWidgets documentation for ver 2.8.4, wxBoxSizer is derived from wxSizer which implements the wxSizer::AddStretchSpacer(int prop) pure virtual method, which is simply an alternative means of calling wxSizer::Add(0, 0, prop). However, looking at the same documentation, there does not appear to be a version of wxSizer::Add() which accepts three parameters!
DaniJ is offline   Reply With Quote
Old July 6th, 2007, 09:42 AM   #4
DeVelaine
Commander Keen
 
Join Date: Feb 2007
Posts: 9
Quote:
Originally Posted by Dani J666
According to the wxWidgets documentation for ver 2.8.4, wxBoxSizer is derived from wxSizer which implements the wxSizer::AddStretchSpacer(int prop) pure virtual method, which is simply an alternative means of calling wxSizer::Add(0, 0, prop). However, looking at the same documentation, there does not appear to be a version of wxSizer::Add() which accepts three parameters!
And therein lies a problem. I know that snowberry worked fine when I had beta5 running before, so I'm going to download that source and check how the area.py file reads for that section. I don't really know Python, so this could be interesting, but I did notice that this error is occurring at this spot:

Code:
        if self.expanding:
            self.containerSizer.AddStretchSpacer(self.weight)
        else:
            self.containerSizer.Add((0, 0), self.weight, self._getLayoutFlags(),
                                    self.border)
        pass
Earlier on, self.expanding is set to True, and the only other place prior to that where it can be something else, it's being set to "expanding", which I can't tell where that was defined. So working from just basic programming knowledge, this almost looks like unless wxBoxSizer gains the AddStretchSpacer function, snowberry's never getting past this point. At least not for Linux. (I can't test the other OS's.)
DeVelaine is offline   Reply With Quote
Old July 6th, 2007, 09:49 AM   #5
DeVelaine
Commander Keen
 
Join Date: Feb 2007
Posts: 9
As a test just after my last post, I commented out everything except this line:

Code:
self.containerSizer.Add((0, 0), self.weight, self._getLayoutFlags(), self.border)
And Snowberry starts right up. A bit of a hack workaround, but it allows Snowberry to run with no visible issues yet. I'll update if anything else appears to go wrong.
DeVelaine is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Version 1.8.5 skyjake Doomsday 41 January 8th, 2005 01:45 PM
Compile Errors PyRo] Doomsday 17 October 6th, 2004 02:45 PM


All times are GMT -7. The time now is 11:15 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
NewDoom.com © 2000-2009 Mindless Games & Entertainment. All Rights Reserved.