Error on Mac to run example_1_constrained_layout_optimization.py
When I run example/docs/example_1_constrained_layout_optimization.py it also fails and give me another warning, and no error message:
> python example_1_constrained_layout_optimization.py
Traceback (most recent call last):
File "example_1_constrained_layout_optimization.py", line 94, in <module>
main()
File "example_1_constrained_layout_optimization.py", line 41, in main
driver=EasyScipyOptimizeDriver()
File "/Users/pe/git/TopFarm2/topfarm/_topfarm.py", line 162, in __init__
self.setup()
File "/Users/pe/git/TopFarm2/topfarm/_topfarm.py", line 218, in setup
raise w
File "/Users/pe/git/TopFarm2/topfarm/_topfarm.py", line 210, in setup
Problem.final_setup(self)
File "/Users/pe/anaconda3/envs/topfarm36/lib/python3.6/site-packages/openmdao/core/problem.py", line 627, in final_setup
self.driver._setup_driver(self)
File "/Users/pe/anaconda3/envs/topfarm36/lib/python3.6/site-packages/openmdao/drivers/scipy_optimizer.py", line 169, in _setup_driver
super(ScipyOptimizeDriver, self)._setup_driver(problem)
File "/Users/pe/anaconda3/envs/topfarm36/lib/python3.6/site-packages/openmdao/core/driver.py", line 313, in _setup_driver
desvar_size = np.sum(data['size'] for data in itervalues(self._designvars))
File "/Users/pe/anaconda3/envs/topfarm36/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 1921, in sum
DeprecationWarning, stacklevel=2)
DeprecationWarning: Calling np.sum(generator) is deprecated, and in the future will give a different result. Use np.sum(np.from_iter(generator)) or the python sum builtin instead.
I run with the latest commit: 8e6c706b Same error for python 3.6 and 3.7 on my mac. I do not get the same error on colab, so that might be an issue for mac only.