Error when loading Sketchucationtools.rbz
-
Hi,
One of my student have a strange error when starting sketchup after installing Sketchucationtools.rbz.
I don't think it's a problem with Sketchup or the plugin itself but I can't figure out what it could be. Maybe somebody here will know. Here's the error message:Error: #<ArgumentError: invalid byte sequence in US-ASCII>
c:/users/marie josé/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/sketchucation/scf_loader.rbs:31:inblock in loadRBS' c:/users/marie josé/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/sketchucation/scf_loader.rbs:31:in
each'
c:/users/marie josé/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/sketchucation/scf_loader.rbs:31:ineach_with_index' c:/users/marie josé/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/sketchucation/scf_loader.rbs:31:in
loadRBS'
c:/users/marie josé/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/sketchucation/scf_loader.rbs:38:in<main>' C:/Program Files/SketchUp/SketchUp 2017/Tools/extensions.rb:197:in
eval'
C:/Program Files/SketchUp/SketchUp 2017/Tools/extensions.rb:197:inrequire' C:/Program Files/SketchUp/SketchUp 2017/Tools/extensions.rb:197:in
load'
C:/Users/Marie José/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/SketchUcation.rb:207:inregister_extension' C:/Users/Marie José/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/SketchUcation.rb:207:in
module:SCF'
C:/Users/Marie José/AppData/Roaming/SketchUp/SketchUp 2017/SketchUp/Plugins/SketchUcation.rb:16:in `<top (required)>' -
Erase accents in the path!
-
The issue is because that user-name contains an accented character 'josé'
If the user gets a new user account, with say 'jose' it should work.Having accents in PC users' names was a guarantee of a failure in the earlier versions of SketchUp.
However, in newer SketchUp Ruby versions this is usually successfully circumvented by forcing the path's encoding to be UTF-8.
Indeed that is what the RB file does at the startSCF::FOLDER
in the Ruby Console should return the path
For some reason there seems to be a glitch and it's reporting with a US-ASCII error.I may have devised a fix for this weirdness...
Please find attached a ZIP file, extract from it the RBS file, which you should replace in the user's folder.
c:/users/marie josé/appdata/roaming/sketchup/sketchup 2017/sketchup/plugins/sketchucation/**scf_loader.rbs**
Restart SketchUp and report if there are any loading errors.
Note that the v2017 Extension Loading Policy must be set to Unrestricted, as this file change will break the signing hash.
If it works then I'll get it reworked and republished...There is another potential issue I am also looking into, but please test and report back...
-
I have updated the toolset - this sidesteps the accented user-name issue...
please update from the PluginStore... -
It works!
Many Thanks,
François
Advertisement