win32ole.so problem

Is anyone know what it could be mean?

Error: 126: Nie mo¿na odnaleŸæ okreœlonego modu³u.   - C:/Ruby22-x64/lib/ruby/2.2.0/x64-mingw32/win32ole.so
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in `require'
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in `require'
<main>:in `<main>'
SketchUp:1:in `eval'

after
require ‘C:\Ruby22-x64\lib\ruby\2.2.0\win32ole.so’

the file win32ole.so is in this location

Nie mo¿na odnaleŸæ okreœlonego modu³u - Can not find the modul

You are loading a Ruby binary from Ruby 2.2 - mixing binaries compiled for different versions isn’t going to work.

It should be enough to use use require 'win32ole' as Win32OLE ships with Ruby’s standard library and since SketchUp 2014 we ship the StdLib.

after require ‘win32ole’

I have:

require ‘win32ole’
Error: 126: Nie mo¿na odnaleŸæ okreœlonego modu³u. - C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/win32ole.so
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require' C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require’

:in `' SketchUp:1:in `eval'

Nie mo¿na odnaleŸæ okreœlonego modu³u - Can not find the modul

THE SAME

I don’t know what’s going on!

Did you start SketchUp by double-clicking on a SKP file ?

Open Ruby Console, and type:

puts $:

Copy and paste the output here.

Open Ruby Console, and type:

puts $"

Copy and paste the output into a textfile, and attach the file here.

one-clicking
the shortcut is on the bottom bar

puts $:
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific
C:/Program Files/SketchUp/SketchUp 2015/Tools
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins

puts $"
enumerator.so
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific/enc/encdb.so
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific/enc/iso_8859_2.so
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific/enc/trans/transdb.so
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific/rbconfig.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/compatibility.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/defaults.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/deprecate.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/errors.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/version.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/requirement.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/platform.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/specification.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/exceptions.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/defaults/operating_system.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_gem.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/rubygems.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/forwardable.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/langhandler.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/sketchup.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/as_rubyeditor/as_rubyeditor.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/as_rubyeditor.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/hideall.rb
C:/Program Files/SketchUp/SketchUp 2015/Tools/hidetool.rb
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_advancedcameratools/advancedcameratools_main.rbs
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_advancedcameratools/actloader.rb
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_advancedcameratools.rb
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcobservers.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcclass_v1.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcfunctions_v1.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcclassifier.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcclass_overlays.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dctools.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcutils.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_dynamiccomponents/ruby/dcconverter.rbs
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_dynamiccomponents/ruby/dcloader.rb
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_dynamiccomponents.rb
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/geometryhelpers.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/fromcontours.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/triangulatorutility.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/meshhelpers.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/fromscratch.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/smoovetool.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/stamptool.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/drapetool2.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/detailtool.rbs
c:/users/marcin/appdata/roaming/sketchup/sketchup 2015/sketchup/plugins/su_sandbox/flipedgetool.rbs
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_sandbox/sandboxmenus.rb
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_sandbox.rb
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_webtextures/webtextures_loader.rb
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/su_webtextures.rb

puts $:
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific
C:/Program Files/SketchUp/SketchUp 2015/Tools
C:/Users/Marcin/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins

after
puts $"

in attached fileafter puts dolar quotation marks.pdf (43.7 KB)

That isn’t the correct path for the win32ole.so file. Do you know where this one came from?

Just to clarify again - Win32Ole ships with the standard library we ship with SU2014+. There is not need to install it manually. The location of the file we ship is: C:\Program Files\SketchUp\SketchUp 2015\Tools\RubyStdLib\platform_specific

(Btw, you can post code block on the forum by selecting it and using the Preformatted Text button in the edit field: )

The $LOAD_PATH (alias $:) array looks good.
The $LOADED_FEATURES (alias $") array looks good.

Try in Ruby Console:
require("win32ole.so")
This call should return true
… and then the last member of $" should be:
C:/Program Files/SketchUp/SketchUp 2015/Tools/RubyStdLib/platform_specific/win32ole.so

IN the Console, if
Encoding::default_internal
is blank (or nil), set it
Encoding::default_internal="UTF-8"
and try again:
require("win32ole.so")

If still it does not work, what is the return in the Ruby Console from:
Encoding::find("filesystem")