gem list -rd a generates an error

Discussion in 'Ruby' started by John, May 11, 2011.

  1. John

    John Guest

    The command "gem list -rd a" generates the following error:


    C:\gemlist>gem list -rd a

    *** REMOTE GEMS ***

    ERROR: While executing gem ... (ArgumentError)
    undefined class/module YAML::Syck::DefaultKey

    C:\Users\spanton\gemlist>gem update --system
    Latest version currently installed. Aborting.

    -------------------------------------------------------------------
    I running the following software:

    Windows 7
    ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
    gem 1.8.1

    Any suggetions or workaround?

    Thanks,
    John
     
    John, May 11, 2011
    #1
    1. Advertising

  2. John

    Luis Lavena Guest

    Re: gem list -rd a generates an error

    On May 11, 1:41 pm, John <> wrote:
    > The command  "gem list -rd  a"   generates the following error:
    >
    > C:\gemlist>gem list -rd a
    >
    > *** REMOTE GEMS ***
    >
    > ERROR:  While executing gem ... (ArgumentError)
    >     undefined class/module YAML::Syck::DefaultKey
    >
    > C:\Users\spanton\gemlist>gem update --system
    > Latest version currently installed. Aborting.
    >
    > -------------------------------------------------------------------
    > I running the following software:
    >
    > Windows 7
    > ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
    > gem  1.8.1
    >
    > Any suggetions or workaround?


    Please provide the full output of "gem env" plus the same command with
    "--debug -V" options:

    gem list -rd --debug -V

    One small note, listing remote gems might take a while, are you sure
    you want to do that instead of browse rubygems.org?

    --
    Luis Lavena
     
    Luis Lavena, May 11, 2011
    #2
    1. Advertising

  3. John

    John Guest

    Re: gem list -rd a generates an error

    On May 11, 3:16 pm, Luis Lavena <> wrote:
    > On May 11, 1:41 pm, John <> wrote:
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > > The command  "gem list -rd  a"   generates the following error:

    >
    > > C:\gemlist>gem list -rd a

    >
    > > *** REMOTE GEMS ***

    >
    > > ERROR:  While executing gem ... (ArgumentError)
    > >     undefined class/module YAML::Syck::DefaultKey

    >
    > > C:\Users\spanton\gemlist>gem update --system
    > > Latest version currently installed. Aborting.

    >
    > > -------------------------------------------------------------------
    > > I running the following software:

    >
    > > Windows 7
    > > ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
    > > gem  1.8.1

    >
    > > Any suggetions or workaround?

    >
    > Please provide the full output of "gem env" plus the same command with
    > "--debug -V" options:
    >
    > gem list -rd --debug -V
    >
    > One small note, listing remote gems might take a while, are you sure
    > you want to do that instead of browse rubygems.org?
    >
    > --
    > Luis Lavena

    =================================================================
    I am trying to create a index of gem names & Summary lines
    so that I can perform keyword searches. The gem name alone
    does not provide enough info to identify the code.
    Thanks for your help,
    John
    =================================================================
    The following is the information you requesed:
    C:\tools>gem env
    RubyGems Environment:
    - RUBYGEMS VERSION: 1.8.1
    - RUBY VERSION: 1.8.7 (2011-03-15 patchlevel 330) [java]
    - INSTALLATION DIRECTORY: c:/jruby-1.6.0/lib/ruby/gems/1.8
    - RUBY EXECUTABLE: c:/jruby-1.6.0/bin/jruby.exe
    - EXECUTABLE DIRECTORY: c:/jruby-1.6.0/bin
    - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.6
    - GEM PATHS:
    - c:/jruby-1.6.0/lib/ruby/gems/1.8
    - C:/Users/spanton/.gem/jruby/1.8
    - GEM CONFIGURATION:
    - :update_sources => true
    - :verbose => true
    - :benchmark => false
    - :backtrace => false
    - :bulk_threshold => 1000
    - "install" => "--no-rdoc --no-ri --env-shebang"
    - "update" => "--no-rdoc --no-ri --env-shebang"
    - REMOTE SOURCES:
    - http://rubygems.org/



    C:\tools>gem list -rd --debug -V

    *** REMOTE GEMS ***

    GET http://rubygems.org/latest_specs.4.8.gz
    302 Found
    GET http://production.s3.rubygems.org/latest_specs.4.8.gz
    200 OK
    GET http://rubygems.org/quick/Marshal.4.8/ace-rails-0.0.2.gemspec.rz
    Exception `EOFError' at org/jruby/RubyIO.java:2637 - End of file
    reached
    Exception `EOFError' at org/jruby/RubyIO.java:2637 - End of file
    reached
    connection reset after 2 requests, retrying
    GET http://rubygems.org/quick/Marshal.4.8/ace-rails-0.0.2.gemspec.rz
    302 Found
    GET http://production.cf.rubygems.org/quick/Marshal.4.8/ace-rails-0.0.2.gemspec.rz
    200 OK
    ERROR: While executing gem ... (ArgumentError)
    undefined class/module YAML::Syck::DefaultKey
    org/jruby/RubyMarshal.java:148:in `load'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/
    specification.rb:614:in `_load'
    org/jruby/RubyMarshal.java:148:in `load'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:
    134:in `fetch_spec'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/commands/
    query_command.rb:195:in `output_query_results'
    org/jruby/RubyArray.java:1572:in `each'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/commands/
    query_command.rb:146:in `output_query_results'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/commands/
    query_command.rb:121:in `execute'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/commands/
    list_command.rb:31:in `execute'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/command.rb:
    278:in `invoke'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/
    command_manager.rb:147:in `process_args'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/
    command_manager.rb:117:in `run'
    c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:
    64:in `run'
    c:\jruby-1.6.0\bin\gem:21:in `(root)'
    Exception `Gem::SystemExitException' at c:/jruby-1.6.0/lib/ruby/
    site_ruby/1.8/rubygems/user_interaction.rb:332 - Exiting RubyGems with
    exit_
    code 1
     
    John, May 12, 2011
    #3
  4. John

    Luis Lavena Guest

    Re: gem list -rd a generates an error

    On May 12, 12:18 am, John <> wrote:
    >
    > =================================================================
    > I am trying to create a index of gem names & Summary lines
    > so that I can perform keyword searches. The gem name alone
    > does not provide enough info to identify the code.


    Have you taken a look to gemsearch?

    http://gemsearch.heroku.com/

    > Thanks for your help,
    > John
    > =================================================================
    > The following is the information you requesed:
    > C:\tools>gem env
    > RubyGems Environment:
    >   - RUBYGEMS VERSION: 1.8.1
    >   - RUBY VERSION: 1.8.7 (2011-03-15 patchlevel 330) [java]
    >   - INSTALLATION DIRECTORY: c:/jruby-1.6.0/lib/ruby/gems/1.8
    >   - RUBY EXECUTABLE: c:/jruby-1.6.0/bin/jruby.exe
    >   - EXECUTABLE DIRECTORY: c:/jruby-1.6.0/bin
    >   - RUBYGEMS PLATFORMS:
    >     - ruby
    >     - universal-java-1.6
    >   - GEM PATHS:
    >      - c:/jruby-1.6.0/lib/ruby/gems/1.8
    >      - C:/Users/spanton/.gem/jruby/1.8
    >   - GEM CONFIGURATION:
    >      - :update_sources => true
    >      - :verbose => true
    >      - :benchmark => false
    >      - :backtrace => false
    >      - :bulk_threshold => 1000
    >      - "install" => "--no-rdoc --no-ri --env-shebang"
    >      - "update" => "--no-rdoc --no-ri --env-shebang"
    >   - REMOTE SOURCES:
    >      -http://rubygems.org/
    >


    Well, this do not match your previous statement.

    First you said:

    "I running the following software:
    Windows 7
    ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
    gem 1.8.1 "

    But now you show to us that you're using JRuby.

    JRuby implementation of YAML differs from CRuby (the one provided by
    RubyInstaller)

    Please post this to JRuby list for better responses.

    --
    Luis Lavena
     
    Luis Lavena, May 12, 2011
    #4
  5. John

    John Guest

    Re: gem list -rd a generates an error

    On May 11, 8:44 pm, Luis Lavena <> wrote:
    > On May 12, 12:18 am, John <> wrote:
    >
    >
    >
    > > =================================================================
    > > I am trying to create a index of gem names & Summary lines
    > > so that I can perform keyword searches. The gem name alone
    > > does not provide enough info to identify the code.

    >
    > Have you taken a look to gemsearch?
    >
    > http://gemsearch.heroku.com/
    >
    > ...


    ===========================================================
    Change path so jruby/bin after ruby/bin
    ===========================================================
    Here is an example of error: gem list -rd acts_as_taggable_simple

    C:\tools>gem env
    RubyGems Environment:
    - RUBYGEMS VERSION: 1.7.2
    - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32]
    - INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1
    - RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe
    - EXECUTABLE DIRECTORY: C:/Ruby192/bin
    - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
    - GEM PATHS:
    - C:/Ruby192/lib/ruby/gems/1.9.1
    - C:/Users/spanton/.gem/ruby/1.9.1
    - GEM CONFIGURATION:
    - :update_sources => true
    - :verbose => true
    - :benchmark => false
    - :backtrace => false
    - :bulk_threshold => 1000
    - REMOTE SOURCES:
    - http://rubygems.org/

    ====== No error ===
    C:\tools>gem list -rd acts_as_taggable_o

    *** REMOTE GEMS ***

    acts_as_taggable_on_steroids (1.2)
    Author: Jonathan Viney
    Rubyforge:
    http://rubyforge.org/projects/acts_as_taggable_on_steroids
    Homepage: http://github.com/jviney/acts_as_taggable_on_steroids

    Rails plugin that is based on acts_as_taggable by DHH but includes
    extras such as tests, smarter tag assignment, and tag cloud
    calculations.

    ====== ****** Error ****** ========

    C:\tools>gem list -rd acts_as_taggable_simple

    *** REMOTE GEMS ***

    ERROR: While executing gem ... (NameError)
    uninitialized constant Psych::Syck


    ===== same command with options: --debug -V

    C:\tools>gem list -rd --debug -V acts_as_taggable_simple
    Exception `NameError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
    command_manager.rb:163 - uninitialized constant Gem::Commands::ListCom
    mand

    *** REMOTE GEMS ***

    Exception `Gem::LoadError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/
    rubygems.rb:926 - Could not find RubyGem sources (> 0.0.1)

    GET http://rubygems.org/latest_specs.4.8.gz
    Exception `Errno::EWOULDBLOCK' at C:/Ruby192/lib/ruby/1.9.1/net/
    protocol.rb:135 - A non-blocking socket operation could not be
    completed imm
    ediately. - read would block
    302 Found
    GET http://production.s3.rubygems.org/latest_specs.4.8.gz
    Exception `Errno::EWOULDBLOCK' at C:/Ruby192/lib/ruby/1.9.1/net/
    protocol.rb:135 - A non-blocking socket operation could not be
    completed imm
    ediately. - read would block
    304 Not Modified
    Exception `NameError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
    specification.rb:198 - uninitialized constant Psych::Syck
    ERROR: While executing gem ... (NameError)
    uninitialized constant Psych::Syck
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:
    198:in `load'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:
    198:in `_load'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:
    133:in `load'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:
    133:in `fetch_spec'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/
    query_command.rb:192:in `block in output_query_results'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/
    query_command.rb:143:in `each'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/
    query_command.rb:143:in `output_query_results'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/
    query_command.rb:117:in `execute'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/commands/
    list_command.rb:31:in `execute'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in
    `invoke'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
    command_manager.rb:133:in `process_args'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
    command_manager.rb:103:in `run'
    C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:
    64:in `run'
    C:/Ruby192/bin/gem:21:in `<main>'
     
    John, May 12, 2011
    #5
  6. John

    Luis Lavena Guest

    Re: gem list -rd a generates an error

    On May 12, 10:46 am, John <> wrote:
    >
    > C:\tools>gem list -rd --debug -V  acts_as_taggable_simple
    > Exception `NameError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
    > command_manager.rb:163 - uninitialized constant Gem::Commands::ListCom
    > mand
    >
    > *** REMOTE GEMS ***
    >
    > Exception `NameError' at C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/
    > specification.rb:198 - uninitialized constant Psych::Syck
    > ERROR:  While executing gem ... (NameError)
    >     uninitialized constant Psych::Syck
    >         C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:
    > 198:in `load'
    >         C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:


    Broken gemspec:

    https://rubygems.org/gems/acts_as_taggable_simple

    See the rails dependency, the version is not published correctly.

    Please ask the gem author to correct that, as previous version (0.0.2)
    was correct:
    https://rubygems.org/gems/acts_as_taggable_simple/versions/0.0.2

    (Well, doesn't have any dependency listed)

    --
    Luis Lavena
     
    Luis Lavena, May 12, 2011
    #6
    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. han
    Replies:
    1
    Views:
    136
    Lyle Johnson
    Oct 24, 2005
  2. Clifford Heath
    Replies:
    7
    Views:
    334
    Shanti Braford
    Jun 9, 2006
  3. Austin 7873
    Replies:
    5
    Views:
    216
    Eric Hodel
    Jan 27, 2007
  4. Mike Nicholaides
    Replies:
    3
    Views:
    106
    Mike Nicholaides
    Mar 28, 2008
  5. Markus Fischer
    Replies:
    4
    Views:
    364
    Nick Klauer
    Mar 27, 2011
Loading...

Share This Page