On Monday 05 November 2007 13:12, Arno Lehmann wrote: > Hi, > > I'm sending this to the list - I suppose you wanted it to go there, too. > > 05.11.2007 10:58,, Rich wrote:: > > On 2007.11.04. 23:02, Arno Lehmann wrote: > > ... > > > >> True. But chances might be better to find such a person if python was > >> left in... if we had it in Bacula (as long as possible - Bacula core > >> development might some day get incompatible with how python is > >> embedded today - ) that might be a starting point for someone who > >> knows python's inside well enough.
There are problems with the embedded Python: 1. Very few people use it. 2. I think most people would prefer Perl 3. It doesn't function perfectly since it is impossible to call certain functions. I forgot the details but it is pretty annoying. 4. The links always print warning messages because they continue for something like 4 versions now to use deprecated code for temp files that has security problems. 5. The linking code is really quite complicated. 6. Python is single threaded, which means that if multiple Bacula threads try to use Python at the same time, I have to block them allowing only one to run at a time. 7. Given the above I would rather not support it -- and no one else is likely to come forward and do so. > >> > >> Anyone of you active on the python developers mailing list? There > >> might be someone around who would support pythons embedding in other > >> hardware looking for a nice project (with not too many support issues > >> currently...) > > > > so i'm a bit puzzled here now. > > python vs labelformat - which will get booted ? :) I don't have any intention of doing away with the basic labelformat. However the vars code will eventually go, because it is mind bogglingly complicated and doesn't really have all the functionality that the user wants. I was hoping to replace it with the Python code, but Python just didn't work out. > > I don't know... there seem to be problems with either of those. > > LabelFormat is hard to understand and inflexible (in comparison with a > python script). Yes, so use Python for the moment. At some point you may have to change, though I hope to provide you a way to get to Python without having it linked in -- since I don't yet have it running, I cannot say what changes it may need to the scripts. > > Python requires more maintenance. > > What we'll end up with I have no idea. Kern knows, perhaps, so I cc'ed > him. Yes, I have a good idea, am working on it, but aside from a dummy little demo (1/20 th of what I need), it is vaporware. > > > i'd really like to get this working on the test system, where i can > > freely debug python, if needed. > > > > i could roll it out with labelformat, but if that breaks in a year (and > > python is kept), i'll have a bigger problem. > > I guess that a final decision will not be made before version 3 is in > the pipeline. Version 3.0, probably won't be out until June of 2008 at the best. I hope it will have a better alternative. Once I am sure I have a better solution, all the old stuff will be removed in the following version -- after announcing it. > > As far as I know, Kern is currently fixing things in the 2.2 versions, > and thinking about major projects to put into version 3. Yes, 2.2.6 is due out in a week or so, and is a pure bug fix. The current 2.2.5 is looking really stable, and most of the bugs I have been fixing for the last few months are long standing one ... > > If, during the initial coding of version 3, problems with LabelFormat > or python develop, a decision will be made. I'm not in a position to > foresee what will happen, or even which option - LabelFormat or python > - is more likely to be dropped, though. Both Python and variables for LabelFormat are likely to remain in in the initial 3.0 release. Unless I have a Python replacement, which is unlikely. Regards, Kern ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users