librelist archives

« back to archive

uninitialized constant Encoding::US_ASCII

uninitialized constant Encoding::US_ASCII

From:
7stud
Date:
2013-07-27 @ 09:25
I have these lines at the start of my shoes app:

Shoes.setup do
  gem 'snmp'
end

...and I get the error in the subject line when Shoes goes out and tries 
to find the gem.  I can't tell you what version of Shoes I'm using because
Shoes doesn't provide any version information, although I installed Shoes 
recently.  I am also unable to copy the complete stack trace from the 
Shoe's console window--because for some reason the console window is 
uncopyable.  So it seems like Shoes is completely screwed up.

Mac OSX 10.6.8

Re: [shoes] uninitialized constant Encoding::US_ASCII

From:
Tobias Pfeiffer
Date:
2013-07-27 @ 10:02
Hi there,

so yes the old shoes is a bit screwed up which is why we are working on 
a complete rewrite titled shoes4. If you installed from the website 
that version is really old, the master on github is a bit younger.

What you could do is make a screen shot of the console and then upload 
that picture somewhere.

Plus, does that error only occur when you have the setup block there or 
also with a simple app like:

Shoes.app do
  para 'Blubbb'
end

Cheers,
Tobi

On Sat 27 Jul 2013 11:25:05 AM CEST, 7stud wrote:
> I have these lines at the start of my shoes app:
>
> Shoes.setup do
>    gem 'snmp'
> end
>
> ...and I get the error in the subject line when Shoes goes out and tries
to find the gem.  I can't tell you what version of Shoes I'm using because
Shoes doesn't provide any version information, although I installed Shoes 
recently.  I am also unable to copy the complete stack trace from the 
Shoe's console window--because for some reason the console window is 
uncopyable.  So it seems like Shoes is completely screwed up.
>
> Mac OSX 10.6.8

Re: [shoes] uninitialized constant Encoding::US_ASCII

From:
7stud
Date:
2013-07-28 @ 05:18
Okay, thanks.

-----Original Message-----
From: "Cecil Coupe" [ccoupe@cableone.net]
Date: 07/27/2013 11:28 PM
To: "" <shoes@librelist.com>
Subject: Re: [shoes] uninitialized constant Encoding::US_ASCII

Hi,

   Shoes(3) contains it's own Ruby (and gems unique to Shoes). Getting 
another gem into shoes is a PITA if it works (it usually doesn't).

   Green Shoes would be an option except you're on OS X.

You could try Shoes 4 but that is still under development. You could 
search the Mailing List archives for 'serialport' which was a common gem 
that folks wanted. There may be workarounds you could try but expect 
difficulties.

--Cecil

On 07/27/2013 03:25 AM, 7stud wrote:
> I have these lines at the start of my shoes app:
>
> Shoes.setup do
>    gem 'snmp'
> end
>
> ...and I get the error in the subject line when Shoes goes out and tries
to find the gem.  I can't tell you what version of Shoes I'm using because
Shoes doesn't provide any version information, although I installed Shoes 
recently.  I am also unable to copy the complete stack trace from the 
Shoe's console window--because for some reason the console window is 
uncopyable.  So it seems like Shoes is completely screwed up.
>
> Mac OSX 10.6.8
>

Re: [shoes] uninitialized constant Encoding::US_ASCII

From:
7stud
Date:
2013-07-27 @ 23:15
Thanks for the response.

>what you could do is make a screen shot of the console and 
> then upload that picture somewhere.

Even better: I did a screen capture, then went here:

http://www.onlineocr.net/default.aspx

which is a free service that converts pictures to text.  Nice!  Here is 
the console output:


Shoes 
Shoes Console 
Error in <unknown> line 0 12013-07-27 16 56:06 -0600 uninitialized 
constant Encoding::US_ASCII 
/Applications/Shoes.app/Contents/MacOS/ruby/lib/uri/common.rb:226:in 
'escape' /Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/ 
remote_fetcher.rb:92:in 'download' 
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/ 
dependency_installersb:257:in 'block in install' 
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/ 
dependency_installerrb:247:in 'each' 
/Applications/Shoes.app/Contents/MacOS/ruby/lib/rubygems/ 
dependency_installerrb:247:in 'install' 
/Applications/Shoes.app/Contents/MacOS/lib/shoes/setup.rb:132:in 'block in
start' /Applications/Shoes.app/Contents/MacOS/lib/shoes/setup.rb:122:in 
'each' /Applications/Shoes.app/Contents/MacOS/lib/shoes/setup.rb:122:in 
'start' /Applications/Shoes.app/Contents/MacOS/lib/shoes/setup.rb:57:in 
'block (4 levels) in setup_app' 


> Plus, does that error only occur when you have the setup block 
> there or also with a simple app like:

All the shoes apps that I've tried without a setup block work fine.  The 
first app I tried with a setup block produced that error.

> If you installed from the website 
> that version is really old, the master on github is a 
> bit younger.

Well, github directs you to the website for downloads, so I must have 
downloaded shoes from the website.  I don't see anything called 'master' 
on github.





-----Original Message-----
-potsdam.de]
Date: 07/27/2013 06:03 AM
To: "" <shoes@librelist.com>
CC: "7stud" <7stud@excite.com>
Subject: Re: [shoes] uninitialized constant Encoding::US_ASCII

Hi there,

so yes the old shoes is a bit screwed up which is why we are working on 
a complete rewrite titled shoes4. If you installed from the website 
that version is really old, the master on github is a bit younger.

What you could do is make a screen shot of the console and then upload 
that picture somewhere.

Plus, does that error only occur when you have the setup block there or 
also with a simple app like:

Shoes.app do
  para 'Blubbb'
end

Cheers,
Tobi

On Sat 27 Jul 2013 11:25:05 AM CEST, 7stud wrote:
> I have these lines at the start of my shoes app:
>
> Shoes.setup do
>    gem 'snmp'
> end
>
> ...and I get the error in the subject line when Shoes goes out and tries
to find the gem.  I can't tell you what version of Shoes I'm using because
Shoes doesn't provide any version information, although I installed Shoes 
recently.  I am also unable to copy the complete stack trace from the 
Shoe's console window--because for some reason the console window is 
uncopyable.  So it seems like Shoes is completely screwed up.
>
> Mac OSX 10.6.8

Re: [shoes] uninitialized constant Encoding::US_ASCII

From:
Cecil Coupe
Date:
2013-07-28 @ 03:28
Hi,

   Shoes(3) contains it's own Ruby (and gems unique to Shoes). Getting 
another gem into shoes is a PITA if it works (it usually doesn't).

   Green Shoes would be an option except you're on OS X.

You could try Shoes 4 but that is still under development. You could 
search the Mailing List archives for 'serialport' which was a common gem 
that folks wanted. There may be workarounds you could try but expect 
difficulties.

--Cecil

On 07/27/2013 03:25 AM, 7stud wrote:
> I have these lines at the start of my shoes app:
>
> Shoes.setup do
>    gem 'snmp'
> end
>
> ...and I get the error in the subject line when Shoes goes out and tries
to find the gem.  I can't tell you what version of Shoes I'm using because
Shoes doesn't provide any version information, although I installed Shoes 
recently.  I am also unable to copy the complete stack trace from the 
Shoe's console window--because for some reason the console window is 
uncopyable.  So it seems like Shoes is completely screwed up.
>
> Mac OSX 10.6.8
>