Error loading file:

when opening a sketchup file, next window appears.
anyone knows how to solve this?
thx!

Error Loading File C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser/load.rb
Error: #<Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - C:/Users/GEBRUI~1/AppData/Local/Temp/SketchUp MBR Plugin Thumbnails>
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:1460:in rmdir' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:1460:in block in remove_dir1’
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:1474:in platform_support' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:1459:in remove_dir1’
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:1452:in remove' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:780:in block in remove_entry’
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:1509:in postorder_traverse' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:778:in remove_entry’
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/fileutils.rb:806:in remove_dir' C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser/cache.rb:41:in remove_materials_thumbnails_dir’
C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser/load.rb:49:in <module:MaterialBrowser>' C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser/load.rb:36:in <top (required)>’
C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in load’
C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser.rb:75:in register_extension' C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser.rb:75:in module:MaterialBrowser
C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser.rb:29:in `<top (required)>’

How did you install the extension?

First thing I would do is close SketchUp, find the downloaded SketchUp installer, right click on it, choose Run as administrator and then Repair. Next restart the computer and open SketchUp. If you still get the loading error click OK and go to Extensions>Extension Warehouse. Install the extension again. Quit SketchUp and reopen it.

FWIW I just installed the extension a few minutes ago and then opened SketchUp 2022. I didn’t get any loading error.

Please notify the extension developer that:

The error originates from line 41 in file …
"C:/Users/Gebruiker/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/material_browser/cache.rb"
and method remove_materials_thumbnails_dir()

Apparently the extension does not check that the temporary directory is empty before attempting to remove it.

  • A good lesson to code defensively.
1 Like