Today I found, buried deep in the Playground folder on my hard disk, a half finished wxPython implementation of the WineDemo from Gary's ClipsJNI package. I'd completely forgotten about it but I still think it's worth finishing. Not having a good example in Python/pyClips is actually very annoying. Especially if you're, like me, trying to promote Python as a good way to provide a GUI for Clips programs.
So I started going through the code, trying to finish it earlier today but that made me remember why I stopped in the first place. I'm having a lot of trouble converting these two lines of Java into Python:
String evalStr = "(WINES::get-wine-list)";The conversion itself is quite simple but I can't get pyClips to evaluate the function, I keep getting this:
MultifieldValue pv = (MultifieldValue) clips.eval(evalStr);
Traceback (most recent call last):
", line 1, in
File "C:\Python25\lib\site-packages\clips\_clips_wrap.py", line 3430, in Eval
ClipsError: C10: unable to evaluate expression