Unable to get controller object from config name
Trying to get the controller object from the config raises an exception:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-1ada1a8d6c92> in <module>()
----> 1 cfg.get('icebcu2')
/home/coutinho/workspace/ESRF/git/Bliss/bliss/bliss/config/static.pyc in get(self, name)
606 if instance_object is None:
607 func = getattr(m,'create_objects_from_config_node')
--> 608 name2itemsAndname2itemcache = func(self, config_node)
609 if len(name2itemsAndname2itemcache) == 2:
610 name2items = name2itemsAndname2itemcache[0]
/home/coutinho/workspace/ESRF/git/Bliss/bliss/bliss/config/motors/beacon_backend.pyc in create_objects_from_config_node(config, node)
27 controller_class_name, id(controller_config))
28
---> 29 controller_class = get_controller_class(controller_class_name)
30 axes = list()
31 axes_names = list()
/home/coutinho/workspace/ESRF/git/Bliss/bliss/bliss/config/motors/__init__.pyc in get_controller_class(controller_class_name, controller_modules_path)
78 controller_module = _get_module(
79 controller_class_name,
---> 80 controller_modules_path)
81 try:
82 controller_class = getattr(controller_module, controller_class_name)
/home/coutinho/workspace/ESRF/git/Bliss/bliss/bliss/config/motors/__init__.pyc in _get_module(module_name, path_list)
51
52 try:
---> 53 return __import__(module_name, globals(), locals(), [""])
54 finally:
55 sys.path = old_syspath
TypeError: __import__() argument 1 must be string, not None