sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    SU 16 Mac: Sandbox <Errno::ENOENT:No such file or directory>

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    16 Posts 3 Posters 2.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      FilippoBasso
      last edited by

      Hi all,
      a blocking bug, very easy to replicate.

      I've tried several installations of SketchUp Make on Macbook pro.
      New mac, just installed, working perfectly.
      From the 1st installation (so it should be easy to replicate) this error appear at launch:

      Error Loading File /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb
      Error; #<Errno;;ENOENT; No such file or directory - >
      /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `initialize'
      /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `open'
      /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `ReadValues'
      /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;45;in `initialize'
      /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;33;in `new'
      /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;33;in `<module;SandboxTools>'
      /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;24;in `<top (required)>'
      /Applications/SketchUp 2016/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb;197;in `require'
      /Applications/SketchUp 2016/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb;197;in `load'
      /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;45;in `register_extension'
      /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;45;in `<module;SandboxTools>'
      /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;29;in `<top (required)>'
      

      I tried giving more permission to Plugin files/dirs, I tried to remove the extension and reinstall from Extension Warehouse, I tried uninstalling completely SU and reinstall from scratch, I tried looking into files of the plugin, I searched hours in Internet for a similar problem...... don't know what to do now: sandbox is not working, and it's a very important part of Sketchup for landscapes...

      any help appreciated (I'm IT programmer, so I can help to identify the issue even with more geek suggestions 😄 )
      thank you,
      Filippo

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        Have you installed the Maintenance release of v16?

        If you remove or rename /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins folder and relaunch SU, a new folder with fresh copies of all the **su_**Extensions will be created for you...

        these should have the correct permissions needed by SU and there is no need to adjust them...

        do you have standard 'Case Aware' OS X install?

        there are some 'Ruby Console' checks you can do if fresh copies still fail...

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • F Offline
          FilippoBasso
          last edited by

          @driven said:

          Have you installed the Maintenance release of v16?

          If you remove or rename /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins folder and relaunch SU, a new folder with fresh copies of all the **su_**Extensions will be created for you...

          these should have the correct permissions needed by SU and there is no need to adjust them...

          do you have standard 'Case Aware' OS X install?

          there are some 'Ruby Console' checks you can do if fresh copies still fail...

          john

          Hi John, thank you for the quick reply!

          I've the last version of SU-Make (16.1.1451) with some days of Pro evaluation still active (downloaded from SU website several times to be sure).

          I've tried removing the Plugins directory, and it reinstall the plugins, but still the error is there (only this specific plugin complains...)

          About OSX install, I've a normal "File System Personality: Case-sensitive Journaled HFS+" OSX install, yes

          can you guide me to make some ruby console checks?

          thank you!
          Filippo

          1 Reply Last reply Reply Quote 0
          • F Offline
            FilippoBasso
            last edited by

            Tried to make a VMware virtual machine, just to test, with OSX, and the same DMG is working correctly... strange...

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              open SU menu >> Window >> Ruby Console...

              in the bottom input field paste and hit Enter/Return...

              sandbox = Sketchup.find_support_file("su_sandbox.rb", "Plugins")
              
              

              in the top half it should echo the command and give the valid User/phy/Lib path, if so try...

              load sandbox
              

              and see if errors are returned from there...

              john

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0
              • F Offline
                FilippoBasso
                last edited by

                > sandbox = Sketchup.find_support_file("su_sandbox.rb", "Plugins")
                /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb
                > load sandbox
                true
                
                

                seems no errors here... (but no sandbox is really loaded, I cannot see the sandbox menus)

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by

                  maybe, check if they really load...

                  Sketchup.extensions.find_all{|e| p [e.name, e.loaded?]};nil
                  

                  and there's other methods...

                   Sketchup.extensions["Sandbox Tools"].methods
                  

                  I'm in and out today, so just try a few yourself...

                  john

                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    FilippoBasso
                    last edited by

                    Thank you very much!
                    unluckily I'm not a ruby programmer, so the syntax is a bit strange for me...

                    anyway, I had to "unload" the sandbox extension from the Preferences panel, then things begun to be more "responsive" in Ruby console.

                    Now this is what happens:

                    > Sketchup.extensions.find_all{|e| p [e.name, e.loaded?]};nil
                    ["Advanced Camera Tools", true]
                    ["Dynamic Components", true]
                    ["Sandbox Tools", false]
                    ["Trimble Connect", true]
                    ["Photo Textures", true]
                    
                    > sandbox = Sketchup.find_support_file("su_sandbox.rb", "Plugins")
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb
                    > load sandbox
                    File load error (/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb); 
                    Error; #<Errno;;ENOENT; No such file or directory - >
                    /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `initialize'
                    /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `open'
                    /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `ReadValues'
                    /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;45;in `initialize'
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;33;in `new'
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;33;in `<module;SandboxTools>'
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;24;in `<top (required)>'
                    /Applications/SketchUp 2016/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb;197;in `require'
                    /Applications/SketchUp 2016/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb;197;in `load'
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;45;in `register_extension'
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;45;in `<module;SandboxTools>'
                    /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;29;in `<top (required)>'
                    <main>;in `load'
                    <main>;in `<main>'
                    SketchUp;1;in `eval'
                    true
                    

                    ...well, it's quite strange... the file is there (sandboxmenus is the only .rb, all the others are .rbs).
                    Can be the fact that there are spaces in the path? (well, if it was like that, also the other extensions could have had the same issue, and other users too....)

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      driven
                      last edited by

                      check if it's path differs to the others in any way?
                      try...

                      Sketchup.extensions.find_all{|e| p [e.name, e.extension_path]};nil
                      

                      they should all be the same path, [except the filename]...

                      john

                      learn from the mistakes of others, you may not live long enough to make them all yourself...

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        FilippoBasso
                        last edited by

                        Hi John, sorry for the late reply, but I still am unable to make it work on all the tests that I'm doing (except on a new machine).

                        The result from the path check is this:

                        > Sketchup.extensions.find_all{|e| p [e.name, e.extension_path]};nil
                        ["3DArcStudio 3D Tree Maker", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/3darcstudiotree.rb"]
                        ["TT_Lib²", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/TT_Lib2.rb"]
                        ["Advanced Camera Tools", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_advancedcameratools.rb"]
                        ["Bezier Tool", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_bezier.rb"]
                        ["Dynamic Components", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_dynamiccomponents.rb"]
                        ["Sandbox Tools", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb"]
                        ["Shapes Tool", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_shapes.rb"]
                        ["Trimble Connect", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_trimble_connect.rb"]
                        ["Photo Textures", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_webtextures.rb"]
                        ["CleanUp³", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/tt_cleanup.rb"]
                        
                        

                        ...don't know so much what to do...
                        I understand that there are spaces, that can mess up things, but the other extensions have the same situation...

                        are there some other tests that I can do to understand the (seems small) ruby issue?
                        thank you!
                        Filippo

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by

                          do you have "3DArcStudio 3D Tree Maker" on the one that works?

                          I would, disable it and retry...

                          always eliminate 3rd party plugins first...

                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            FilippoBasso
                            last edited by

                            Hi,
                            I was learning other plugins at the same time, but now I made the same test after removing the Plugins folder. The problems happens always, from 1st installation (several times). I'm curious about what can be the error.

                            The last command has thus a shorter output, but the concept is the same:

                            > Sketchup.extensions.find_all{|e| p [e.name, e.extension_path]};nil
                            ["Advanced Camera Tools", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_advancedcameratools.rb"]
                            ["Dynamic Components", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_dynamiccomponents.rb"]
                            ["Sandbox Tools", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb"]
                            ["Trimble Connect", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_trimble_connect.rb"]
                            ["Photo Textures", "/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_webtextures.rb"]
                            
                            
                            

                            what else can I try?

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              FilippoBasso
                              last edited by

                              Hi John,
                              I think I've to do issue some more "internal" commands to learn what is happening...

                              this is a comparison between 2 modules, after unloading them and restarting SU:

                              
                              > sandbox = Sketchup.find_support_file("su_sandbox.rb", "Plugins")
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb
                              
                              > dynamic = Sketchup.find_support_file("su_dynamiccomponents.rb", "Plugins")
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_dynamiccomponents.rb
                              
                              > load dynamic
                              true
                              
                              > load sandbox
                              File load error (/Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb); 
                              Error; #<Errno;;ENOENT; No such file or directory - >
                              /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `initialize'
                              /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `open'
                              /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;107;in `ReadValues'
                              /users/phy/library/application support/sketchup 2016/sketchup/plugins/su_sandbox/geometryhelpers.rbs;45;in `initialize'
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;33;in `new'
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;33;in `<module;SandboxTools>'
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox/sandboxmenus.rb;24;in `<top (required)>'
                              /Applications/SketchUp 2016/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb;197;in `require'
                              /Applications/SketchUp 2016/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb;197;in `load'
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;45;in `register_extension'
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;45;in `<module;SandboxTools>'
                              /Users/phy/Library/Application Support/SketchUp 2016/SketchUp/Plugins/su_sandbox.rb;29;in `<top (required)>'
                              <main>;in `load'
                              <main>;in `<main>'
                              SketchUp;1;in `eval'
                              true
                              
                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                driven
                                last edited by

                                for some reason it is failing on Line number 35 in the menu ruby...

                                when you look at line #35 and those following you will notice it uses CamelCase filenames...

                                Sketchup;;require 'su_sandbox/FromContours'
                                Sketchup;;require 'su_sandbox/FromScratch'
                                Sketchup;;require 'su_sandbox/SmooveTool'
                                Sketchup;;require 'su_sandbox/StampTool'
                                Sketchup;;require 'su_sandbox/DrapeTool2'
                                Sketchup;;require 'su_sandbox/DetailTool'
                                Sketchup;;require 'su_sandbox/FlipEdgeTool'
                                

                                but the files it requires have all lowercase names...

                                detailtool.rbs		fromscratch.rbs		smoovetool.rbs
                                drapetool2.rbs		geometryhelpers.rbs	stamptool.rbs
                                extension_info.txt	images			su_sandbox.hash
                                flipedgetool.rbs	meshhelpers.rbs		triangulatorutility.rbs
                                fromcontours.rbs	sandboxmenus.rb
                                

                                it's poor practice to do this with filenames, but it shouldn't be an issue, as Sketchup::require will call downcase on the filenames...

                                but you are seeing it fail for some reason...

                                if you rename and down-case those filenames, then restart, does it load?

                                if so you may have a system setting that is blocking the downcasing...

                                john

                                learn from the mistakes of others, you may not live long enough to make them all yourself...

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  Is your MAC system set to be 'case sensitive' ?
                                  On a PC it is 'case insensitive' - you can have a file named Test.rb OR a file named test.rb , but not both in the same folder at the same time.
                                  On a MAC it's the same way, but because of its Unix heritage a MAC can be [re]set to be 'case sensitive', allowing two files like Test.rb and test.rb to coexist in the same folder.
                                  This causes issues with some finding methods - since .../Test.rb can exist, but is not found when ../test.rb is searched etc...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    driven
                                    last edited by

                                    @TIG, I did ask that at the start but overlooked the reply...

                                    @filippobasso said:

                                    About OSX install, I've a normal "File System Personality: Case-sensitive Journaled HFS+" OSX install, yes

                                    @Filippo, this is not a normal OSX install, and many apps will run into problems, not just SU...

                                    I believe OS X server and iOS are [Case-sensitive], but OS X became 'Case Preserving' in its standard releases...

                                    there are are few threads with reply from SketchUp staff discussing the known problems you will have...

                                    your second mac must have the 'standard' journalling if it works...

                                    john

                                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post
                                    Buy SketchPlus
                                    Buy SUbD
                                    Buy WrapR
                                    Buy eBook
                                    Buy Modelur
                                    Buy Vertex Tools
                                    Buy SketchCuisine
                                    Buy FormFonts

                                    Advertisement