Hi all:

There's a bug filed regarding python metric module naming conflict
with official python modules:

http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=255

For instance, if you created a module called "test" and there is
already an existing python module by that name, then that module will
be loaded first (since it's earlier in the search path) and
metric_init will fail.

I think the fix should be to put the metric modules in their own name
space -- one solution would be to create a subdirectory called
"ganglia" under $libdir/python_modules, create an empty file
$libdir/python_modules/ganglia/__init__.py such that it is treated as
a python package and to store all user-defined python metric scripts
there.  In that case, when importing the module, you would do "import
ganglia.blah" instead.

We would need to modify mod_python.c to accommodate this change though
-- thoughts?

Cheers,

Bernard

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to