Sinatra Error - `read ': Invalid argument .. (Errno::EINVAL)

Discussion in 'Ruby' started by Bhay Zone, Sep 8, 2010.

  1. Bhay Zone

    Bhay Zone Guest

    I'm hoping someone can help me here. I am a complete newbie to Ruby and
    Sinatra and cannot find any information related to this problem
    anywhere. Any help would be greatly appreciated.

    Ruby version=1.9.2
    I also have ruby 1.8.5 installed in a different folder. But ruby -v
    gives 1.9.2.

    While following the Sinatra tutorial on
    "http://titusd.co.uk/2010/04/07/a-beginners-sinatra-tutorial" I get the
    following error:

    C:\Test\Sinatra>ruby minimal.rb

    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:753:in
    `read
    ': Invalid argument - <internal:lib/rubygems/custom_require>
    (Errno::EINVAL)
    from
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb
    :753:in `inline_templates='
    from
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb
    :706:in `set'
    from
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb
    :715:in `block in enable'
    from
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb
    :715:in `each'
    from
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb
    :715:in `enable'
    from (__DELEGATE__):2:in `enable'
    from
    C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra.rb:7:in
    `<top (required)>'
    from <internal:lib/rubygems/custom_require>:33:in `require'
    from <internal:lib/rubygems/custom_require>:33:in `rescue in
    require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from minimal.rb:2:in `<main>'
    --
    Posted via http://www.ruby-forum.com/.
     
    Bhay Zone, Sep 8, 2010
    #1
    1. Advertising

  2. Bhay Zone

    Luis Lavena Guest

    On Sep 7, 8:23 pm, Bhay Zone <> wrote:
    > I'm hoping someone can help me here. I am a complete newbie to Ruby and
    > Sinatra and cannot find any information related to this problem
    > anywhere. Any help would be greatly appreciated.
    >
    > Ruby version=1.9.2
    > I also have ruby 1.8.5 installed in a different folder. But ruby -v
    > gives 1.9.2.
    >
    > While following the Sinatra tutorial on
    > "http://titusd.co.uk/2010/04/07/a-beginners-sinatra-tutorial" I get the
    > following error:
    >
    > C:\Test\Sinatra>ruby minimal.rb
    >
    > C:/Ruby192/lib/ruby/gems/1.9.1/gems/sinatra-1.0/lib/sinatra/base.rb:753:in
    > `read
    > ': Invalid argument - <internal:lib/rubygems/custom_require>
    > (Errno::EINVAL)
    >         from


    Please see Issue #50 of Sinatra:

    http://github.com/sinatra/sinatra/issues/#issue/50

    --
    Luis Lavena
     
    Luis Lavena, Sep 8, 2010
    #2
    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. viza

    &errno, sizeof errno

    viza, Sep 12, 2008, in forum: C Programming
    Replies:
    20
    Views:
    1,039
    Tim Rentsch
    Sep 14, 2008
  2. Glenn Linderman

    errno 22 instead of errno 2

    Glenn Linderman, Jan 28, 2009, in forum: Python
    Replies:
    0
    Views:
    376
    Glenn Linderman
    Jan 28, 2009
  3. Yura Kloubakov
    Replies:
    1
    Views:
    239
    GOTOU Yuuzou
    May 13, 2005
  4. Thaddeus L Olczyk

    Problem getting gems/listing gems. EINVAL

    Thaddeus L Olczyk, Aug 15, 2006, in forum: Ruby
    Replies:
    0
    Views:
    199
    Thaddeus L Olczyk
    Aug 15, 2006
  5. Ed Howland
    Replies:
    1
    Views:
    146
    Konstantin H.
    Oct 26, 2010
Loading...

Share This Page