Hi folks,
I've decided to release 'Food File' as Open Source.
I like that!
I'm currently in the
process of setting up a sourceforge project for it. In the meantime I
would like to invite you all to try the app out and to review my code.
It was written rather hastily, but I think it works quite well.http://www.willmcgugan.com/foodfilesrc.zip
Run fooddbapp.py to launch the app. Required PyOpenGL
(http://pyopengl.sourceforge.net/)I've only tested it on Windows, but in theory it should work with other
platforms. I'll eventualy need some help with producing Mac and Linux
packages.
I tried it on my 'gentoo' linux box using a remote vnc connection.
Here are some results:
1) It doesn't crash on startup, the splash screen appears.
2) It complains a bit about it's display:
user@linux ~/work/FoodFile/osrelease $ python fooddbapp.py
Xlib: extension "GLX" missing on display "192.168.1.225:1.0".
Xlib: extension "GLX" missing on display "192.168.1.225:1.0".
3) That look like a "real" error:
(python:20530): Gtk-CRITICAL **: gtk_tooltips_set_tip: assertion
`widget != NULL' failed
Traceback (most recent call last):
File "./fooddbframe.py", line 40, in OnPaint
wx.StatusBar.OnPaint(self,event)
AttributeError: type object 'StatusBar' has no attribute 'OnPaint'
4) The main windows appeared after some time, selecting an Item on the
"Foods" list causes this message:
Traceback (most recent call last):
File "./nutritionwindow.py", line 766, in OnFoodSelected
food_desc = self.food_window.DisplayNutrition(food)
File "./fooddisplaywindow.py", line 619, in DisplayNutrition
title_template = file("assets\header.htm").read()
IOError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 'assets\\header.htm'
That error occurs everytime a "\\" is used in a filename. While
Windows often works with both "/" and "\\", Linux won't.
After patching a few (3-4) of them a bigger problem appeared:
The program crashed with the message:
"Speicherzugriffsfehler" - That "should" translate to "memory access error".
The crash might be caused by the missing XServer extension - i'm sorry
but I can't check that at the moment.
One question remains here for me: If that is the problem, is OpenGL
absolutely necessary for rendering?
It should usually be available, but there may be cases where it isn't.
Conclusion: It might not be ready for shipping at the moment, but it
looks promising.
Regards,
Harald Stürzebecher
···
2005/11/5, Will McGugan <willmcgugan@gmail.com>: