Gem list -rd a generates an error

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

On May 11, 1:41pm, John [email protected] wrote:

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?

On May 11, 3:16pm, Luis L. [email protected] wrote:

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

“–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 L.
=================================================================
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:

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 ExceptionEOFError’ 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:inload’
org/jruby/RubyMarshal.java:148:in load' c:/jruby-1.6.0/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb: 134:infetch_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:ineach’
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:inexecute’
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:ininvoke’
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:inrun’
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

On May 11, 8:44pm, Luis L. [email protected] wrote:

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:

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

*** REMOTE GEMS ***

acts_as_taggable_on_steroids (1.2)
Author: Jonathan V.
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 ExceptionErrno::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:inload’
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:inload’
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:inblock 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:inoutput_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:inexecute’
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:inprocess_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:inrun’
C:/Ruby192/bin/gem:21:in `’

On May 12, 10:46am, John [email protected] wrote:

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)

On May 12, 12:18am, John [email protected] 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/

  • EXECUTABLE DIRECTORY: c:/jruby-1.6.0/bin
  • :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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs