[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Struggling With RubyGems

James Gray

1/17/2007 9:29:00 PM

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

16 Answers

Gavin Kistner

1/17/2007 9:37:00 PM

0

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.rub...

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]

Gregory Seidman

1/17/2007 9:43:00 PM

0

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


James Gray

1/17/2007 9:58:00 PM

0

On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:

> 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?

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

James Edward Gray II

Chuck Remes

1/17/2007 10:14:00 PM

0


On Jan 17, 2007, at 3:40 PM, Phrogz wrote:

> 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.rub...
>
> 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]

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.rub...
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


David Goodlad

1/17/2007 10:18:00 PM

0

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:
>
> > 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?
>
> 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

--
Dave Goodlad
dgoodlad@gmail.com or dave@goodlad.ca
http://david.g...

James Gray

1/17/2007 11:21:00 PM

0

On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:

> On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
>> On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:
>>
>> > 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?
>>
>> 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.

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.rub...

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

Tim Pease

1/17/2007 11:33:00 PM

0

On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:
>
> > On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> >> On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:
> >>
> >> > 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?
> >>
> >> 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.
>
> 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.rub...
>
> 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

Tim Pease

1/17/2007 11:36:00 PM

0

On 1/17/07, Tim Pease <tim.pease@gmail.com> wrote:
> On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> > On Jan 17, 2007, at 4:17 PM, David Goodlad wrote:
> >
> > > On 1/17/07, James Edward Gray II <james@grayproductions.net> wrote:
> > >> On Jan 17, 2007, at 3:42 PM, Gregory Seidman wrote:
> > >>
> > >> > 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?
> > >>
> > >> 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.
> >
> > 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.rub...
> >
> > 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.
>

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

James Gray

1/17/2007 11:50:00 PM

0

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

Eric Hodel

1/18/2007 2:45:00 AM

0

On Jan 17, 2007, at 15:50, James Edward Gray II wrote:
> 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.

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.se...

I LIT YOUR GEM ON FIRE!