Bugs item #28922, was opened at 2011-02-11 04:36
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28922&group_id=126

Category: `gem install` command
Group: None
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: John Mair (banister)
Assigned to: Nick Quaranto (qrush)
Summary: Get `undefined class/module YAML::PrivateType` when installing a gem 
in 1.9.2 

Initial Comment:
Here is the output when i try to `gem install pry` in ruby 1.9.2 in windows 7:

c:\>gem install pry
ERROR:  While executing gem ... (ArgumentError)
    undefined class/module YAML::PrivateType


And the output from `gem env`:

c:\>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.5.2
  - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [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:/emacs/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/


----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2011-02-11 16:04

Message:
I contacted the author and 0.4.8 has been released.

----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2011-02-11 10:53

Message:
I think the best solution is to have this gem be re-released.

----------------------------------------------------------------------

Comment By: Luis Lavena (luislavena)
Date: 2011-02-11 07:26

Message:
Correct, this is install time issue and is generated by this:

  def self._load(str)
    array = Marshal.load str

https://gist.github.com/822477

If the marshaled specs were already broken (due !!null issues from 1.5.0) then 
it will fail.

Seems this is the generated Marshal.

This seems something for rubygems.org hosting as this is coming from quick 
specs returned by rubygems.org

The gem itself do not contain the !!null part.


----------------------------------------------------------------------

Comment By: Erik Hollensbe (erikh)
Date: 2011-02-11 06:59

Message:
This happens at install time, not runtime.

----------------------------------------------------------------------

Comment By: Jon Forums (jonforums)
Date: 2011-02-11 06:54

Message:
Took a quick look through pry and didn't see yaml required, but do any of pry's 
deps use yaml (syck) and conflict with rg's psych preference?

----------------------------------------------------------------------

Comment By: Erik Hollensbe (erikh)
Date: 2011-02-11 05:29

Message:
Took a peek at this; it's not happening on my OS X 1.9.2 install with 1.5.2, 
and I do not have Psych installed. It is reproducible for me on 1.9.2 mingw.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28922&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to