First time here? Check out the Help page!

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

ResStock sampling issue

asked 1 year ago

mfath's avatar

updated 1 year ago

Hi,

I have tried running the sampling script of ResStock on my computer. However, I am getting the following error:

image description

I have openstudio 3.5.1 and 3.6.0 both installed on my computer and getting the env variable to either of those does not resolve this issue. I also tried to "gem install openstudio" but it raised other errors. Any help is greatly appreciated.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

Does it work if you run the sampling script using the OpenStudio CLI instead of ruby? E.g.:

openstudio resources/run_sampling.rb -p project_national -n 200 -o buildstock.csv

(If the openstudio binary is not in your PATH, use /path/to/openstudio ....)

Preview: (hide)
link

Comments

Thank you @shorowit! It did work with this approach (Thank you!). A follow up question on how to do this with openstudio docker images? Right now, I am using

sudo docker run -it --rm -v "$(pwd)":/data nrel/openstudio:3.6.0 /bin/bash -c "cd /data && ruby resources/run_sampling.rb -p project_national -n 200 -o buildstock.csv"

but still getting the same error as before that no such a file or directory exists!

mfath's avatar mfath  ( 1 year ago )
1

Replace "ruby" with "openstudio" in your docker command?

shorowit's avatar shorowit  ( 1 year ago )

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

1 follower

Stats

Asked: 1 year ago

Seen: 104 times

Last updated: Aug 24 '23