wxEntryStart failed on old win98 system

Hi list,

I’ve tried creating a helper app for an old computer that is used as a medical device.
The system runs win98 and has only 31 MB of RAM.

I get the following traceback

Traceback (most recent call last):

File “gprinter.pyw”, line 166, in
File “gprinter.pyw”, line 160, in main
File “wx_core.pyc”, line 7912, in init
File “wx_core.pyc”, line 7487, in _BootstrapApp

SystemError: wxEntryStart failed, unable to initialize wxWidgets!

Is there anything I can do? Can I run wxPython on that specific computer?

Peter

···


There is NO FATE, we are the creators.

Peter Damoc wrote:

Hi list,

I've tried creating a helper app for an old computer that is used as a medical device.
The system runs win98 and has only 31 MB of RAM.

I get the following traceback

Traceback (most recent call last):
  File "gprinter.pyw", line 166, in <module>
  File "gprinter.pyw", line 160, in main
  File "wx\_core.pyc", line 7912, in __init__
  File "wx\_core.pyc", line 7487, in _BootstrapApp
SystemError: wxEntryStart failed, unable to initialize wxWidgets!

Is there anything I can do? Can I run wxPython on that specific computer?

Interesting... This is the first time I've seen that error triggered on a Windows system.

wxPython 2.8.8.1 does run on a win98 machine here, but it is fairly clean and doesn't have any non-stock software installed except for Python and wxPython and a few minor things. Take a look at what else is running, including background tasks, and see if any of it can be eliminated. And be sure you are using the ansi build of wxPython. (The unicode build for win9x relies on a MS hack that is known to be somewhat buggy and incomplete.)

BTW, I sincerely hope that this medical device is not life-critical equipment. I certainly wouldn't want to give that much trust to win98!

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

:slight_smile: I will give ANSI a try. I did used a unicode version.

As for the life-critical… no, it is an investigation machine.

Thanks Robin!

···

On Thu, Aug 28, 2008 at 9:34 PM, Robin Dunn robin@alldunn.com wrote:

Peter Damoc wrote:

Hi list,

I’ve tried creating a helper app for an old computer that is used as a medical device.

The system runs win98 and has only 31 MB of RAM.

I get the following traceback

Traceback (most recent call last):

File “gprinter.pyw”, line 166, in

File “gprinter.pyw”, line 160, in main

File “wx_core.pyc”, line 7912, in init

File “wx_core.pyc”, line 7487, in _BootstrapApp

SystemError: wxEntryStart failed, unable to initialize wxWidgets!

Is there anything I can do? Can I run wxPython on that specific computer?

Interesting… This is the first time I’ve seen that error triggered on a Windows system.

wxPython 2.8.8.1 does run on a win98 machine here, but it is fairly clean and doesn’t have any non-stock software installed except for Python and wxPython and a few minor things. Take a look at what else is running, including background tasks, and see if any of it can be eliminated. And be sure you are using the ansi build of wxPython. (The unicode build for win9x relies on a MS hack that is known to be somewhat buggy and incomplete.)

BTW, I sincerely hope that this medical device is not life-critical equipment. I certainly wouldn’t want to give that much trust to win98!

Robin Dunn

Software Craftsman

http://wxPython.org Java give you jitters? Relax with wxPython!


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


There is NO FATE, we are the creators.

Hi Robin,

How much RAM do you have on that machine? What would be the minimum requirements?

I did an ANSI build and try to run it but I never got to see the frame. The computer stalled and kept writing on the disk. At one point I lost patience and shut it down.

···

On Thu, Aug 28, 2008 at 9:34 PM, Robin Dunn robin@alldunn.com wrote:

Peter Damoc wrote:

Hi list,

I’ve tried creating a helper app for an old computer that is used as a medical device.

The system runs win98 and has only 31 MB of RAM.

I get the following traceback

Traceback (most recent call last):

File “gprinter.pyw”, line 166, in

File “gprinter.pyw”, line 160, in main

File “wx_core.pyc”, line 7912, in init

File “wx_core.pyc”, line 7487, in _BootstrapApp

SystemError: wxEntryStart failed, unable to initialize wxWidgets!

Is there anything I can do? Can I run wxPython on that specific computer?

Interesting… This is the first time I’ve seen that error triggered on a Windows system.

wxPython 2.8.8.1 does run on a win98 machine here, but it is fairly clean and doesn’t have any non-stock software installed except for Python and wxPython and a few minor things. Take a look at what else is running, including background tasks, and see if any of it can be eliminated. And be sure you are using the ansi build of wxPython. (The unicode build for win9x relies on a MS hack that is known to be somewhat buggy and incomplete.)

BTW, I sincerely hope that this medical device is not life-critical equipment. I certainly wouldn’t want to give that much trust to win98!

Robin Dunn

Software Craftsman

http://wxPython.org Java give you jitters? Relax with wxPython!


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


There is NO FATE, we are the creators.

Peter,

Peter Damoc wrote:

Hi Robin,

How much RAM do you have on that machine? What would be the minimum requirements?

I did an ANSI build and try to run it but I never got to see the frame. The computer stalled and kept writing on the disk. At one point I lost patience and shut it down.

I haven't tried with 2.8 but previously I had problems getting my app started on Win98 machine (32MB) and had to work around with calling gc.collect during startup.

I.e. I had a method:
    def MyGcCollect(self, message=u'', done=0, max=0):
        if self.runningPlatform in ['98', 'Me']:
            if done == 1:
                self.dlgPro = wx.ProgressDialog(_(u'Windows 9x - forcing release of resources'),
                           message,
                           max,
                           None,
                           wx.PD_AUTO_HIDE | wx.PD_APP_MODAL)
            self.dlgPro.Update(done, message)
            if done == max:
                self.dlgPro.Destroy()

        mypub.publisher.sendMessage(mypub.statusText, message)
        x = gc.collect()

BTW, the progress dialog was necessary.

Then in my frame loading code I would "sprinkle" calls to it, e.g. after each notebook page being loaded I did:

wx.GetApp().MyGcCollect(_(u'Preparing Notebook - Drink detail page'), 1, 1)

Werner

Thanks for the suggestion Werner but unfortunately the app I created is a VideoCapture App. I doubt that it will work if it is this complicated only to load it.

I’ll just ask my boss to replace the computer with a new one and pause the development till then. :slight_smile:

Best regards,
Peter

···

On Fri, Aug 29, 2008 at 10:45 AM, Werner F. Bruhin werner.bruhin@free.fr wrote:

Peter,

Peter Damoc wrote:

Hi Robin,

How much RAM do you have on that machine? What would be the minimum requirements?

I did an ANSI build and try to run it but I never got to see the frame. The computer stalled and kept writing on the disk. At one point I lost patience and shut it down.

I haven’t tried with 2.8 but previously I had problems getting my app started on Win98 machine (32MB) and had to work around with calling gc.collect during startup.

I.e. I had a method:

def MyGcCollect(self, message=u’', done=0, max=0):

   if self.runningPlatform in ['98', 'Me']:

       if done == 1:

           self.dlgPro = wx.ProgressDialog(_(u'Windows 9x - forcing release of resources'),

                      message,

                      max,

                      None,

                      wx.PD_AUTO_HIDE | wx.PD_APP_MODAL)

       self.dlgPro.Update(done, message)

       if done == max:

           self.dlgPro.Destroy()



   mypub.publisher.sendMessage(mypub.statusText, message)

   x = gc.collect()

BTW, the progress dialog was necessary.

Then in my frame loading code I would “sprinkle” calls to it, e.g. after each notebook page being loaded I did:

wx.GetApp().MyGcCollect(_(u’Preparing Notebook - Drink detail page’), 1, 1)

Werner


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


There is NO FATE, we are the creators.

Peter Damoc wrote:

Hi Robin,

How much RAM do you have on that machine?

64M

What would be the minimum requirements?

That really depends on the OS, what else is running on the machine, and the nature of the application.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!