1

Running Energy Plus EPBunch Error with Python

Hello every one, I ran into an error while I was editing an existing idf file with eppy module in python. I'm changing material properties through a loop but I can't save the edited version of idf file or run it because I ran into this error"int() argument must be a string, a bytes-like object or a number, not 'EpBunch'". Is there any one knows how to solve this?
int() argument must be a string, a bytes-like object or a number, not 'EpBunch'

Mehdiabdolvand's avatar
19
Mehdiabdolvand
asked 2021-01-21 01:30:10 -0500
shorowit's avatar
11.8k
shorowit
updated 2021-01-21 09:51:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I think you would have to show us the code that does this. I would suggest trying to replicate the problem with as few lines of code is the best way for us to help.

JasonGlazer's avatar JasonGlazer (2021-01-21 08:22:25 -0500) edit
add a comment see more comments

1 Answer

1

EpBunch is the python class that eppy defines for representing an energyplus object. My first guess would be that you maybe try to reference an object from another object and you wrote something like:

object_2.Zone_Name = object_1

In that case, you probably want this instead:

object_2.Zone_Name = object_1.Name

Because the attribute value must be a string or an integer, not a Python class instance. But as Jason said, without the code it's difficult to know what is wrong.

Adrien's avatar
404
Adrien
answered 2021-01-22 05:30:02 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments