Openstudio prototype buildings GitHub

asked 2021-10-15 12:34:34 -0600

mfath's avatar

updated 2021-10-16 09:52:30 -0600

Hi,

I am trying to generated the openstudio prototype buildings from the NREL GitHub Library. When I am trying to run the bundles in Git Bash, here is the message that I get:

$ bundle exec rake build
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/resolver.rb:278:in `block in verify_gemfile_dependencies_are_found!': Could not find gem 'minitest-reporters' in locally installed gems. (Bundler::GemNotFound)
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/resolver.rb:253:in `each'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/resolver.rb:253:in `verify_gemfile_dependencies_are_found!'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/resolver.rb:50:in `start'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/resolver.rb:23:in `resolve'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/definition.rb:262:in `resolve'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/definition.rb:483:in `materialize'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/definition.rb:234:in `specs_for'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/runtime.rb:18:in `setup'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler.rb:149:in `setup'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/setup.rb:20:in `block in <top (required)>'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/ui/shell.rb:136:in `with_level'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/ui/shell.rb:88:in `silence'
    from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/setup.rb:20:in `<top (required)>'
    from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from <internal:C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

I would appreciate it if anyone could provide some ideas on how to resolve this and generate the prototype buildings.

Best, Mohammad

edit retag flag offensive close merge delete

Comments

did you try running 'bundle exec rake install' instead of build?

mdahlhausen's avatar mdahlhausen  ( 2021-10-15 14:01:00 -0600 )edit

@mdahlhausen thanks for your response. Yes, and the same error message appeared

Basically the error message is " Could not find gem "minitest-reporters" in locally installed gems"

mfath's avatar mfath  ( 2021-10-15 14:10:09 -0600 )edit

@mdahlhausen I think I managed to solve this but now I am having another issue ( as follows). Would appreciate any thoughts in this regard.

$ bundle exec rake -T rake aborted! LoadError: 126: The specified module could not be found. - C:/openstudio-3.2.1/Ruby/openstudio.so C:/openstudio-3.2.1/Ruby/openstudio.rb:55:in require_relative' C:/openstudio-3.2.1/Ruby/openstudio.rb:55:in<top (required)&gt;'="" c:="" users="" *="" onedrive="" -="" rmi="" documents="" github="" openstudio-standards="" data="" standards="" export_openstudio_libraries.rb:9:in="" `require'="" c:="" users="" mfathollahzadeh="" onedrive="" -="" rmi="" documents="" github="" openstudio-s<="" p="">

mfath's avatar mfath  ( 2021-10-18 09:36:45 -0600 )edit

you need to run 'bundle install' on the repo to get all the correct gem versions if you are trying to run this as a developer. Alternatively, you can use the version of openstudio-standards that is bundled with OpenStudio. In that case, make sure your environment variables include the path to the OS bin\ directory, and run CLI commands with openstudio instead of ruby

mdahlhausen's avatar mdahlhausen  ( 2021-10-18 10:31:10 -0600 )edit