openstudiocoalition / openstudio-sketchup-plugin

The OpenStudio SketchUp Plug-in is an extension to Trimble’s popular 3D modeling tool that adds OpenStudio context to the SketchUp program.
https://openstudiocoalition.org
Other
45 stars 10 forks source link

Error loading OpenStudio SketchUp Plug-in - File does not exist #101

Open Tuitui1 opened 2 years ago

Tuitui1 commented 2 years ago

Displayed when loading extensions:"C:\openstudio-sketchup-plugin-1.3.0/Ruby/openstudio_modeleditor.rb' does not exist.

macumber commented 2 years ago

You should install the corresponding version of the OpenStudio Application, in this case version 1.3.0. The installers are linked below:

https://github.com/openstudiocoalition/OpenStudioApplication/releases/tag/v1.3.0

The Windows installer is at:

https://github.com/openstudiocoalition/OpenStudioApplication/releases/download/v1.3.0/OpenStudioApplication-1.3.0+5faa91ea6b-Windows.exe

This will install the OpenStudio Application by default to C:\openstudioapplication-1.3.0. When you load the OpenStudio SketchUp Plug-in it will ask you to locate the OpenStudio Application Root Dir, enter C:\openstudioapplication-1.3.0 into that prompt.

Tuitui1 commented 2 years ago

After I finished the installation, “sketchup” popped up a window with a question mark and when I clicked confirm, it jumped to this page: https://github.com/openstudiocoalition/openstudio-sketchup-plugin/wiki/OpenStudio- SketchUp-Plug-in-Wiki#openstudio-sketchup-plug-in-version-compatibility-matrix I still don't have this plugin in my toolbar

macumber commented 2 years ago

What version of SketchUp do you have? Can you paste some screenshots of what you are seeing in this issue?

macumber commented 2 years ago

Are you experiencing the same issues as this post? https://unmethours.com/question/52935/error-loading-openstudio-sketchup-plug-in/

Tuitui1 commented 2 years ago

[image: image.png]When I typed in Install Roadkill, this window popped up. After I clicked "Y", the web page https://github.com/openstudiocoalition/openstudio-sketchup-plugin/wiki/OpenStudio-SketchUp-Plug-in-Wiki# appeared openstudio-sketchup-plug-in-version-compatibility-matrix

On Sat, 15 Jan 2022 at 18:46, Dan Macumber @.***> wrote:

What version of SketchUp do you have? Can you paste some screenshots of what you are seeing in this issue?

— Reply to this email directly, view it on GitHub https://github.com/openstudiocoalition/openstudio-sketchup-plugin/issues/101#issuecomment-1013734155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXJN5HPOCFB2RZHMSOGI2GTUWG6JZANCNFSM5L5A6IMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: <openstudiocoalition/openstudio-sketchup-plugin/issues/101/1013734155@ github.com>

macumber commented 2 years ago

Your image attachment did not come through, I don't know what "Install Roadkill" means. Your problem is most likely that you are using incompatible versions of the OpenStudio Application and SketchUp. You need to use compatible versions which are documented in the link you have attached (see the table at the bottom of the page).

Tuitui1 commented 2 years ago

Version 1.3.0 that I installed in skecthup2021

On Sat, 15 Jan 2022 at 18:56, Dan Macumber @.***> wrote:

Your image attachment did not come through, I don't know what "Install Roadkill" means. Your problem is most likely that you are using incompatible versions of OpenStudio and SketchUp. You need to use compatible versions which are documented in the link you have attached.

— Reply to this email directly, view it on GitHub https://github.com/openstudiocoalition/openstudio-sketchup-plugin/issues/101#issuecomment-1013735852, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXJN5HNMORB4ZQOITAROVO3UWG7O7ANCNFSM5L5A6IMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: <openstudiocoalition/openstudio-sketchup-plugin/issues/101/1013735852@ github.com>

macumber commented 2 years ago

Ok, you need both the OpenStudio SketchUp Plug-in 1.3.0 installed in Sketchup AND the OpenStudio Application 1.3.0 installed on your computer to the directory C:\openstudioapplication-1.3.0. When SketchUp launches, it will prompt you to locate the "Path to OpenStudio Root Directory". Enter C:\openstudioapplication-1.3.0 into that prompt. Your first post indicates that you entered C:\openstudio-sketchup-plugin-1.3.0 which is incorrect.

Tuitui1 commented 2 years ago

The one I entered is C:\openstudioapplication-1.3.0 . It's the ketchup auto-recognition path. After typing it in, a window with a question mark appears.

On Sat, 15 Jan 2022 at 19:02, Dan Macumber @.***> wrote:

Ok, you need both the OpenStudio SketchUp Plug-in 1.3.0 installed in Sketchup AND the OpenStudio Application 1.3.0 installed on your computer to the directory C:\openstudioapplication-1.3.0. When SketchUp launches, it will prompt you to locate the "Path to OpenStudio Root Directory". Enter C:\openstudioapplication-1.3.0 into that prompt. Your first post indicates that you entered C:\openstudio-sketchup-plugin-1.3.0 which is incorrect.

— Reply to this email directly, view it on GitHub https://github.com/openstudiocoalition/openstudio-sketchup-plugin/issues/101#issuecomment-1013736817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXJN5HN3HGI4LSQN4MMNBBLUWHAGBANCNFSM5L5A6IMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: <openstudiocoalition/openstudio-sketchup-plugin/issues/101/1013736817@ github.com>

macumber commented 2 years ago

I'm sorry but I don't know what that dialog is or what it is trying to tell you. Please take a screenshot using the Windows snipping tool and attach it here so I can try to help you:

Snipping tool: https://support.microsoft.com/en-us/windows/use-snipping-tool-to-capture-screenshots-00246869-1843-655f-f220-97299b865f6b Attaching image to issue: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files

Do the files C:\openstudioapplication-1.3.0\Ruby\openstudio_modeleditor.rb and C:\openstudioapplication-1.3.0\Ruby\openstudio_modeleditor.so exist on your computer? If not, you may need to re-run the OpenStudio Application installer and ensure that the Ruby API is installed

image

Tuitui1 commented 2 years ago

1 unnamed I‘m sure C:\openstudioapplication-1.3.0\Ruby\openstudio_modeleditor.rb and C:\openstudioapplication-1.3.0\Ruby\openstudio_modeleditor.so exist on my computer

macumber commented 2 years ago

Ok, thanks for the input. This seems likely due to internalization issues. Can you start SketchUp and hit Cancel when it asks you for the OpenStudio Root Directory. After that, can you go to Extensions->Developer->Ruby Console and then enter each one of these commands at a time, pressing enter after each line. When you are done can you upload a screenshot of the output?

Encoding.default_external

Encoding.default_internal

RUBY_PLATFORM

RUBY_VERSION

ENV["RUBYOPT"]

load "C:/openstudioapplication-1.3.0/Ruby/openstudio_modeleditor.rb" 

OpenStudio::Model::Model.new

Here is my output:

image

macumber commented 2 years ago

Also, it might be possible that some other program or library in your path is interfering with loading the OpenStudio bindings. Try launching a command prompt (type cmd into the Windows search bar) then use the commands

set PATH=""

"c:\Program Files\SketchUp\SketchUp 2021\SketchUp.exe"

image

fedemza2 commented 1 year ago

Hi, having same problem, here is my output for the commands on Ruby console, can you help me ?

Captura de Pantalla 2023-10-24 a la(s) 20 49 38
macumber commented 1 year ago

@fedemza2 it looks like you have SketchUp for M1 on Mac but you are trying to load the OpenStudio bindings from a Windows path? What operating system are you using? Are you using a virtual machine like VMWare or Parallels?

fedemza2 commented 1 year ago

Hi ! Using macOS Big Sur 11.3.1, yes M1 No virtual machine

The file is in there but do not get why is getting this error File 'OpenStudio-3.6.0/Ruby/openstudio_modeleditor.rb' does not exist

macumber commented 1 year ago

The full path to OpenStudio should have /Applications/OpenStudioApplication-1.6.0 in it, did you try entering /Applications/OpenStudioApplication-1.6.0 as the path to Openstudio Root? Maybe see if this post helps: https://unmethours.com/question/97395/openstudio-sketchup-plugin-problem/ ?