我在Ubuntu上成功安装OpenMDAO时遇到问题。 cobyla的一个问题在整个错误消息中似乎很普遍。我已经包含了执行openmdao test和cobyla的setup.py的结果。
$ openmdo test
.........................................E........................................................................................................EE.....E.......EE.E.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................EEEEEEEEEEEEEEEEE
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.examples.simple-0.10.3.2-py2.7.egg/openmdao/examples/simple/test/test_simple.py", line 9, in <module>
from openmdao.examples.simple.optimization_constrained import OptimizationConstrained
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.examples.simple-0.10.3.2-py2.7.egg/openmdao/examples/simple/optimization_constrained.py", line 8, in <module>
from openmdao.lib.drivers.api import SLSQPdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/casehandlers/test/test_csv_post_processor.py", line 14, in <module>
from openmdao.lib.drivers.api import SimpleCaseIterDriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/casehandlers/test/test_csvcase.py", line 13, in <module>
from openmdao.lib.drivers.api import SimpleCaseIterDriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/casehandlers/test/test_dbcaserecorder.py", line 16, in <module>
from openmdao.lib.drivers.api import SimpleCaseIterDriver, CaseIteratorDriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/casehandlers/test/test_json_filevar.py", line 12, in <module>
from openmdao.lib.drivers.api import CONMINdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/casehandlers/test/test_jsonrecorder.py", line 16, in <module>
from openmdao.lib.drivers.api import SensitivityDriver, CaseIteratorDriver, \
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: ImportError (No module named cobyla.cobyla)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/casehandlers/test/test_query.py", line 15, in <module>
from openmdao.lib.drivers.api import FixedPointIterator, SLSQPdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/api.py", line 10, in <module>
from openmdao.lib.drivers.cobyladriver import COBYLAdriver
File "/home/matt/Downloads/openmdao-0.10.3.2/lib/python2.7/site-packages/openmdao.lib-0.10.3.2-py2.7.egg/openmdao/lib/drivers/cobyladriver.py", line 15, in <module>
from cobyla.cobyla import cobyla, closeunit
ImportError: No module named cobyla.cobyla
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_bar3')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_bar3'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_extra')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_extra'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_workflow_MDAO')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_workflow_MDAO'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_broydensolver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_broydensolver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_caseiterdriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_caseiterdriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_caseiterdriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_caseiterdriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_caseiterdriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_caseiterdriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_caseiterdriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_caseiterdriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_cobyladriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_cobyladriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_doedriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_doedriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_opt_conmin')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_opt_conmin'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_opt_newsumtinterruptible')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_opt_newsumtinterruptible'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_slsqpdriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_slsqpdriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_derivatives')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_derivatives'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_driver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_driver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_multidriver')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_multidriver'
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'test_problem_formulation')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/home/matt/Downloads/openmdao-0.10.3.2/local/lib/python2.7/site-packages/nose-1.3.3-py2.7.egg/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_problem_formulation'
----------------------------------------------------------------------
Ran 651 tests in 25.830s
FAILED (errors=24)
我达到了包含cobyla setup.py输出的字符限制。你可以在这里找到它:http://pastebin.com/0nUHnbE8`