You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Shane Curcuru <as...@shanecurcuru.org> on 2019/05/18 18:37:43 UTC

Whimsy OSX setup issue: `': undefined method `[]' for false:FalseClass (NoMethodError)

I've been slowly going through the MACOSD.md setup today on my brand new
Mac (10.14.5), and have made some clarifications and fixes to the
instructions.  But now I'm stuck with this:

/srv/whimsy$ sudo ruby -I lib -r whimsy/asf -e "ASF::LDAP.configure"
Traceback (most recent call last):
	6: from
/Users/me/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
`require'
	5: from
/Users/me/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
`require'
	4: from /Users/me/src/g/whimsy/lib/whimsy/asf.rb:1:in `<top (required)>'
	3: from /Users/me/src/g/whimsy/lib/whimsy/asf.rb:1:in `require_relative'
	2: from /Users/me/src/g/whimsy/lib/whimsy/asf/config.rb:6:in `<top
(required)>'
	1: from /Users/me/src/g/whimsy/lib/whimsy/asf/config.rb:14:in
`<module:ASF>'
/Users/me/src/g/whimsy/lib/whimsy/asf/config.rb:20:in `<class:Config>':
undefined method `[]' for false:FalseClass (NoMethodError)

Any tips?  Only happens on my new machine, not on my old one.

-- 

- Shane
  Whimsy PMC
  The Apache Software Foundation

Re: Whimsy OSX setup issue: `': undefined method `[]' for false:FalseClass (NoMethodError)

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, May 18, 2019 at 5:55 PM Shane Curcuru <as...@shanecurcuru.org> wrote:
>
> Sam Ruby wrote on 5/18/19 5:02 PM:
> > I'm not at my computer right now but looking at
> > https://github.com/apache/whimsy/blob/master/lib/whimsy/asf/config.rb it
> > looks like you might have an empty .whimsy file in your home directory?
>
> !#@^#@^ I'd *swear* I saved ~/.whimsy beforehand.  Works now!
>
> Next issue is over on slack chan: running a whimsy.local *.cgi gives
> can't require, where the traceback is from the system 2.3 ruby, not the
> rbenv 2.5.1 ruby (which I thought I rbevn global'd properly).
>
> whimsy.local/test.cgi?test=yes confirms it's using the system ruby for
> most stuff, which is why it's failing.  Is the ln -s trick that Dave
> added to override system in favor of the rbenv 2.5.1 version the only
> way to solve this?
>
> But first: dinner on the grill.  Happy weekend all!

What is the first line in the two CGIs?

> --
>
> - Shane
>   Whimsy PMC
>   The Apache Software Foundation

- Sam Ruby

Re: Whimsy OSX setup issue: `': undefined method `[]' for false:FalseClass (NoMethodError)

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sun, May 19, 2019 at 1:01 AM Dave Fisher <da...@comcast.net> wrote:
>
> Sent from my iPhone
>
> > On May 18, 2019, at 2:55 PM, Shane Curcuru <as...@shanecurcuru.org> wrote:
> >
> > Sam Ruby wrote on 5/18/19 5:02 PM:
> >> I'm not at my computer right now but looking at
> >> https://github.com/apache/whimsy/blob/master/lib/whimsy/asf/config.rb it
> >> looks like you might have an empty .whimsy file in your home directory?
> >
> > !#@^#@^ I'd *swear* I saved ~/.whimsy beforehand.  Works now!
> >
> > Next issue is over on slack chan: running a whimsy.local *.cgi gives
> > can't require, where the traceback is from the system 2.3 ruby, not the
> > rbenv 2.5.1 ruby (which I thought I rbevn global'd properly).
> >
> > whimsy.local/test.cgi?test=yes confirms it's using the system ruby for
> > most stuff, which is why it's failing.  Is the ln -s trick that Dave
> > added to override system in favor of the rbenv 2.5.1 version the only
> > way to solve this?
>
> Possibly, what’s your PATH?

If test.cgi works, the PATH is set up correctly.  The next question is
why this other script is not using the path.  I suspect the answer is
in the shebang line for this other script.

> > But first: dinner on the grill.  Happy weekend all!
>
> It’s well past wine o’clock.
>
> I’ll check back in the next 48 hours.
>
> Dave
> >
> > --
> >
> > - Shane
> >  Whimsy PMC
> >  The Apache Software Foundation

- Sam Ruby

Re: Whimsy OSX setup issue: `': undefined method `[]' for false:FalseClass (NoMethodError)

Posted by Dave Fisher <da...@comcast.net>.

Sent from my iPhone

> On May 18, 2019, at 2:55 PM, Shane Curcuru <as...@shanecurcuru.org> wrote:
> 
> Sam Ruby wrote on 5/18/19 5:02 PM:
>> I'm not at my computer right now but looking at
>> https://github.com/apache/whimsy/blob/master/lib/whimsy/asf/config.rb it
>> looks like you might have an empty .whimsy file in your home directory?
> 
> !#@^#@^ I'd *swear* I saved ~/.whimsy beforehand.  Works now!
> 
> Next issue is over on slack chan: running a whimsy.local *.cgi gives
> can't require, where the traceback is from the system 2.3 ruby, not the
> rbenv 2.5.1 ruby (which I thought I rbevn global'd properly).
> 
> whimsy.local/test.cgi?test=yes confirms it's using the system ruby for
> most stuff, which is why it's failing.  Is the ln -s trick that Dave
> added to override system in favor of the rbenv 2.5.1 version the only
> way to solve this?

Possibly, what’s your PATH?

> 
> But first: dinner on the grill.  Happy weekend all!

It’s well past wine o’clock.

I’ll check back in the next 48 hours.

Dave
> 
> -- 
> 
> - Shane
>  Whimsy PMC
>  The Apache Software Foundation


Re: Whimsy OSX setup issue: `': undefined method `[]' for false:FalseClass (NoMethodError)

Posted by Shane Curcuru <as...@shanecurcuru.org>.
Sam Ruby wrote on 5/18/19 5:02 PM:
> I'm not at my computer right now but looking at
> https://github.com/apache/whimsy/blob/master/lib/whimsy/asf/config.rb it
> looks like you might have an empty .whimsy file in your home directory?

!#@^#@^ I'd *swear* I saved ~/.whimsy beforehand.  Works now!

Next issue is over on slack chan: running a whimsy.local *.cgi gives
can't require, where the traceback is from the system 2.3 ruby, not the
rbenv 2.5.1 ruby (which I thought I rbevn global'd properly).

whimsy.local/test.cgi?test=yes confirms it's using the system ruby for
most stuff, which is why it's failing.  Is the ln -s trick that Dave
added to override system in favor of the rbenv 2.5.1 version the only
way to solve this?

But first: dinner on the grill.  Happy weekend all!

-- 

- Shane
  Whimsy PMC
  The Apache Software Foundation

Re: Whimsy OSX setup issue: `': undefined method `[]' for false:FalseClass (NoMethodError)

Posted by Sam Ruby <ru...@intertwingly.net>.
I'm not at my computer right now but looking at
https://github.com/apache/whimsy/blob/master/lib/whimsy/asf/config.rb it
looks like you might have an empty .whimsy file in your home directory?

On Sat, May 18, 2019, 2:37 PM Shane Curcuru <as...@shanecurcuru.org> wrote:

> I've been slowly going through the MACOSD.md setup today on my brand new
> Mac (10.14.5), and have made some clarifications and fixes to the
> instructions.  But now I'm stuck with this:
>
> /srv/whimsy$ sudo ruby -I lib -r whimsy/asf -e "ASF::LDAP.configure"
> Traceback (most recent call last):
>         6: from
>
> /Users/me/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
> `require'
>         5: from
>
> /Users/me/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
> `require'
>         4: from /Users/me/src/g/whimsy/lib/whimsy/asf.rb:1:in `<top
> (required)>'
>         3: from /Users/me/src/g/whimsy/lib/whimsy/asf.rb:1:in
> `require_relative'
>         2: from /Users/me/src/g/whimsy/lib/whimsy/asf/config.rb:6:in `<top
> (required)>'
>         1: from /Users/me/src/g/whimsy/lib/whimsy/asf/config.rb:14:in
> `<module:ASF>'
> /Users/me/src/g/whimsy/lib/whimsy/asf/config.rb:20:in `<class:Config>':
> undefined method `[]' for false:FalseClass (NoMethodError)
>
> Any tips?  Only happens on my new machine, not on my old one.
>
> --
>
> - Shane
>   Whimsy PMC
>   The Apache Software Foundation
>