Sketchup extension loading problems for non-admin user 2019

Hi, I’m having issues loading extensions with sketchup 2019 when running sketchup as a non-admin user. Any idea what changes about sketchup’s ability to load extensions that I could use to debug? it’s like it’s not even trying to load my files.

and typing things in ruby console like

Sketchup.require “my_extension_folder/loader”

returns “not found” errors like the files aren’t even there

but if I switch to admin user it all works fine.

Also, never had this issue with Sketchup 2017.

Sketchup.require 'the_full_path_to_its_folder/loader'
Note it must specify be the full path to your “loader” file…
To see if the file exists use this in the Ruby Console:
File.exist?('the_full_path_to_its_folder/loader.rb')
i.e. with the file-type suffix.
If it doesn’t return ‘true’ something is wrong…

Did you install SketchUp properly on your PC ?
While logged to Windows in as your normal user-account [NOT the system administrator - but having admin-powers as a normal user is OK], ensure SketchUp is closed.
Find the relevant installer exe file - probably in your Downloads folder ?
Select its icon, right-click > context-menu > “Run as administrator”
When prompted choose “Repair”.
When it’s completed restart SketchUp and retest…

Installing a complex app like SketchUp in any other way can lead to all kinds of unpredictable weirdness, often involving file/folder permissions etc…

So NEVER double-click an installer exe file to ‘Run’ it, even if you have some admin-powers it does not give you the same result as using “Run as administrator” - which is the only proper way…

1 Like