kdavies4 / ModelicaRes

Set up, analyze, and plot Modelica simulations in Python
http://kdavies4.github.io/ModelicaRes/
Other
51 stars 20 forks source link

ImportError: No module named _display #30

Closed arnoutaertgeerts closed 9 years ago

arnoutaertgeerts commented 9 years ago

@kdavies4 When I try the new merged version for simulations I get the following importerror:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-5715e1a567d2> in <module>()
----> 1 from modelicares.exps.simulators import dymosim

c:\Users\u0098668\AppData\Local\Continuum\Anaconda\lib\site-packages\modelicares\__init__.py in <module>()
     48 # These will be available directly from modelicares; others must be loaded from
     49 # their submodules.
---> 50 from .simres import SimRes, SimResList, SimResSequence
     51 from .linres import LinRes, LinResList
     52 from .util import (add_arrows, add_hlines, add_vlines, ArrowLine, closeall,

c:\Users\u0098668\AppData\Local\Continuum\Anaconda\lib\site-packages\modelicares\simres.py in <module>()
    581 
    582 # List of file-loading functions for SimRes
--> 583 from ._io.dymola import readsim as dymola
    584 READERS = [('dymola', dymola)]  # SimRes tries these in order.
    585 # All of the keys should be in lowercase.

c:\Users\u0098668\AppData\Local\Continuum\Anaconda\lib\site-packages\modelicares\_io\dymola.py in <module>()
     69 from six import PY2
     70 
---> 71 from .._display import default_display_units
     72 from ..simres import Variable
     73 from ..util import next_nonblank

ImportError: No module named _display

Did you remove this module?

arnoutaertgeerts commented 9 years ago

@kdavies4 Can I just leave this line out?

kdavies4 commented 9 years ago

I added _display.py with commit 3899892.