0
votes

I am trying to use openmdao. I have followed the instructions on the openmdao website, but when I run testflow get messages telling me it has failed. I am running Windows 10. Are there any suggestions as to what I am doing wrong?

I get the following messages:

Traceback (most recent call last):
  File "c:\python27\lib\site-packages\testflo\discover.py", line 130, in _module_iter
    fname, mod = get_module(filename)
  File "c:\python27\lib\site-packages\testflo\util.py", line 320, in get_module
    __import__(modpath)
  File "C:\...\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE.py", line 12, in <module>
    import numpy as np
ImportError: No module named numpy

Traceback (most recent call last):
  File "c:\python27\lib\site-packages\testflo\discover.py", line 130, in _module_iter
    fname, mod = get_module(filename)
  File "c:\python27\lib\site-packages\testflo\util.py", line 320, in get_module
    __import__(modpath)
  File "C:\... \NREL_programs\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE_gradients.py", line 12, in <module>
    from commonse.utilities import check_gradient_unit_test
ImportError: No module named commonse.utilities

The following tests failed:
C:\...\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE.py
C:\...\WISDEM-Turbine_CostsSE-0.1-1-gf5522be\WISDEM-Turbine_CostsSE-f5522be\src\test\test_Turbine_CostsSE_gradients.py

Passed: 0 Failed: 2 Skipped: 0

1

1 Answers

1
votes

ImportError: No module named numpy

It looks like you haven't installed numpy. You'll also need scipy too.