Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`read_cmd': uninitialized constant YleTf::System::StringIO (NameError) #33

Closed
xremming opened this issue Oct 12, 2020 · 4 comments
Closed

Comments

@xremming
Copy link

Running yle_tf inside WSL2 Arch the following error happens.

Traceback (most recent call last):
        17: from /root/.gem/ruby/2.7.0/bin/tf:23:in `<main>'
        16: from /root/.gem/ruby/2.7.0/bin/tf:23:in `load'
        15: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/bin/tf:11:in `<top (required)>'
        14: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf/cli.rb:23:in `execute'
        13: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf.rb:38:in `run'
        12: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/vendor/middleware/builder.rb:112:in `call'
        11: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/vendor/middleware/runner.rb:31:in `call'
        10: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf/action/tmpdir.rb:21:in `call'
         9: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf/action/tmpdir.rb:21:in `chdir'
         8: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf/action/tmpdir.rb:22:in `block in call'
         7: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf/action/command.rb:20:in `call'
         6: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf_plugins/commands/help/command.rb:12:in `execute'
         5: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf_plugins/commands/help/command.rb:18:in `opts'
         4: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf_plugins/commands/help/command.rb:18:in `new'
         3: from /usr/lib/ruby/2.7.0/optparse.rb:1093:in `initialize'
         2: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf_plugins/commands/help/command.rb:34:in `block in opts'
         1: from /root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf_plugins/commands/help/command.rb:60:in `terraform_help'
/root/.gem/ruby/2.7.0/gems/yle_tf-1.2.0/lib/yle_tf/system.rb:48:in `read_cmd': uninitialized constant YleTf::System::StringIO (NameError)

This can be fixed by adding require 'stringio' to this file. In addition to this, thwait gem needs to be separately installed for yle_tf to work.

@xremming
Copy link
Author

Ruby version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Gem version: 3.1.4

@tmatilai
Copy link
Collaborator

This should be fixed in master by #30.

I'll try to cut a new release tonight.

@tmatilai
Copy link
Collaborator

Version 1.3.0 is out! Closing this but please confirm if all is good. 😊

@xremming
Copy link
Author

Yep, it's now working, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants