On Thu, May 28, 2009 at 12:51:05PM -0400, Jeff Shantz wrote:
Hi all,
First off, let me apologize if my questions have already been covered. I searched the archives and Googled for answers, but didn't come up with much.
No problem, and I am sorry for the delayed reply.
I am developing the YaST education module as part of the Google Summer of Code. I am interested in using the Python bindings, and currently have yast2-python-bindings-2.17.3-1.41 installed on openSUSE 11.1. I created a template using the config-python skeleton, but when I do a make/make install and then try to run my module, I get an error that no such client module is found in the search path (/y2update/clients, /root/.yast2/clients, /usr/share/YaST2/clients). I assume that the problem lies in the fact that a .py file has been installed in /usr/share/YaST2/clients instead of a .ycp file. Do I need to create a .ycp wrapper to load my Python module, or what is the "standard" way?
Yes, the python code has to be a YaST module and you have to create a YCP client wrapper to call it. See the attached files. It looks like the skeleton has some bugs. It might be easier to sort out things on IRC, if it works out across the timezones. Meet us on irc://irc.opensuse.org/yast . For others' reference, here is Jeff's blog about the project: http://www.jeffshantz.com/?cat=3 -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu