Reading idf files with Eppy package

asked 2023-08-14 12:53:00 -0600

Ali-Khosravani's avatar

updated 2023-08-14 14:36:25 -0600

I am reading Eppy tutorial at: https://pythonhosted.org/eppy/Main_Tu...

In this tutorial, this code is provided to read an idf file and it should work based on tutorial. But it won't.

Code:

import sys
# pathnameto_eppy = 'c:/eppy'
pathnameto_eppy = '../'
sys.path.append(pathnameto_eppy)

from eppy import modeleditor
from eppy.modeleditor import IDF

iddfile = r"C:\EnergyPlusV22-1-0\Energy+.idd"
fname1 = r"C:\EnergyPlusV22-1-0\ExampleFiles\BasicsFiles\Exercise1A.idf"
epw_name = "C:/EnergyPlusV22-1-0/WeatherData/USA_CO_Golden-NREL.724666_TMY3"

IDF.setiddname(iddfile)
idf1 = IDF(fname1, epw_name)     ***#Error occurs here***

idf1.printidf()

When I run it it gives me this error:

TypeError: make_idd_index() missing 1 required positional argument: 'debug'

I am using EnergyPlus V22-1-0, Eppy 0.5.63, and Python 3.8.8.

Does anyone know what the problem is?

edit retag flag offensive close merge delete