Update of CADET Match

Hey,

wanted to let you know, that CADET Match version 0.8.16 uses a now depreciated function from pymoo version (0.6.0).
The module pymoo.factory does not exist in the most updated version pymoo 0.6.1 which causes CADET Match to crash.
http://archive.pymoo.org/0.6.0/index.html?highlight=factory

Best regards
Nils

Hi Nils,

thank you for bringing that to our attention. I’ll move this into an issue on the CADET-Match GitHub page.

Best wishes,
Ron

Hi Ronald,

I am facing an error while run a CADET match tutorial

ModuleNotFoundError Traceback (most recent call last)
Cell In[31], line 8
5 with open(match_file, ‘w’) as json_file:
6 json.dump(match_config.to_dict(), json_file, indent=‘\t’)
----> 8 match = Match(match_file)
9 match.start_sim()

File ~\AppData\Local\anaconda3\Lib\site-packages\CADETMatch\jupyter.py:19, in Match.init(self, json_path)
17 self.cache.setup_dir(json_path)
18 CADETMatch.match.createDirectories(self.cache, json_path)
—> 19 self.cache.setup(json_path)

File ~\AppData\Local\anaconda3\Lib\site-packages\CADETMatch\cache.py:96, in Cache.setup(self, json_path, load_plugins)
94 if load_plugins:
95 self.scores = plugins.get_plugins(“scores”)
—> 96 self.search = plugins.get_plugins(“search”)
97 self.transforms = plugins.get_plugins(“transform”)
99 if json_path != self.json_path:

File ~\AppData\Local\anaconda3\Lib\site-packages\CADETMatch\plugins.py:26, in get_plugins(directory)
24 temp = {}
25 for path in get_files(plugins):
—> 26 plug = load_plugin(path)
27 if getattr(plug, “plugins”, None) is not None:
28 temp.update(plug.plugins)

File ~\AppData\Local\anaconda3\Lib\site-packages\CADETMatch\plugins.py:13, in load_plugin(path)
11 spec = importlib.util.spec_from_file_location(module, str(path))
12 foo = importlib.util.module_from_spec(spec)
—> 13 spec.loader.exec_module(foo)
14 sys.modules[foo.name] = foo
15 return foo

File :940, in exec_module(self, module)

File :241, in _call_with_frames_removed(f, *args, **kwds)

File ~\AppData\Local\anaconda3\Lib\site-packages\CADETMatch\search\nsga3.py:1
----> 1 import CADETMatch.pymoo_config
4 name = “NSGA3”
7 def run(cache):

File ~\AppData\Local\anaconda3\Lib\site-packages\CADETMatch\pymoo_config.py:14
11 import CADETMatch.util as util
12 import CADETMatch.pop as pop
—> 14 from pymoo.factory import get_reference_directions
15 from pymoo.core.problem import Problem
17 from pymoo.algorithms.moo.nsga3 import NSGA3

ModuleNotFoundError: No module named ‘pymoo.factory’

please help me to resolved this.

Hey,

can you please try installing the previous pymoo version==0.6.0 with
pip install pymoo==0.6.0 or
mamba install pymoo==0.6.0 or
conda install pymoo==0.6.0

Thanks @ronald.jaepel, it is perfectly working now. :sweat_smile: