Forum: Ruby Struggling With RubyGems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-01-17 22:29
(Received via mailing list)
I can't seen to query or install gems over here.  Is anyone else
seeing something like this, or have I screwed up my local install?

$ gem query -r --name-matches highline

*** REMOTE GEMS ***
ERROR:  While executing gem ... (NoMethodError)
     undefined method `refresh' for #<Hash:0x57c704>

James Edward Gray II
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2007-01-17 22:33
(Received via mailing list)
Using gem 0.9, ruby 1.8.5 (windows one-click), no problems here. you
might
have messed up your install.

Try doing:

gem list -r highline

Does the same thing, easier and shorter to type. If that still fails,
you
should reinstall gems or maybe even Ruby.

Jason
852a62a28f1de229dc861ce903b07a60?d=identicon&s=25 Gavin Kistner (phrogz)
on 2007-01-17 22:40
(Received via mailing list)
James Edward Gray II wrote:
> I can't seen to query or install gems over here.  Is anyone else
> seeing something like this, or have I screwed up my local install?
>
> $ gem query -r --name-matches highline
>
> *** REMOTE GEMS ***
> ERROR:  While executing gem ... (NoMethodError)
>      undefined method `refresh' for #<Hash:0x57c704>

May be just you. Mine's working:

C:\>gem query -r --name-matches highline

*** REMOTE GEMS ***
Bulk updating Gem source index for: http://gems.rubyforge.org

highline (1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.0.4, 1.0.2, 1.0.1,
1.0.0, 0.6.1, 0.6.0, 0.5.0, 0.4.0, 0.3.0, 0.2.0)
    HighLine is a high-level command-line IO library.

C:\>gem --version
0.9.0

C:\>ruby -v
ruby 1.8.5 (2006-08-25) [i386-mswin32]
Bf6862e2a409078e13a3979c00bba1d6?d=identicon&s=25 Gregory Seidman (Guest)
on 2007-01-17 22:43
(Received via mailing list)
On Thu, Jan 18, 2007 at 06:29:09AM +0900, James Edward Gray II wrote:
> I can't seen to query or install gems over here.  Is anyone else
> seeing something like this, or have I screwed up my local install?
>
> $ gem query -r --name-matches highline
>
> *** REMOTE GEMS ***
> ERROR:  While executing gem ... (NoMethodError)
>     undefined method `refresh' for #<Hash:0x57c704>

I'm getting the same thing after upgrading to 0.9.1, and on gem install
or
gem update as well. Help?

> James Edward Gray II
--Greg
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-01-17 22:59
(Received via mailing list)
On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:

> I'm getting the same thing after upgrading to 0.9.1, and on gem
> install or
> gem update as well. Help?

This does appear to be related to my upgrade to 0.9.1.  Downgrading
has resolved the issue, for now.

James Edward Gray II
A0c079a7c3c9b2cf0bffebd84dc578b0?d=identicon&s=25 Chuck Remes (cremes)
on 2007-01-17 23:14
(Received via mailing list)
On Jan 17, 2007, at 3:40 PM, Phrogz wrote:

> May be just you. Mine's working:
> C:\>gem --version
> 0.9.0
>
> C:\>ruby -v
> ruby 1.8.5 (2006-08-25) [i386-mswin32]

Mine is broken since I updated to 0.9.1 today.

~ cremes$ gem query -r --name-matches highline

*** REMOTE GEMS ***
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  While executing gem ... (NoMethodError)
     undefined method `source_index' for #<Hash:0x2db547c>
~ cremes$ gem --version
0.9.1
~ cremes$ ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]

cr
8b66530927e39b74a7ecc079e0d7a734?d=identicon&s=25 David Goodlad (Guest)
on 2007-01-17 23:18
(Received via mailing list)
On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> >>     undefined method `refresh' for #<Hash:0x57c704>
> >
> > I'm getting the same thing after upgrading to 0.9.1, and on gem
> > install or
> > gem update as well. Help?
>
> This does appear to be related to my upgrade to 0.9.1.  Downgrading
> has resolved the issue, for now.

I had the same issue. Deleting the 'source_cache' file from my gems
directory solved it for me.

Dave
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-01-18 00:22
(Received via mailing list)
On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:

>> >> *** REMOTE GEMS ***
> I had the same issue. Deleting the 'source_cache' file from my gems
> directory solved it for me.

Doing that with a 0.9.1 install does restore the ability to query.  I
cannot install with it though:

$ gem -v
0.9.1
$ gem query -r --name-matches highline

*** REMOTE GEMS ***
Bulk updating Gem source index for: http://gems.rubyforge.org

highline (1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.0.4, 1.0.2,
1.0.1, 1.0.0, 0.6.1, 0.6.0, 0.5.0, 0.4.0, 0.3.0, 0.2.0)
     HighLine is a high-level command-line IO library.
$ sudo gem install highline
ERROR:  While executing gem ... (NoMethodError)
     undefined method `source_index' for #<Hash:0x2dbaa1c>

James Edward Gray II
4d5b5dd4e263d780a5dfe7ac8b8ac98c?d=identicon&s=25 Tim Pease (Guest)
on 2007-01-18 00:34
(Received via mailing list)
On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> >> >> $ gem query -r --name-matches highline
> >> has resolved the issue, for now.
>
> *** REMOTE GEMS ***
> Bulk updating Gem source index for: http://gems.rubyforge.org
>
> highline (1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.0.4, 1.0.2,
> 1.0.1, 1.0.0, 0.6.1, 0.6.0, 0.5.0, 0.4.0, 0.3.0, 0.2.0)
>      HighLine is a high-level command-line IO library.
> $ sudo gem install highline
> ERROR:  While executing gem ... (NoMethodError)
>      undefined method `source_index' for #<Hash:0x2dbaa1c>
>

James, did you clear out the source_cache for root?

Your query worked because you did it as you.  Your install did not
work because you tried to do it as root.

Just a thought.

Blessings,
TwP
4d5b5dd4e263d780a5dfe7ac8b8ac98c?d=identicon&s=25 Tim Pease (Guest)
on 2007-01-18 00:36
(Received via mailing list)
On 1/17/07, Tim Pease <tim.pease@gmail.com> wrote:
> > >> >>
> > >> This does appear to be related to my upgrade to 0.9.1.  Downgrading
> > $ gem query -r --name-matches highline
> >
>
> James, did you clear out the source_cache for root?
>
> Your query worked because you did it as you.  Your install did not
> work because you tried to do it as root.
>

Never mind.  There is only one source_cache :/  Doh!

I'll just go back to whatever it was I was doing over there ... ooh,
look! Butterfly!

TwP
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-01-18 00:51
(Received via mailing list)
On Jan 17, 2007, at 5:35 PM, Tim Pease wrote:

>> James, did you clear out the source_cache for root?
>>
>> Your query worked because you did it as you.  Your install did not
>> work because you tried to do it as root.
>>
>
> Never mind.  There is only one source_cache :/  Doh!

Actually, I originally cleared ~/.gem/source_cache.  When you
mentioned it, I cleared the one in root's home folder as well.  When
you gave me this final hint though, I found the one in /usr/local/lib/
ruby/gems/ and nuking that one did the trick.  I can now query and
install.

Thanks for all the fresh ideas.

James Edward Gray II
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2007-01-18 03:45
(Received via mailing list)
On Jan 17, 2007, at 15:50, James Edward Gray II wrote:
> mentioned it, I cleared the one in root's home folder as well.
> When you gave me this final hint though, I found the one in /usr/
> local/lib/ruby/gems/ and nuking that one did the trick.  I can now
> query and install.

Please archive your source cache and send it to me, should you have
this in the future.

Also, what does 'gem sources' say?

--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-01-18 04:39
(Received via mailing list)
On Jan 17, 2007, at 8:44 PM, Eric Hodel wrote:

> Also, what does 'gem sources' say?

$ gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org

James Edward Gray II
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2007-01-18 05:33
(Received via mailing list)
On Jan 17, 2007, at 19:38, James Edward Gray II wrote:
> On Jan 17, 2007, at 8:44 PM, Eric Hodel wrote:
>
>> Also, what does 'gem sources' say?
>
> $ gem sources
> *** CURRENT SOURCES ***
>
> http://gems.rubyforge.org

oh, also 'sudo gem sources'

--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!
0276239ca57aee241d4b41379587fa20?d=identicon&s=25 Lyle Johnson (Guest)
on 2007-01-18 17:04
(Received via mailing list)
On 1/17/07, Eric Hodel <drbrain@segment7.net> wrote:

> Please archive your source cache and send it to me, should you have
> this in the future.

I am still having this problem, although I have not zapped my various
source_cache files yet. I will send copies of my source_cache files to
Eric, offline.
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2007-01-18 17:53
(Received via mailing list)
On Jan 17, 2007, at 10:32 PM, Eric Hodel wrote:

> oh, also 'sudo gem sources'
$ sudo gem sources
Password:
*** CURRENT SOURCES ***

Need to update 9 gems from http://gems.rubyforge.org
.........
complete
http://gems.rubyforge.org

James Edward Gray II
2899cec9af525f7953e19c8210aca97c?d=identicon&s=25 Jason Perkins (Guest)
on 2007-01-18 18:04
(Received via mailing list)
On Jan 18, 2007, at 10:03 AM, Lyle Johnson wrote:

> On 1/17/07, Eric Hodel <drbrain@segment7.net> wrote:
>
>> Please archive your source cache and send it to me, should you have
>> this in the future.
>
> I am still having this problem, although I have not zapped my various
> source_cache files yet. I will send copies of my source_cache files to
> Eric, offline.

FWIW, I was having the same problem, but sudo gem sources appears to
have fixed it.


--
Jason Perkins
jperkins@sneer.org

"The computer allows you to make mistakes
faster than any other invention, with the
possible exception of handguns and tequila."

-Mitch Ratcliffe
171ea139761951336b844e708d1547ab?d=identicon&s=25 James Byrne (byrnejb)
on 2007-01-24 19:18
I had this problem as well and executing

# gem sources

as root did not clear it until I had manually removed  the old
source_cache.

# rm /usr/lib/ruby/gems/1.8/source_cache

I have a tar archive available of the orginal source_cache if that would
be of any use.
This topic is locked and can not be replied to.