Exception: No Model_ODB specified. No active model found.

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
MikeITExpert
Posts: 24
Joined: Sat Aug 21, 2021 9:19 pm

Exception: No Model_ODB specified. No active model found.

Post by MikeITExpert » Sat Aug 21, 2021 9:34 pm

I just installed OpenSeesPy and I am getting error running the first example. Below please find the execution log:

Please let me know your valuable comments.

Regards,

Code: Select all

(base) C:\Users\Mike-laptop\Documents\SICO\SA\DampOptimize>pytest --pyargs openseespy.test
=============================================== test session starts ================================================
platform win32 -- Python 3.8.8, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: C:\Users\Mike-laptop\Documents\SICO\SA\DampOptimize
plugins: anyio-2.2.0
collected 18 items

test_base\test_DynAnal_BeamWithQuadElements.py .                                                              [  5%]
test_base\test_EigenAnal_twoStoryFrame1.py .                                                                  [ 11%]
test_base\test_EigenAnal_twoStoryShearFrame7.py .                                                             [ 16%]
test_base\test_EigenFrame.py .                                                                                [ 22%]
test_base\test_EigenFrameExtra.py .                                                                           [ 27%]
test_base\test_ElasticFrame.py .                                                                              [ 33%]
test_base\test_Ex1aCanti2DEQmodif.py .                                                                        [ 38%]
test_base\test_MomentCurvature.py .                                                                           [ 44%]
test_base\test_PinchedCylinder.py .                                                                           [ 50%]
test_base\test_PlanarShearWall.py .                                                                           [ 55%]
test_base\test_PlanarTruss.py .                                                                               [ 61%]
test_base\test_PlanarTrussExtra.py .                                                                          [ 66%]
test_base\test_PortalFrame2d.py .                                                                             [ 72%]
test_base\test_RCFrameGravity.py .                                                                            [ 77%]
test_base\test_RCFramePushover.py .                                                                           [ 83%]
test_base\test_Truss.py .                                                                                     [ 88%]
test_base\test_sanity.py .                                                                                    [ 94%]
test_base\test_sdofTransient.py .                                                                             [100%]

================================================= warnings summary =================================================
..\..\..\..\..\..\ProgramData\Anaconda3\lib\site-packages\pyreadline\py3k_compat.py:8
  C:\ProgramData\Anaconda3\lib\site-packages\pyreadline\py3k_compat.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
    return isinstance(x, collections.Callable)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================== 18 passed, 1 warning in 41.89s ==========================================

(base) C:\Users\Mike-laptop\Documents\SICO\SA\DampOptimize>
(base) C:\Users\Mike-laptop\Documents\SICO\SA\DampOptimize>python wb.py
No Model_ODB specified, trying to get data from the active model.
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\openseespy\postprocessing\Get_Rendering.py", line 280, in plot_model
    nodeArray, elementArray = idbf._getNodesandElements()
  File "C:\ProgramData\Anaconda3\lib\site-packages\openseespy\postprocessing\internal_database_functions.py", line 32, in _getNodesandElements
    ndm = len(ops.nodeCoord(nodeList[0]))
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "wb.py", line 14, in <module>
    opsplt.plot_model()
  File "C:\ProgramData\Anaconda3\lib\site-packages\openseespy\postprocessing\Get_Rendering.py", line 282, in plot_model
    raise Exception("No Model_ODB specified. No active model found.")
Exception: No Model_ODB specified. No active model found.

(base) C:\Users\Mike-laptop\Documents\SICO\SA\DampOptimize>python wb.py
No Model_ODB specified, trying to get data from the active model.
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\openseespy\postprocessing\Get_Rendering.py", line 280, in plot_model
    nodeArray, elementArray = idbf._getNodesandElements()
  File "C:\ProgramData\Anaconda3\lib\site-packages\openseespy\postprocessing\internal_database_functions.py", line 32, in _getNodesandElements
    ndm = len(ops.nodeCoord(nodeList[0]))
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "wb.py", line 14, in <module>
    opsplt.plot_model()
  File "C:\ProgramData\Anaconda3\lib\site-packages\openseespy\postprocessing\Get_Rendering.py", line 282, in plot_model
    raise Exception("No Model_ODB specified. No active model found.")
Exception: No Model_ODB specified. No active model found.

(base) C:\Users\Mike-laptop\Documents\SICO\SA\DampOptimize>

Post Reply