TCPClient issue #9

jhickner opened this Issue Jun 30, 2011 · 2 comments


None yet
2 participants


I'm trying out the rmodbus library, but I'm having trouble instantiating a TCPClient. I get the following error:

~ ➔ rvm use ruby-1.8.7
Using /Users/jhickner/.rvm/gems/ruby-1.8.7-p334
~ ➔ irb
>> require 'rubygems'
=> true
>> require 'rmodbus'
=> true
>> c ='', 502)
NameError: uninitialized constant ModBus::TCP::ModBusTimeout
    from /Users/jhickner/.rvm/gems/ruby-1.8.7-p334/gems/rmodbus-1.0.1/lib/rmodbus/tcp.rb:40:in `open_tcp_connection'
    from /Users/jhickner/.rvm/gems/ruby-1.8.7-p334/gems/rmodbus-1.0.1/lib/rmodbus/tcp_client.rb:31:in `open_connection'
    from /Users/jhickner/.rvm/gems/ruby-1.8.7-p334/gems/rmodbus-1.0.1/lib/rmodbus/client.rb:29:in `initialize'
    from (irb):3:in `new'
    from (irb):3

I get the same error in ruby 1.9.2, 1.9.1 and 1.8.7

@flipback flipback added a commit that referenced this issue Jun 30, 2011

@flipback flipback Fixed issue #9 f4f8543

flipback commented Jun 30, 2011

Please update your gem

That fixed it! Thanks!

jhickner closed this Jun 30, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment