Modules acting up after relocating code

Discussion in 'Ruby' started by Walle Wallen, Jan 27, 2011.

  1. Walle Wallen

    Walle Wallen Guest

    Hello,

    I'm having a strange problem with some of my required modules/gems.
    After relocating code to new files some of the modules has started
    acting strange. For example, Hpricot has started generating Exceptions
    as well as net/ssh regarding NoMethodError. What could be the problem?

    Some of the Exceptions:

    Exception `NoMethodError' at
    /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.0/lib/net/ssh/buffer.rb:55 -
    private method `send' called for #<Net::SSH::Buffer:0x101579908
    @content="", @position=0>

    Exception `NoMethodError' at
    /Library/Ruby/Gems/1.8/gems/hpricot-0.8.3/lib/hpricot/elements.rb:310 -
    private method `send' called for #<Hpricot::Elem:0x1005a38d0>

    //Walle

    --
    Posted via http://www.ruby-forum.com/.
     
    Walle Wallen, Jan 27, 2011
    #1
    1. Advertising

  2. On Thu, Jan 27, 2011 at 6:55 PM, Walle Wallen <> wrote:
    > I'm having a strange problem with some of my required modules/gems.
    > After relocating code to new files some of the modules has started
    > acting strange. For example, Hpricot has started generating Exceptions
    > as well as net/ssh regarding NoMethodError. What could be the problem?
    >
    > Some of the Exceptions:
    >
    > Exception `NoMethodError' at
    > /Library/Ruby/Gems/1.8/gems/net-ssh-2.1.0/lib/net/ssh/buffer.rb:55 -
    > private method `send' called for #<Net::SSH::Buffer:0x101579908
    > @content="", @position=0>
    >
    > Exception `NoMethodError' at
    > /Library/Ruby/Gems/1.8/gems/hpricot-0.8.3/lib/hpricot/elements.rb:310 -
    > private method `send' called for #<Hpricot::Elem:0x1005a38d0>


    We need more context, at least stack traces and probably also how you
    use those libraries. Ruby and gem versions are probably also helpful.

    Cheers

    robert


    --
    remember.guy do |as, often| as.you_can - without end
    http://blog.rubybestpractices.com/
     
    Robert Klemme, Jan 28, 2011
    #2
    1. Advertising

  3. Walle Wallen

    Walle Wallen Guest

    Robert Klemme wrote in post #978150:
    > On Thu, Jan 27, 2011 at 6:55 PM, Walle Wallen <>
    > wrote:
    >> @content="", @position=0>
    >>
    >> Exception `NoMethodError' at
    >> /Library/Ruby/Gems/1.8/gems/hpricot-0.8.3/lib/hpricot/elements.rb:310 -
    >> private method `send' called for #<Hpricot::Elem:0x1005a38d0>

    >
    > We need more context, at least stack traces and probably also how you
    > use those libraries. Ruby and gem versions are probably also helpful.
    >
    > Cheers
    >
    > robert


    Hey,
    I solved the problem, one of my functions superimposed send in net/http
    as well as in hpricot.

    Thanks.

    //Walle

    --
    Posted via http://www.ruby-forum.com/.
     
    Walle Wallen, Jan 28, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AntiriadElectronics

    Relocating - need advice

    AntiriadElectronics, Jul 23, 2005, in forum: VHDL
    Replies:
    1
    Views:
    414
    Andy Peters
    Jul 25, 2005
  2. =?Utf-8?B?RGF2ZQ==?=

    Relocating Web page positioning

    =?Utf-8?B?RGF2ZQ==?=, Feb 10, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    338
    Chris Jackson
    Feb 12, 2004
  3. Dave
    Replies:
    1
    Views:
    379
    Eric Lawrence [MSFT]
    Feb 20, 2004
  4. -
    Replies:
    6
    Views:
    743
  5. Replies:
    0
    Views:
    151
Loading...

Share This Page