 |
Forums |
Admin Start New Thread
By: kyle buttress
RE: tried to use new version today [ reply ] 2007-10-16 21:35
|
|
I found that if there are some hidden chars in the yaml file then. it crases like you say. It took a few experiments to find a way to remove the hidden chars. Other than that I'm not sure what causes the issue with yaml.
|
By: kyle buttress
RE: tried to use new version today [ reply ] 2007-10-16 21:28
|
Here is the trace without the if referrer line
C:\ruby\gl_tail-0.06>gl_tail.rb
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Connecting to xxx.xxxx.xxxxxxxx.xxx.au...
Channel opened on xxx.xxxx.xxxxxxxx.xxx.au...
Pushing xxx.xxxx.xxxxxxxx.xxx.au
Reshape: 1200x700 = 0.583333333333333
1 frames in 6.400 seconds = 0.156 FPS
Elements[0], Activities[0]
./lib/parsers/apache.rb:22:in `parse': private method `gsub!' called for nil:NilClass (NoMethodError)
from ./lib/gl_tail.rb:266:in `parse_line'
from ./lib/gl_tail.rb:252:in `each'
from ./lib/gl_tail.rb:252:in `parse_line'
from ./lib/gl_tail.rb:282:in `do_tail'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `call'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `callback'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:447:in `do_data'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/driver.rb:323:in `do_channel_data'
... 7 levels...
from ./lib/gl_tail.rb:248:in `call'
from ./lib/gl_tail.rb:248:in `glutMainLoop'
from ./lib/gl_tail.rb:248:in `start'
from C:/ruby/gl_tail-0.06/gl_tail.rb:150
and when I add the if referrer line in the apache.rb it works fine
|
By: Barrett Little
RE: tried to use new version today [ reply ] 2007-10-16 14:15
|
Erlend,
Updating my source from r50 to r52 did the trick.
========================================
- def initialize file = 'config.yaml'
+ def initialize file
+ file ||= "config.yaml"
----------------------------------------
~ Barrett
|
By: Barrett Little
RE: tried to use new version today [ reply ] 2007-10-16 12:33
|
Erlend,
As of r46 through r50 I am receiving the same error noted by Kyle:
/usr/local/lib/ruby/1.8/yaml.rb:143:in `initialize': can't convert nil into String (TypeError)
from /usr/local/lib/ruby/1.8/yaml.rb:143:in `load_file'
from ./gl_tail.rb:57:in `initialize'
from ./gl_tail.rb:172
~ Barrett
-------------
OS X 10.4.10
Ruby 1.8.4 [powerpc-darwin8.7.0]
RubyGems 0.9.4
ruby-opengl 0.40.1
net-ssh 1.1.2
-------------
|
By: kyle buttress
RE: tried to use new version today [ reply ] 2007-10-16 00:28
|
I must have the worst ruby install ever...
I have revision 46 from svn however I edit the config.yaml file and then try to run it I get the following errror.
C:\Documents and Settings\s2194575\Desktop\fudgie\gl_16102007>ruby gl_tail.rb
c:/ruby/lib/ruby/1.8/yaml.rb:143:in `initialize': can't convert nil into String
(TypeError)
from c:/ruby/lib/ruby/1.8/yaml.rb:143:in `open'
from c:/ruby/lib/ruby/1.8/yaml.rb:143:in `load_file'
from gl_tail.rb:58:in `initialize'
from gl_tail.rb:173:in `new'
from gl_tail.rb:173
What am I doint wrong?
|
By: urs meier
RE: tried to use new version today [ reply ] 2007-10-15 08:12
|
i've been using macosx and since the last update i get the following error:
./gl_tail.rb
Connecting to xxx...
Channel opened on xxx...
Pushing xxx
Connecting to yyy...
Channel opened on yyy...
Pushing yyy
Connecting to zzz...
Channel opened on zzz...
Pushing zzz
Reshape: 1200x600 = 0.5
./lib/element.rb:144:in `render': undefined method `+' for nil:NilClass (NoMethodError)
from ./lib/block.rb:47:in `render'
from ./lib/block.rb:45:in `each'
from ./lib/block.rb:45:in `render'
from ./lib/gl_tail.rb:101:in `draw'
from ./lib/gl_tail.rb:100:in `each'
from ./lib/gl_tail.rb:100:in `draw'
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `to_proc'
from ./lib/gl_tail.rb:248:in `call'
from ./lib/gl_tail.rb:248:in `glutMainLoop'
from ./lib/gl_tail.rb:248:in `start'
from ./gl_tail.rb:150
btw. thanks for this really cool project
|
By: kyle buttress
RE: tried to use new version today [ reply ] 2007-10-15 01:25
|
found that config.yaml does not like spaces or tabs in the servers area?
however it then displays the following error.
C:\ruby\gl_tail-0.06>gl_tail6.rb
C:/ruby/gl_tail-0.06/gl_tail6.rb:56: undefined method `each' for nil:NilClass (NoMethodError)
|
By: kyle buttress
tried to use new version today [ reply ] 2007-10-14 23:15
|
Hi,
I have been using the older setup for a week or so and found it very useful.
I downloaded the new version 0.06 today and set it up, to test.
and received the following error.
C:\ruby\gl_tail-0.06>gl_tail.rb
Connecting to webaddress.au...
Channel opened on awebaddress.au...
Pushing webaddress.au
Reshape: 1200x600 = 0.5
./lib/parsers/apache.rb:22:in `parse': private method `gsub!' called for nil:NilClass (NoMethodError)
from ./lib/gl_tail.rb:266:in `parse_line'
from ./lib/gl_tail.rb:252:in `each'
from ./lib/gl_tail.rb:252:in `parse_line'
from ./lib/gl_tail.rb:282:in `do_tail'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `call'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:496:in `callback'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/channel.rb:447:in `do_data'
from c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/connection/driver.rb:323:in `do_channel_data'
... 7 levels...
from ./lib/gl_tail.rb:248:in `call'
from ./lib/gl_tail.rb:248:in `glutMainLoop'
from ./lib/gl_tail.rb:248:in `start'
from C:/ruby/gl_tail-0.06/gl_tail.rb:150
|
|
 |