"no such file to load -- sketchup.rb"
-
Hello,
I have been using the new Sketchup 2013 on my old computer and most plugins loaded fine. I migrated to a new computer and now none will load. It says "no such file to load -- sketchup.rb" for every plugin installed. I moved my complete plugins folder to the desktop, uninstalled Sketchup and reinstalled it. I get the same message when I start Sketchup with only the default plugins in the plugins folder. When I use preferences to install extensions, all plugin files are greyed out.
I have done a clean install and reinstalled Sketchup Make. Same problem.
Any suggestions would be appreciated.
thanks,
Jeff -
Have you searched to see if sketchup.rb actually exists on your computer. On my Win 7 machine the path is C:\Program Files (x86)\SketchUp\SketchUp 2013\Tools.
-
There are a few older plugins that install sketchup.rb to the plugins folder and then look for it there. It should not be there, it should be in the location Dave pointed to in the above post. If it's in your plugins folder delete it. Also look for extensions.rb to be there as well and delete it if you find it. If you continue to get the error, delete the associated plugin that is searching for it, look for an update, if none exists, contact the author and let him know it's having issues.
-
This is also happening after doing a clean install of the system with a new account. I install Sketchup Make and no additional plugins. The only plugins are the default ones in the newly created plugins directory. I can open the package contents for Sketchup and find the sketchup.rb file.
Jeff
-
You're on OSX? What is your OS version? (It'd be good if you added this info to your profile.)
-
sketchup.rb
has nothing to do with the 'Plugins' folder.
It is automatically created in the 'Tools' folder when SketchUp is installed, with a few similar files...
As SketchUp starts it auto-loads all of the .rb files in the Plugins folder and then those in the Tools folder.
Plugins usually include the linerequire('sketchup.rb')
near its start, because that file includes some special functions that the plugin will need to work properly. A 'require' simply loads the file earlier than it would have otherwise been processed, if it's already loaded the require is skipped over - so later plugins that also require sketchup.rb find that it's already available...So your error suggests that the this vital 'Tools' folder's file is missing...
Have you installed SketchUp as an 'admin' ?
Are all of the expected files/folders where they ought to be?
Do you have FULL security permissions to the SketchUp folder and its contents etc ??
Do you always run SketchUp as an 'admin' ?There are a few 'rogue' toolbar compilations etc that incorrectly install an old version of 'sketchup.rb' directly into the Plugins folder, that must be removed - the latest one that is installed by SketchUp itself, in the 'Tools' folder MUST be the one that is required/loaded...
In passing... type this into your Ruby Console:
$LOAD_PATH
Does it list the path to the 'Tool's folder, where 'sketchup.rb' MUST be ? -
Hello,
I am on OSX 10.8.4.
Sketchup was installed as admin. There are only default plugins in the plugins folder, no old sketchup.rb file. I only use Sketchup as Admin. All works fine on the older MacBook with same OS version.
There is no Ruby Console menu item or any other menu item showing between Hide Dialogs and Bring All to Front in the Windows menu so I can't try the Ruby command.
It does seem like a permissions issue. I have another piece of 3rd party software that crashes on launch on the new computer and gave a permissions related error when trying to activate it. I have repaired permissions a few times with Disk Utility and Techtool Pro. Full read/write for me and admin from Applications folder down to Tools folder where sketchup.rb file is.
-
Please update your 'User Profile' to include your OS, version etc...
It helps us to help you.
Now we know your OS...You MUST have a 'Ruby Console' menu item...
On a PC it's under the SketchUp > Window menu
It should also be on OSX http://support.google.com/sketchup/bin/answer.py?hl=en&answer=70159&topic=2461868&ctx=topic
If you have set up you MAC to use case-sensitive file-name [bad idea] then this link explains why you might not see some menu items...
https://groups.google.com/forum/?fromgroups#!topic/sketchupissues/wqUwrilQQ2MSomething seems awry with your OS/setup...
-
@jhsketch said:
Sketchup was installed as admin. There are only default plugins in the plugins folder, no old sketchup.rb file. I only use Sketchup as Admin. All works fine on the older MacBook with same OS version.
Is "admin" the same as "root" under OSX?
SketchUp 2013 shouldn't require installing as admin. And I think I've seen threads where installing as root cause some environment variables to be missing - leading to plugin errors. -
I think root has more access than admin but I'm not sure.
In the meantime the problem is solved, though the mystery remains. I used Super Duper to copy a cloned backup of my old computer over to the new one and all seems normal.
Thanks for all the suggestions and help.
Advertisement