sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    PLEASE HELP! Error Loading File vfs.rb undefined method `fil

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    18 Posts 9 Posters 26.5k Views 9 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.
    • S Offline
      sarahbbg
      last edited by

      thanks i will try that

      1 Reply Last reply Reply Quote 0
      • S Offline
        sarahbbg
        last edited by

        now i am getting this error
        Error Loading File #.rb
        Is a directory - /Users/sarahsaada/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/#.rbError Loading File vfs.rb
        undefined method `file_loaded?' for main:Object

        maybe the plugins folder is in the wrong place?

        1 Reply Last reply Reply Quote 0
        • andybotA Offline
          andybot
          last edited by

          did you use the Vray for SU installer? Perhaps try installing again. Make sure you select the right version of sketchup (if you have more than one version installed)

          http://charlottesvillearchitecturalrendering.com/

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            It's a bug in VfS. The problem is how the vfs.rb file begins:

            <span class="syntaxdefault"><br /></span><span class="syntaxkeyword">if(</span><span class="syntaxdefault"> not file_loaded</span><span class="syntaxkeyword">?(</span><span class="syntaxstring">"vfs.rb"</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">puts </span><span class="syntaxstring">"vfs.rb loaded"<br /><br /></span><span class="syntaxdefault">require </span><span class="syntaxstring">'sketchup.rb'<br /></span><span class="syntaxdefault">require </span><span class="syntaxstring">'extensions.rb'<br /></span><span class="syntaxdefault"> </span>
            

            file_loaded? is a method of sketchup.rb. In vfs.rb it tries to use the method before it's been loaded. Since VfSU loads first on your machine you run into this problem. Others that have other plugins installed that loads sketchup.rb before VfSU loads will not see this problem.

            To correct the error, edit the vfs.rb file to look like this in the beginning:

            <span class="syntaxdefault"><br />puts </span><span class="syntaxstring">"vfs.rb loaded"<br /><br /></span><span class="syntaxdefault">require </span><span class="syntaxstring">'sketchup.rb'<br /></span><span class="syntaxdefault">require </span><span class="syntaxstring">'extensions.rb'<br /></span><span class="syntaxkeyword">if(</span><span class="syntaxdefault"> not file_loaded</span><span class="syntaxkeyword">?(</span><span class="syntaxstring">"vfs.rb"</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault"> </span>
            

            (I reported the bug to the VfS developers.)

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              I'm surprised we've not heard from more people about this. I guess most VfS users have other plugins installed that loads before VfS.

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • andybotA Offline
                andybot
                last edited by

                wacky! So how is it determined which plugin loads first???

                http://charlottesvillearchitecturalrendering.com/

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  Alphabetically by filename. V comes pretty late...
                  It's a silly bug. Devin... 😒 😄 It warrants a facepalm.

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

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

                    @sarahbbg said:

                    now i am getting this error
                    Error Loading File #.rb
                    Is a directory - /Users/sarahsaada/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/#.rbError Loading File vfs.rb
                    undefined method `file_loaded?' for main:Object

                    maybe the plugins folder is in the wrong place?

                    You're right! It's not your personal 'users' folder path, but the central library one...
                    Type this is the Window > Ruby Console
                    Sketchup.find_support_file("Plugins")
                    It will return the correct path.
                    I hadn't realized you were on MAC.
                    When I said edit the new #.rb file with Notepad I hope you understood I meant a 'plain text editor' - do not use a word processor, it will add formatting and break the script.
                    Have you seen thomthom's explanation? about how the vfs.rbfile itself has a mis-ordering of lines and how moving the two 'require' lines to the start will fix it...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • sicksickisckS Offline
                      sicksickisck
                      last edited by

                      I have the same problem; when I copy folder [skp]'plugins' from work to my house .. 😞

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        m0ku_m0ku
                        last edited by

                        Sorry , I have fixed the ruby line as Thomthom recommended.
                        But I've still gotten an error.

                        "Error Loading File vfs.rb
                        no such file to load -- sketchup.rb"

                        please help , thank in advance

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

                          IF the very first line of this script reads:
                          require 'sketchup.rb'
                          or
                          require "sketchup.rb"
                          Then it should work. 😒

                          I suspect a misplaced " or a missing ' ?

                          If you still get an error, then check that there is a file in the SketchUp ' Tools' folder called ' sketchup.rb'.

                          If NOT then you must reinstall SketchUp!
                          If it's in the ' Plugins' folder then you must remove it.

                          If it is in the ' Tools' folder then type $LOAD_PATH...
                          If if doesn't include the ' Tools' folder then something is badly adrift...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            Cittizewn
                            last edited by

                            Its Possible to upload the file vfs.rb fixed..
                            I have the same problem loading it..

                            1 Reply Last reply Reply Quote 0
                            • E Offline
                              edgaralbandoz
                              last edited by

                              I am having this issue after installing Vray1.49. This error shows up when I activate (check-mark) the Vray extension. I am using SketchupPro2015. Any help? Thanks. (Very frustrated with Vray.)

                              Error Loading File /Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/RubyToPython/VfS/Ruby/R2P.rb
                              Error: #<LoadError: dlopen(/Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/RubyToPython/RubyToPython.bundle, 9): no suitable image found. Did find:
                              /Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/RubyToPython/RubyToPython.bundle: mach-o, but wrong architecture - /Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/RubyToPython/RubyToPython.bundle>
                              /Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' /Applications/SketchUp 2015/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/2.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require'
                              /Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/RubyToPython/VfS/Ruby/R2P.rb:75:in <top (required)>' /Applications/SketchUp 2015/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb:197:in require'
                              /Applications/SketchUp 2015/SketchUp.app/Contents/Resources/Content/Tools/extensions.rb:197:in load' /Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/vfs.rb:59:in register_extension'
                              /Users/edgaralbandoz/Library/Application Support/SketchUp 2015/SketchUp/Plugins/vfs.rb:59:in `<top (required)>'

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

                                Hello There,
                                I am getting the attached Error message while loading the Sketchup. Please help.


                                Untitled1.jpg

                                1 Reply Last reply Reply Quote 0
                                • andybotA Offline
                                  andybot
                                  last edited by

                                  How old of a version are you trying to use?

                                  http://charlottesvillearchitecturalrendering.com/

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

                                    My Sketchup is 2016 with Vray 3.4 and my operating system is Windows 7.

                                    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