librelist archives

« back to archive

Fwd: Can't use my Shoes!

Fwd: Can't use my Shoes!

From:
Augusto Nasso
Date:
2014-09-23 @ 23:20
I’m going nuts trying to install Shoes and Ruby and get things going. I’ve
started reading ‘Exploring Everyday Things with R and Ruby’ by Sau Sheong
Chang, and I’ve spent a couple of hours trying to get this done
unsuccessfully. When I try to run one of the samples, the output is:
‘simple-downloader.rb:1:in `': uninitialized constant Shoes (NameError)’,
like if Shoes wasn’t installed.

I’ve downloaded shoes-3.2.15-gtk2-x86_64.install and I’m using ruby-2.1.3,
but I’ve tried previous Ruby versions too, without different results. What
can I do?

Re: [shoes] Fwd: Can't use my Shoes!

From:
Carlos R. Tirado
Date:
2014-09-23 @ 23:44
How are your running the simple-downloader.rb sample?

just pointing Ruby to the sample wouldn't work, since Shoes is not loaded
$> ruby sample_path_to/simple-downloader.rb

but invoking Shoes and passing the path to the sample, should work:
$> path_to/shoes sample_path_to/simple-downloader.rb

You can also run the shoes app, it should present your with a menu where
the first option is "Open an App." and that one will show a file selector
from where you can find and click on simple-downloader.rb, and run it.

Other versions of Shoes would be different. For example you may install the
green_shoes gem, and then each one of your scripts could require it at the
top, then Shoes is auto-loaded.

HIH



On Tue, Sep 23, 2014 at 4:20 PM, Augusto Nasso <augustolnasso@gmail.com>
wrote:

>
> I’m going nuts trying to install Shoes and Ruby and get things going. I’ve
> started reading ‘Exploring Everyday Things with R and Ruby’ by Sau Sheong
> Chang, and I’ve spent a couple of hours trying to get this done
> unsuccessfully. When I try to run one of the samples, the output is:
> ‘simple-downloader.rb:1:in `': uninitialized constant Shoes (NameError)’,
> like if Shoes wasn’t installed.
>
> I’ve downloaded shoes-3.2.15-gtk2-x86_64.install and I’m using ruby-2.1.3,
> but I’ve tried previous Ruby versions too, without different results. What
> can I do?
>

Re: [shoes] Fwd: Can't use my Shoes!

From:
Augusto Nasso
Date:
2014-09-23 @ 23:57
Thanks for the response.

I was running it by calling 'ruby simple-downloader.rb' since I understood
it was a ruby extension.
I tried calling 'shoes samples/simple-downloader.rb' and the output is: 'no
such file to load -- rubygems'. I understand that I have rubygems, so what
do you think is happening here?
And also, where is the shoes app? How can I run it?
Thanks again!
Augusto.

2014-09-23 20:44 GMT-03:00 Carlos R. Tirado <tremendo@gmail.com>:

> How are your running the simple-downloader.rb sample?
>
> just pointing Ruby to the sample wouldn't work, since Shoes is not loaded
> $> ruby sample_path_to/simple-downloader.rb
>
> but invoking Shoes and passing the path to the sample, should work:
> $> path_to/shoes sample_path_to/simple-downloader.rb
>
> You can also run the shoes app, it should present your with a menu where
> the first option is "Open an App." and that one will show a file selector
> from where you can find and click on simple-downloader.rb, and run it.
>
> Other versions of Shoes would be different. For example you may install
> the green_shoes gem, and then each one of your scripts could require it at
> the top, then Shoes is auto-loaded.
>
> HIH
>
>
>
> On Tue, Sep 23, 2014 at 4:20 PM, Augusto Nasso <augustolnasso@gmail.com>
> wrote:
>
>>
>> I’m going nuts trying to install Shoes and Ruby and get things going.
>> I’ve started reading ‘Exploring Everyday Things with R and Ruby’ by Sau
>> Sheong Chang, and I’ve spent a couple of hours trying to get this done
>> unsuccessfully. When I try to run one of the samples, the output is:
>> ‘simple-downloader.rb:1:in `': uninitialized constant Shoes (NameError)’,
>> like if Shoes wasn’t installed.
>>
>> I’ve downloaded shoes-3.2.15-gtk2-x86_64.install and I’m using
>> ruby-2.1.3, but I’ve tried previous Ruby versions too, without different
>> results. What can I do?
>>
>
>

Re: [shoes] Fwd: Can't use my Shoes!

From:
Cecil Coupe
Date:
2014-09-24 @ 00:24
Hi,

    Shoe has it own built in Ruby - it does not use the Ruby you've 
installed.

The binary is  ~/.shoes/federales/shoes . If you want run from the 
command line
$ ./~.shoes/federales/shoes ~/.shoes/federales/samples/simple-downloader.rb

You can make a symbol links if you like to make that easier. Or run from 
the menu

Good luck,
--Cecil
On 09/23/2014 05:57 PM, Augusto Nasso wrote:
> Thanks for the response.
>
> I was running it by calling 'ruby simple-downloader.rb' since I 
> understood it was a ruby extension.
> I tried calling 'shoes samples/simple-downloader.rb' and the output 
> is: 'no such file to load -- rubygems'. I understand that I have 
> rubygems, so what do you think is happening here?
> And also, where is the shoes app? How can I run it?
> Thanks again!
> Augusto.
>
> 2014-09-23 20:44 GMT-03:00 Carlos R. Tirado <tremendo@gmail.com 
> <mailto:tremendo@gmail.com>>:
>
>     How are your running the simple-downloader.rb sample?
>
>     just pointing Ruby to the sample wouldn't work, since Shoes is not
>     loaded
>     $> ruby sa mple_path_to/simple-downloader.rb
>
>     but invoking Shoes and passing the path to the sample, should work:
>     $> path_to/shoes sample_path_to/simple-downloader.rb
>
>     You can also run the shoes app, it should present your with a menu
>     where the first option is "Open an App." and that one will show a
>     file selector from where you can find and click on
>     simple-downloader.rb, and run it.
>
>     Other versions of Shoes would be different. For example you may
>     install the green_shoes gem, and then each one of your scripts
>     could require it at the top, then Shoes is auto-loaded.
>
>     HIH
>
>
>
>     On Tue, Sep 23, 2014 at 4:20 PM, Augusto Nasso
>     <augustolnasso@gmail.com <mailto:augustolnasso@gmail.com>> wrote:
>
>
>         I’m going nuts trying to install Shoes and Ruby and get things
>         going. I’ve started reading ‘Exploring Everyday Things with R
>         and Ruby’ by Sau Sheong Chang, and I’ve spent a couple of
>         hours trying to get this done unsuccessfully. When I try to
>         run one of the samples, the output is:
>         ‘simple-downloader.rb:1:in `': uninitialized constant Shoes
>         (NameError)’, like if Shoes wasn’t installed.
>
>         I’ve downloaded shoes-3.2.15-gtk2-x86_64.install and I’m using
>         ruby-2.1.3, but I’ve tried previous Ruby versions too, without
>         different results. What can I do?
>
>
>

Re: [shoes] Fwd: Can't use my Shoes!

From:
Carlos R. Tirado
Date:
2014-09-24 @ 00:33
Since you got output from calling 'shoes sample/simple-downloader.rb' it
sounds like shoes is already in your path, or you have your command line
already in the path where shoes is. the command 'pwd' will _p_rint the
_w_orking _d_cirectory.

'no such file to load -- rubygems'
that sounds mayble like simple-downloader.rb is using the old require
'rubygems' that was required when Ruby 1.8, but you mentioned before you're
running 2.1.3, and now rubygems is not a gem itself? So, maybe remove that
require from the top of simple-download.rb ?



On Tue, Sep 23, 2014 at 4:57 PM, Augusto Nasso <augustolnasso@gmail.com>
wrote:

> Thanks for the response.
>
> I was running it by calling 'ruby simple-downloader.rb' since I understood
> it was a ruby extension.
> I tried calling 'shoes samples/simple-downloader.rb' and the output is:
> 'no such file to load -- rubygems'. I understand that I have rubygems, so
> what do you think is happening here?
> And also, where is the shoes app? How can I run it?
> Thanks again!
> Augusto.
>
> 2014-09-23 20:44 GMT-03:00 Carlos R. Tirado <tremendo@gmail.com>:
>
> How are your running the simple-downloader.rb sample?
>>
>> just pointing Ruby to the sample wouldn't work, since Shoes is not loaded
>> $> ruby sa mple_path_to/simple-downloader.rb
>>
>> but invoking Shoes and passing the path to the sample, should work:
>> $> path_to/shoes sample_path_to/simple-downloader.rb
>>
>> You can also run the shoes app, it should present your with a menu where
>> the first option is "Open an App." and that one will show a file selector
>> from where you can find and click on simple-downloader.rb, and run it.
>>
>> Other versions of Shoes would be different. For example you may install
>> the green_shoes gem, and then each one of your scripts could require it at
>> the top, then Shoes is auto-loaded.
>>
>> HIH
>>
>>
>>
>> On Tue, Sep 23, 2014 at 4:20 PM, Augusto Nasso <augustolnasso@gmail.com>
>> wrote:
>>
>>>
>>> I’m going nuts trying to install Shoes and Ruby and get things going.
>>> I’ve started reading ‘Exploring Everyday Things with R and Ruby’ by Sau
>>> Sheong Chang, and I’ve spent a couple of hours trying to get this done
>>> unsuccessfully. When I try to run one of the samples, the output is:
>>> ‘simple-downloader.rb:1:in `': uninitialized constant Shoes (NameError)’,
>>> like if Shoes wasn’t installed.
>>>
>>> I’ve downloaded shoes-3.2.15-gtk2-x86_64.install and I’m using
>>> ruby-2.1.3, but I’ve tried previous Ruby versions too, without different
>>> results. What can I do?
>>>
>>
>>
>