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

Issue installing and running tdilb-ruby #62

Open
nini1294 opened this issue Mar 11, 2023 · 1 comment
Open

Issue installing and running tdilb-ruby #62

nini1294 opened this issue Mar 11, 2023 · 1 comment

Comments

@nini1294
Copy link

nini1294 commented Mar 11, 2023

Hi All,

I am trying to run the basic example code from the README on an Ubuntu 18 system using ruby version 3.2.1. Every time I try to run the code I get the error below. I tried looking for similar issues but am not seeing any. Any help is appreciated.

/usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:23:in `instance_exec': no receiver given (ArgumentError)

        instance_exec(&block) if block
                      ^^^^^^
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:23:in `initialize'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:43:in `new'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:43:in `setting'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/tdlib-ruby-3.0.2/lib/tdlib-ruby.rb:19:in `block in <module:TD>'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:23:in `instance_exec'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:23:in `initialize'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:43:in `new'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/dsl.rb:43:in `setting'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/dry-configurable-0.16.1/lib/dry/configurable/class_methods.rb:44:in 'setting'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/tdlib-ruby-3.0.2/lib/tdlib-ruby.rb:18:in `<module:TD>'
        from /usr/share/rvm/gems/ruby-3.2.1/gems/tdlib-ruby-3.0.2/lib/tdlib-ruby.rb:5:in `<top (required)>'
        from <internal:/usr/share/rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:162:in 'require'
        from <internal:/usr/share/rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:162:in 'rescue in require'
        from <internal:/usr/share/rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:152:in 'require'
        from main.rb:1:in '<main>'
<internal:/usr/share/rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:88:in 'require': cannot load such file -- tdlib-ruby (LoadError)
        from <internal:/usr/share/rvm/rubies/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:88:in 'require'
        from main.rb:1:in '<main>''
@saditya370
Copy link

try downgrading dry-configurable gem
gem 'dry-configurable', '0.15.0' , bundle install worked for me

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