-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MeasureManager errors on application startup, fails to locate /lib/topolys/model.rb in tbd gem. #679
Comments
Thanks for summarizing the things we tried in a thorough fashion. @macumber I'm out of ideas, can you think of something? |
I can look more tonight, in the meantime I would see if you have any ruby or gem related environment variables set and try unsetting those https://ruby-doc.com/docs/ProgrammingRuby/html/rubyworld.html https://stackoverflow.com/questions/11277227/whats-the-difference-between-gem-home-and-gem-path |
Also why does it only fail on that one measure? The app seems to be ok w the first two measures? |
Thanks @macumber , I don't appear to have any gem related paths that I can tell. Let me know if I went about finding this out the wrong way. I ran a
The only measure I appear to have in my BCL directory is that one:
More explicitly:
|
I asked for a dump of the env var in powershell and Juan had nothing related to gem or bundle. |
@jugonzal07 can you double check your system information? If you right click on My Computer and go to properties can you copy and paste your "Device specifications":
and "Windows specifications":
|
I tried to reproduce this by bundle installing the current master branch of the openstudio-standards repo but I was not able to reproduce. I wonder if you have something set up in your |
Also, for OpenStudio 1.7.0, have you tried toggling "Preferences->Use Classic CLI" and restarting? Have you made sure that "Preferences->Change My Measures Directory" is set to an empty directory? |
I created a clean Windows 10 VM, installed your same versions of Ruby, Python, and CMDer; and I can't reproduce your issue. Do you have another machine you can try OpenStudioApplication on? |
Thanks you all. I have an old work machine I can try to test measures on. It really is odd and I'm unsure what broke. I'll try running things on that machine and see if I somehow recreate the issue. |
@jugonzal07 were you able to get things working on your other machine? Are you stuck? |
hey @macumber , unfortunately no-- I installed the OS App 1.7 on another PC and have been testing measures on that machine in the interim. I can still test things through a CLI or IDE just fine, but I do swap to my 2nd PC to make sure things work in OS App. It's a real mystery to me. I have not been able to recreate the issue. Everything I check seems identical on this PC but it doesn't give me issues. |
I had some success with removing the measures folder and osw files and re-adding the measures: https://youtu.be/O7lHGqvFG3M?si=sKgh-ENezKRXKAhX&t=144 |
Issue overview
Upon loading either OpenStudio Application (both 1.6 and 1.7) I get a similar error-- a pop up window titled
Failed to Compute Arguments
and text reading "Could not compute arguments for OpenStudio Measure". Even after wiping both my BCL and Measures directory, this still comes up.I'm unsure if this is coincidental or not, but I started getting this behavior after
bundle install
ing the OpenStudio Standards Gem into Ruby 2.7.8 on Windows 10 x86. Prior to this, the application loaded just fine. I'm unsure why the embedded Ruby 2.7 in OpenStudio application would be affected by this.Current Behavior
I ran things in debug mode in a powershell CLI and get this error:
Expected Behavior
Prior to this, I was able to open OpenStudio application without this error and was testing new measures for OpenStudio Standards no problem. I'm not sure what changed.
Steps to Reproduce
I am unsure how to replicate this. @jmarrec tried to replicate it with a windows VM and has been unsuccessful. What I did--
bundle install
on Ruby 2.7.8 for OpenStudio Standards Gem.(I was just trying to rubocop my measure prior to sending it for a PR)Details
Things I've tried:
λ C:\openstudio-3.7.0\bin\openstudio.exe measure -s 4096
python -c "import httplib2; conn = httplib2.HTTPConnectionWithTimeout('localhost:4096'); conn.request('POST', '/bcl_measures')"
The file it's complaining about does appear to be missing:
Environment
Some additional details about your environment for this issue (if relevant):
Context
I am unable to check if the measures I'm trying to write for OpenStudio Building Energy Standard Measures Gem work in the OS application.
The text was updated successfully, but these errors were encountered: