vtk socks setup fails with Ruby 3.3.3
Opened this issue · 0 comments
sarahwcodes commented
First time running vtk socks setup
was successful, but after my key was approved, I re-ran it as instructed and encountered an error using rbenv
with ruby 3.3.3:
sarahwheeler@Work:~|⇒ vtk socks setup
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (1/1), 880 bytes | 440.00 KiB/s, done.
----> Testing SOCKS SSH connection... ✅ DONE
----> Configuring SOCKS tunnel to run on system boot.../Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:398:in `launch_agent_variables': uninitialized constant Vtk::Commands::Socks::Setup::OpenStruct (NameError)
OpenStruct.new(
^^^^^^^^^^
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:392:in `write_launch_agent'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:381:in `install_launch_agent'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:325:in `block in configure_system_boot'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:519:in `log'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:321:in `configure_system_boot'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks/setup.rb:39:in `execute'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/lib/vtk/commands/socks.rb:25:in `setup'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:116:in `invoke'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor.rb:338:in `block in subcommand'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/thor-1.3.1/lib/thor/base.rb:584:in `start'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/vtk-0.9.5/exe/vtk:14:in `<top (required)>'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/bin/vtk:25:in `load'
from /Users/sarahwheeler/.rbenv/versions/3.3.3/bin/vtk:25:in `<main>'
I solved it by uninstalling the vtk
gem, running rbenv install 3.1.6
, resetting the local version (rbenv local 3.1.6
) before running gem install vtk
again. When I ran vtk socks setup
for the second time, it succeeded without any errors.
MacBook Pro, Apple M3 chip, Sonoma 14.6.1
Using rbenv 1.3.0