urbanopt / urbanopt-cli

URBANopt command line interface
https://docs.urbanopt.net/
Other
6 stars 2 forks source link

SegFault running CLI on windows #55

Closed kflemin closed 4 years ago

kflemin commented 4 years ago

Expected behavior

I expect the CLI to run

Actual behavior

ERROR: [11:31:16.270187 ERROR] Did not recognize your adapter specification (Preventing segfault if native JSON is built as MinGW).

To Reproduce

Steps to reproduce the behavior:

  1. clone the repo on windows
  2. rake install
  3. try to use the cli

Additional context

Windows. reported by @joseph-robertson

kflemin commented 4 years ago

@tijcolem any idea how to resolve this? Thanks!

tijcolem commented 4 years ago

I tried to reproduce this issue.

Test Machine Info

OS: Windows Server 2019 Datacenter 
Version: 1809 
Build: 17763.292
Ruby: ruby 2.2.4p230 (2015-12-16 revision 53155) [x64-mingw32]
OpenStudio: 2.9.1.3472e8b799

Steps using git bash for windows

$ cat example_files/run/baseline_scenario/1/in.osw.log
W, [2020-03-02T22:50:30.104845 #3392]  WARN -- : Bundle activated but ENV['BUNDLE_WITHOUT'] is not set
[22:50:32.696843 WARN] No valid weather file defined in either the osm or osw.
[22:50:32.782839 ERROR] Could not set argument 'climate_zone' to value '6A'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:221:in `apply_arguments_2'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:424:in `block in apply_measure'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:414:in `each'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:414:in `apply_measure'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in `block in apply_measures'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `each_index'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in `perform'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in `step'
        C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in `run'
        :/openstudio_cli.rb:975:in `execute'
        :/openstudio_cli.rb:763:in `execute'
        :/openstudio_cli.rb:1746:in `<main>'
        eval:116:in `eval'
        eval:116:in `require_embedded_absolute'
        eval:101:in `block in require'
        eval:95:in `each'
        eval:95:in `require'
        eval:3:in `<main>'
[22:50:32.782839 ERROR] C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message Error assigning argument in measure C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb. Failed with Could not set argument 'climate_zone' to value '6A', 

I'm not able to reproduce the segfault error but I'm hitting a different error related to climate_zone. I think this error would occur across all platforms and not isolated to windows. If I can get a different sample file with different climate zone climate_zone '6A',, or just let me know what it should be set I can try and re-run.

The actual command is a system call to openstudio.

SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/Administrator/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/Administrator/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/Administrator/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw' 2>&1 > "C:/Users/Administrator/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw.log"

I can edit in.osw or replace and try running this again.

kflemin commented 4 years ago

the climate_zone issue is separate and due to the new openstudio-model-articulation version. I'll let you know when that is fixed.

kflemin commented 4 years ago

@tijcolem, the climate zone thing is fixed but the gems are not released yet. you will have to bundle install the cli and bundle exec uo the commands. that should work.

tanushree04 commented 4 years ago

My machine (windows) is getting a similar error for OpenStudio 2.9.1 but not for OpenStudio 2.8.1: [11:33:46.381254 ERROR] C:/urbanopt-example-geojson-project/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message Preventing segfault if native JSON is built as MinGW in eval:77:in `require'

jmarrec commented 4 years ago

Windows 10, consumer. clone repo, and cd into it.

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>type C:\Ruby22-x64\lib\ruby\site_ruby\openstudio.rb
require 'C:\openstudio-2.9.1\Ruby\openstudio.rb'

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>openstudio openstudio_version
2.9.1.3472e8b799C:\Ruby22-x64\lib\ruby\site_ruby

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>ruby --version
ruby 2.2.4p230 (2015-12-16 revision 53155) [x64-mingw32]

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>bundle --version
Bundler version 1.17.3

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>bundle install
[...]

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>rake install
urbanopt-cli 0.2.0.pre2 built to pkg/urbanopt-cli-0.2.0.pre2.gem.
urbanopt-cli (0.2.0.pre2) installed.

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>uo -v
URBANopt CLI version: 0.2.0.pre2

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>uo -h 
=> Works as well

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>uo -m -f example_files/example_project.json

Building sample ScenarioFiles, assigning mapper classes to each feature from example_project.json...
Done

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli>cd example_files

C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli\example_files>uo -r -s baseline_scenario.csv -f example_project.json
C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli\example_files>uo -r -s baseline_scenario.csv -f example_project.json

Simulating features of 'example_project.json' as directed by 'baseline_scenario.csv'...

Using runner options from runner.conf file
Initializing runner with dirname: 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files' and options: {:file_version=>"0.1.0", :max_datapoints=>1000000000, :num_parallel=>2, :run_simulations=>true, :verbose=>false}
@bundle_without_string = ''
needs_config = true
needs_platform = true
needs_update = true
Error running command: 'bundle update'
stdout: The git source `git://github.com/NREL/simplecov.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching git://github.com/NREL/simplecov.git
Fetching gem metadata from http://rubygems.org/..............
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Fetching rake 12.3.1
Installing rake 12.3.1
Fetching public_suffix 3.1.1
Installing public_suffix 3.1.1
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ansi 1.5.0
Installing ansi 1.5.0
Fetching ast 2.4.0
Installing ast 2.4.0
Fetching builder 3.2.4
Installing builder 3.2.4
Using bundler 1.17.3
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching git 1.3.0
Installing git 1.3.0
Fetching json-schema 2.8.1
Installing json-schema 2.8.1
Fetching json_pure 2.2.0
Installing json_pure 2.2.0
Fetching minitest 5.4.3
Installing minitest 5.4.3
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching minitest-reporters 1.2.0
Installing minitest-reporters 1.2.0
Fetching openstudio-workflow 1.3.4
Installing openstudio-workflow 1.3.4
Fetching parallel 1.12.1
Installing parallel 1.12.1
Fetching parser 2.7.0.4
Installing parser 2.7.0.4
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching rainbow 3.0.0
Installing rainbow 3.0.0
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.54.0
Installing rubocop 0.54.0
Fetching rubocop-checkstyle_formatter 0.4.0
Installing rubocop-checkstyle_formatter 0.4.0
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Using simplecov 0.16.1 from git://github.com/NREL/simplecov.git (at master@98c33ff)
Fetching openstudio_measure_tester 0.1.7
Installing openstudio_measure_tester 0.1.7
Fetching openstudio-extension 0.1.6
Installing openstudio-extension 0.1.6
Fetching openstudio-standards 0.2.10
Installing openstudio-standards 0.2.10
Errno::ENOENT: No such file or directory @ rb_sysopen -
C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-standards-0.2.10/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/comstock_ashrae_90_1_2004/data/comstock_ashrae_90_1_2004.ext_ltg.json
An error occurred while installing openstudio-standards (0.2.10), and Bundler
cannot continue.
Make sure that `gem install openstudio-standards -v '0.2.10' --source
'http://rubygems.org/'` succeeds before bundling.

In Gemfile:
  urbanopt-scenario was resolved to 0.2.0.pre1, which depends on
    openstudio-model-articulation was resolved to 0.1.1, which depends on
      openstudio-common-measures was resolved to 0.1.2, which depends on
        openstudio-standards
stderr:
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/ is out of date, regenerating input files
run_dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/' out of date
simulation_dir C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/ is out of date, regenerating input files
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/' out of date
finished_job_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/finished.job' does not exist, simulation dir 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/' out of date
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw.log"
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/2/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/in.osw.log"
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/3/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/4/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/5/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/6/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/7/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/8/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/9/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/10/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/11/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/in.osw.log"
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/12/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
Error running command: 'C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/in.osw' 2>&1 > "C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/run/baseline_scenario/13/in.osw.log"'
stdout: <main>: unexpected return
stderr:
DONE, result = false
Done Running Scenario
Done
jmarrec commented 4 years ago

Getting hit by the very, very long paths of openstudio-standards once again. Extracting the relevant portions of the log.

Errno::ENOENT: No such file or directory @ rb_sysopen -
C:/Users/julien/Software/Others/openstudio_gems/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-standards-0.2.10/lib/openstudio-standards/standards/ashrae_90_1/ashrae_90_1_2004/comstock_ashrae_90_1_2004/data/comstock_ashrae_90_1_2004.ext_ltg.json
An error occurred while installing openstudio-standards (0.2.10), and Bundler
cannot continue.
Make sure that `gem install openstudio-standards -v '0.2.10' --source
'http://rubygems.org/'` succeeds before bundling.

In Gemfile:
  urbanopt-scenario was resolved to 0.2.0.pre1, which depends on
    openstudio-model-articulation was resolved to 0.1.1, which depends on
      openstudio-common-measures was resolved to 0.1.2, which depends on
        openstudio-standards

Will try by moving the repo to C:\urbanopt-cli to avoid long paths issue.

jmarrec commented 4 years ago
C:\Users\julien\Software\Others\openstudio_gems\urbanopt-cli\example_files>cd C:\

C:\>move Users\julien\Software\Others\openstudio_gems\urbanopt-cli .
        1 dir(s) moved.

C:\>cd urbanopt-cli

C:\urbanopt-cli>uo -m -f example_files/example_project.json

Building sample ScenarioFiles, assigning mapper classes to each feature from example_project.json...
Done

C:\urbanopt-cli>cd example_files

C:\urbanopt-cli\example_files>uo -r -s baseline_scenario.csv -f example_project.json

Simulating features of 'example_project.json' as directed by 'baseline_scenario.csv'...

Using runner options from runner.conf file
Initializing runner with dirname: 'C:/urbanopt-cli/example_files' and options: {:file_version=>"0.1.0", :max_datapoints=>1000000000, :num_parallel=>2, :run_simulations=>true, :verbose=>false}
@bundle_without_string = ''
config exists
Gemfile.lock exists
needs_config = true
needs_platform = false
needs_update = true
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/1/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/2/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/2/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/2/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/3/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/3/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/3/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/4/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/4/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/4/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/5/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/5/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/5/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/6/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/6/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/6/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/7/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/7/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/7/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/8/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/8/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/8/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/9/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/9/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/9/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/10/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/10/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/10/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/11/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/11/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/11/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/12/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/12/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/12/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/13/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/13/' out of date
simulation_dir C:/urbanopt-cli/example_files/run/baseline_scenario/13/ is out of date, regenerating input files
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/2/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/2/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/3/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/3/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/4/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/4/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/5/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/5/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/6/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/6/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/7/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/7/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/8/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/8/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/9/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/9/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/10/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/10/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/11/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/11/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/12/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/12/' out of date
finished_job_path 'C:/urbanopt-cli/example_files/run/baseline_scenario/13/finished.job' does not exist, simulation dir 'C:/urbanopt-cli/example_files/run/baseline_scenario/13/' out of date
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw.log"
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/2/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/2/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/3/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/3/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/4/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/4/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/5/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/5/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/6/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/6/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/7/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/7/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/8/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/8/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/9/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/9/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/10/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/10/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/11/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/11/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/12/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/12/in.osw.log"
DONE, result = true
SYSTEM CALL:
C:/openstudio-2.9.1/bin/openstudio.exe --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/13/in.osw' 2>&1 > "C:/urbanopt-cli/example_files/run/baseline_scenario/13/in.osw.log"
DONE, result = true
DONE, result = true
Done Running Scenario
FAILED SIMULATION IDs: 1,2,3,4,5,6,7,8,9,10,11,12,13
Done

Bug reproduced: run\baseline_scenario\1\in.osw.log

Content of run\baseline_scenario\1\in.osw.log:

[openstudio.model.YearDescription] <1> 'UseWeatherFile' is not yet a supported option for YearDescription
[openstudio.model.YearDescription] <1> 'UseWeatherFile' is not yet a supported option for YearDescription
W, [2020-03-13T10:41:04.114281 #14344]  WARN -- : Bundle activated but ENV['BUNDLE_WITHOUT'] is not set
[10:41:06.217611 WARN] No valid weather file defined in either the osm or osw.
asdf, already had it
[10:41:16.594194 WARN] User-defined single floor area was used for calculation of total building floor area
[10:41:16.594194 WARN] Cannot use custom height bar with single floor area method, will not create custom height bar.
[10:41:25.322257 WARN] [openstudio.standards.ConstructionBase] Can only set the u-value of opaque constructions or simple glazing. U 0.48 SHGC 0.40 Dbl Ref-D Clr 6mm/13mm is not opaque or simple glazing.
[10:41:25.322257 WARN] [openstudio.standards.ConstructionBase] Can only set the u-value of opaque constructions or simple glazing. U 0.44 SHGC 0.26 Dbl Ref-B-H Clr 6mm/13mm Air is not opaque or simple glazing.
[10:41:25.333249 WARN] [openstudio.standards.ConstructionBase] Can only set the u-value of opaque constructions or simple glazing. Window_U_0.50_SHGC_0.40_Skylight_Frame_Width_0.430_in is not opaque or simple glazing.
[10:41:25.334278 WARN] [openstudio.weather.Model] Could not find ground temperatures; will use generic temperatures, which will skew results.
[10:41:25.334620 WARN] [openstudio.model.Model] Model has zone with
[10:41:25.334620 WARN] [openstudio.model.Model] Model has zone with
[10:41:25.335650 WARN] [openstudio.model.Model] Model has zone with
[10:41:25.335650 WARN] [openstudio.model.Model] In model_add_typical, num_water_heaters = 1
[10:41:25.552403 WARN] Office WholeBuilding - Md Office C  - Story Ground has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.552403 WARN] Office WholeBuilding - Md Office B end_a - Story Ground has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.560441 WARN] Office WholeBuilding - Md Office A  - Story Ground has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.561470 WARN] Office WholeBuilding - Md Office B end_b - Story Ground has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.579668 WARN] Office WholeBuilding - Md Office B end_b - Story Mid has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.579668 WARN] Office WholeBuilding - Md Office B end_a - Story Mid has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.582667 WARN] Office WholeBuilding - Md Office A  - Story Mid has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.583699 WARN] Office WholeBuilding - Md Office C  - Story Mid has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.585196 WARN] FullServiceRestaurant Kitchen C  - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.585196 WARN] FullServiceRestaurant Kitchen C end_a - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.599511 WARN] FullServiceRestaurant Kitchen A end_a - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.599511 WARN] FullServiceRestaurant Kitchen B end_a - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.600543 WARN] FullServiceRestaurant Kitchen A  - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.600803 WARN] FullServiceRestaurant Dining A  - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.601833 WARN] FullServiceRestaurant Dining C  - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.602245 WARN] FullServiceRestaurant Dining B end_b - Story Mid2 has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.603277 WARN] FullServiceRestaurant Dining B end_b - Story Top has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.619011 WARN] FullServiceRestaurant Dining B end_a - Story Top has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.619710 WARN] FullServiceRestaurant Dining A  - Story Top has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:25.620741 WARN] FullServiceRestaurant Dining C  - Story Top has one or more daylighting controls. Lighting loads from blended space type may affect lighting reduction from daylighting controls.
[10:41:26.382477 ERROR] C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message Preventing segfault if native JSON is built as MinGW in eval:77:in `require'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/urbanopt/geojson.rb:40:in `<top (required)>'
eval:107:in `require'
eval:107:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/measures/urban_geometry_creation/measure.rb:34:in `<top (required)>'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in `load'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in `apply_measure'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in `block in apply_measures'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `each_index'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in `perform'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in `step'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in `run'
:/openstudio_cli.rb:975:in `execute'
:/openstudio_cli.rb:763:in `execute'
:/openstudio_cli.rb:1746:in `<main>'
eval:116:in `eval'
eval:116:in `require_embedded_absolute'
eval:101:in `block in require'
eval:95:in `each'
eval:95:in `require'
eval:3:in `<main>'
[10:41:26.382477 ERROR] Found error in state 'os_measures' with message ["C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message Preventing segfault if native JSON is built as MinGW in eval:77:in `require'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/urbanopt/geojson.rb:40:in `<top (required)>'\neval:107:in `require'\neval:107:in `require'\nC:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/measures/urban_geometry_creation/measure.rb:34:in `<top (required)>'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in `load'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in `apply_measure'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in `block in apply_measures'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `each_index'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in `perform'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in `step'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in `run'\n:/openstudio_cli.rb:975:in `execute'\n:/openstudio_cli.rb:763:in `execute'\n:/openstudio_cli.rb:1746:in `<main>'\neval:116:in `eval'\neval:116:in `require_embedded_absolute'\neval:101:in `block in require'\neval:95:in `each'\neval:95:in `require'\neval:3:in `<main>':C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:639:in `rescue in apply_measure'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:645:in `apply_measure'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in `block in apply_measures'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `each_index'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in `perform'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in `step'\nC:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in `run'\n:/openstudio_cli.rb:975:in `execute'\n:/openstudio_cli.rb:763:in `execute'\n:/openstudio_cli.rb:1746:in `<main>'\neval:116:in `eval'\neval:116:in `require_embedded_absolute'\neval:101:in `block in require'\neval:95:in `each'\neval:95:in `require'\neval:3:in `<main>'"]}
jmarrec commented 4 years ago

https://github.com/urbanopt/urbanopt-geojson-gem/blob/2e937041b96f8af3934ceee0b6ddf16225270505/lib/urbanopt/geojson.rb#L40

require 'urbanopt/geojson/extension'

I suppose there's a compilation part to that one? If so, that would explain the crash... And it should be added to the list of native gems to be added in OpenStudio 3.

Edit: No, there's no compiled part.

jmarrec commented 4 years ago

I think I may have found a lead:

https://github.com/urbanopt/urbanopt-geojson-gem/blob/2e937041b96f8af3934ceee0b6ddf16225270505/lib/measures/urban_geometry_creation_zoning/measure.rb#L34

require 'json'

jmarrec commented 4 years ago

Use git bash (for grep and sed): => replace with require 'json/pure'

julien@~$ cd C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/
julien@lib (develop *%=)$ grep -r "require 'json'"
measures/urban_geometry_creation/measure.rb:31:require 'json'
measures/urban_geometry_creation_zoning/measure.rb:34:require 'json'
urbanopt/geojson/geo_file.rb:36:require 'json'
urbanopt/geojson/mapper_classes.rb:32:require 'json'
urbanopt/geojson/update_areas.rb:32:require 'json'
urbanopt/geojson/validate_geojson.rb:31:require 'json'

# Replace all by json/pure
julien@lib (develop *%=)$ find . -name "*.rb" -exec sed -i "s/require 'json'/require 'json\/pure'/g" {} \;
julien@lib (develop *%=)$ grep -r "require 'json/"
measures/urban_geometry_creation/measure.rb:31:require 'json/pure'
measures/urban_geometry_creation_zoning/measure.rb:34:require 'json/pure'
urbanopt/geojson/geo_file.rb:36:require 'json/pure'
urbanopt/geojson/mapper_classes.rb:32:require 'json/pure'
urbanopt/geojson/update_areas.rb:32:require 'json/pure'
urbanopt/geojson/validate_geojson.rb:31:require 'json/pure'

Then, run the system call, adding verbose and debug options

C:\urbanopt-cli\example_files>C:/openstudio-2.9.1/bin/openstudio.exe --verbose --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw' --debug

Still not working. Try more aggressively, replacing in all bundled gems

julien@~$ cd C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems
julien@gems (develop *%=)$ find . -name "*.rb" -exec sed -i "s/require 'json'/require 'json\/pure'/g" {} \;

Still the same error message... but it appears to be loading stuff from my system ruby directory too.

[13:55:55.909328 DEBUG] Running of measure 'blended_space_type_from_model' completed. Post-processing measure output
[13:55:55.911233 INFO] Moving to the next workflow step.
[13:55:55.935005 INFO] Found measure UrbanGeometryCreation of type ModelMeasure. Applying now.
[13:55:55.940436 DEBUG] Starting apply_measure for urban_geometry_creation
[13:55:55.953344 DEBUG] Creating run directory for measure in C:/urbanopt-cli/example_files/run/baseline_scenario/1/005_urban_geometry_creation
[13:55:55.953344 DEBUG] Apply measure running in C:/urbanopt-cli/example_files/run/baseline_scenario/1/005_urban_geometry_creation
[13:55:55.953344 DEBUG] Loading Measure from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/measures/urban_geometry_creation/measure.rb
[13:55:57.825793 ERROR] C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb failed with message Preventing segfault if native JSON is built as MinGW in eval:77:in `require'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/urbanopt/geojson.rb:40:in `<top (required)>'
eval:107:in `require'
eval:107:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/measures/urban_geometry_creation/measure.rb:34:in `<top (required)>'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in `load'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:339:in `apply_measure'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:109:in `block in apply_measures'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `each_index'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/util/measure.rb:67:in `apply_measures'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/jobs/run_os_measures.rb:68:in `perform'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:285:in `step'
C:/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/openstudio-workflow-1.3.4/lib/openstudio/workflow/run.rb:232:in `run'
:/openstudio_cli.rb:975:in `execute'
:/openstudio_cli.rb:763:in `execute'
:/openstudio_cli.rb:1746:in `<main>'
eval:116:in `eval'
eval:116:in `require_embedded_absolute'
eval:101:in `block in require'
eval:95:in `each'
eval:95:in `require'
eval:3:in `<main>'
jmarrec commented 4 years ago

Geez. This is hard to track, especially since it uses like 20 repos at different point in time (ruby gem dependencies chained). Took me forever to even understand where that message was coming from. I looked at all gems first, only to realize that in fact it's in OS 2.9.1 itself:

https://github.com/NREL/OpenStudio/blob/9b651532c36d6c392dd688f29b403753cb29b17e/openstudiocore/src/cli/embedded_help.rb#L77

https://github.com/NREL/OpenStudio/pull/3597

# Uninstall system ruby json native
gem uninstall json
# Try again
C:\urbanopt-cli\example_files>C:/openstudio-2.9.1/bin/openstudio.exe --verbose --bundle 'C:/urbanopt-cli/example_files/Gemfile' --bundle_path 'C:/urbanopt-cli/example_files/.bundle/install/' run -w 'C:/urbanopt-cli/example_files/run/baseline_scenario/1/in.osw' --debug

Not helping still. I will go and build a 29X version of OS in debug to check that stuff.

jmarrec commented 4 years ago

I think I got it!!!

require 'urbanopt/geojson/extension'

... see it ? ...

That's right, it has json/ext in it... So it thinks this is the native Json!

https://github.com/NREL/OpenStudio/blob/9b651532c36d6c392dd688f29b403753cb29b17e/openstudiocore/src/cli/embedded_help.rb#L75-L79

Tricky part was that the new develop (3.x) doesn't have this check...: https://github.com/NREL/OpenStudio/blob/develop/src/cli/embedded_help.rb#L75-L79

jmarrec commented 4 years ago

The quick fix is to rename this file: https://github.com/urbanopt/urbanopt-geojson-gem/blob/develop/lib/urbanopt/geojson/extension.rb. derived_extension.rb or geojson_extension.rb would work for eg.

I am pushing a fix commit to the 2.9.X-LTS branch (https://github.com/NREL/OpenStudio/commit/58ed43d0b1d36eec28d167b1a82a4af9e0446c2a?w=1), but I can't comment on whether it's worth rolling a 2.9.2 just for that when you can rename the file. That's a decision for someone else to make.

@kflemin @tijcolem

jmarrec commented 4 years ago
cd /c/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/urbanopt/
# Edit geojson.rb to `require 'urbanopt/geojson/derived_extension'`
cd /c/urbanopt-cli/example_files/.bundle/install/ruby/2.2.0/gems/urbanopt-geojson-0.2.0.pre1/lib/urbanopt/geojson
mv extension.rb derived_extension.rb

then openstudio.exe command above works fine.

kflemin commented 4 years ago

wow @jmarrec, thank you so much for tracking this down! It all works great now with the file renamed!