Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

IOError with calling ex_inits in ubuntu

asked 2018-04-16 20:18:43 -0600

afshin67's avatar

updated 2018-04-17 19:05:07 -0600

When in Ubuntu, I call from eppy import ex_inits, I am getting:

---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-11-0960959d82a4> in <module>()
      3 pathnameto_eppy = '../'
      4 sys.path.append(pathnameto_eppy)
----> 5 from eppy import ex_inits #no need to know this code, it just shows the image below

/usr/local/lib/python2.7/dist-packages/eppy/ex_inits.py in <module>()
     14 from IPython.display import Image
     15 from IPython.display import display_pretty, display_html, display_jpeg, display_png, display_json, display_latex, display_svg
---> 16 idfeditor = Image(filename='../docs/images/idf3.png')
     17 material_lists = Image(filename='../docs/images/material_lists.png')
     18 html_snippet1 = Image(filename='../docs/images/html1.png')

/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in __init__(self, data, url, filename, format, embed, width, height, retina, unconfined, metadata)
   1019         self.unconfined = unconfined
   1020         self.metadata = metadata
-> 1021         super(Image, self).__init__(data=data, url=url, filename=filename)
   1022 
   1023         if retina:

/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in __init__(self, data, url, filename)
    611         self.filename = None if filename is None else unicode_type(filename)
    612 
--> 613         self.reload()
    614         self._check_data()
    615 

/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in reload(self)
   1041         """Reload the raw data from file or URL."""
   1042         if self.embed:
-> 1043             super(Image,self).reload()
   1044             if self.retina:
   1045                 self._retina_shape()

/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in reload(self)
    629         """Reload the raw data from file or URL."""
    630         if self.filename is not None:
--> 631             with open(self.filename, self._read_flags) as f:
    632                 self.data = f.read()
    633         elif self.url is not None:

IOError: [Errno 2] No such file or directory: u'../docs/images/idf3.png'
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-04-19 15:56:53 -0600

santoshphilip's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

Stats

Asked: 2018-04-16 20:18:43 -0600

Seen: 108 times

Last updated: Apr 19 '18