Problem running Rango

18 views
Skip to first unread message

Michał Łomnicki

unread,
Dec 2, 2009, 9:57:34 PM12/2/09
to rango-...@googlegroups.com
Hi

Jakub - thank you for introducing rango. Dozens of beers for really
good job ;) It looks promising and I hope it'll find its place in web
frameworks environment.

I use ruby-1.9.1-p243 installed via rvm. I've tried 2 approaches to run
rango.

1st: via gem
$ gem install rango
$ rango
You have to install simple-templater first!

The explanation was misleading as the real issue was lack of erubis gem.
So I suppose simple-templater should depend on erubis gem.

Then after installing erubis
$ rango
/home/michal/.rvm/gems/ruby/1.9.1/gems/rango-0.1.0/lib/rango.rb:14:in
`<top (required)>': undefined method `default_internal=' for
Encoding:Class (NoMethodError)
from bin/rango:29:in `require'
from bin/rango:29:in `<main>'

I've got 2 ruby 1.9 versions
* 1.9.0 installed via aptitude -- /usr/bin/ruby1.9
* 1.9.1 installed via rvm

bin/rango starts with #!/use/bin/env ruby1.9 shebang
so it use system-installed ruby1.9.0 which seems to not include
Encoding.default_internal method

So I've changed shebang to #!/usr/bin/env ruby
and rvm ruby1.9.1 was used.
In my opinion you should notice in README that rango depends on
ruby1.9.1 and think over recognizing ruby verion on startup.

After then least and unsolved issue:
$ rango
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:86:in

`block in find': undefined method `to_sym' for nil:NilClass (NoMethodError)
from
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:85:in

`each'
from
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:85:in

`find'
from
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:85:in

`find'
from bin/rango:49:in `<main>'


I've stopped here. How can I solve that issue?

And the 2nd approach: clone github repo
$ git clone git://github.com/botanicus/rango.git
$ git submodule update --init
$ bin/rango
rango/lib/rango/mixins/application.rb:3:in `require': no such file to
load -- rubyexts/mixins/import (LoadError)


With Rango 0.1.0 ImportMixin is shipped in lib/rango/mixins/import.rb
With edge Rango I haven't found it. Any proposals?

Cheers,

Woodie

unread,
Dec 3, 2009, 12:35:27 AM12/3/09
to Rango Project
Yes, binding to 1.9.1 seems a bit extreme...

ERROR: While executing gem ... (Gem::InstallError)
rubyexts requires Ruby version >= 1.9.1

irb(main):001:0> RUBY_VERSION
=> "1.9.2dev"

botanicus

unread,
Dec 3, 2009, 3:16:19 PM12/3/09
to Rango Project
Sorry for troubles, I'm going to look at the issue tomorrow.

Cheers,

Jakub
> /home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-te mplater.rb:86:in
>
> `block in find': undefined method `to_sym' for nil:NilClass (NoMethodError)
>         from
> /home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-te mplater.rb:85:in
>
> `each'
>         from
> /home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-te mplater.rb:85:in
>
> `find'
>         from
> /home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-te mplater.rb:85:in

botanicus

unread,
Dec 4, 2009, 4:26:21 PM12/4/09
to Rango Project
I released a minor fix release of Rango and I hope it will work, I
changed the dependency to ~> 1.9. However I'm not able to check it
because I'm getting an error from RubyGems under JRuby. Try it please
and let me know.

Cheers,

Jakub

John Woodell

unread,
Dec 4, 2009, 5:11:52 PM12/4/09
to rango-...@googlegroups.com
bundler should not be a runtime dependency

Michał Łomnicki

unread,
Dec 7, 2009, 5:12:50 AM12/7/09
to rango-...@googlegroups.com
On pią, 2009-12-04 at 13:26 -0800, botanicus wrote:
> I released a minor fix release of Rango and I hope it will work, I
> changed the dependency to ~> 1.9. However I'm not able to check it
> because I'm getting an error from RubyGems under JRuby. Try it please
> and let me know.
>

Thanks, it started working, at least I created rango project.
However there is still little gotcha. You can create project
$ rango create project foobar

However it throws an exception when calling rango without arguments
$ rango

rango/vendor/simple-templater/lib/simple-templater.rb:86:in `block in


find': undefined method `to_sym' for nil:NilClass

which is obviously wrong as some usage information should be given -
I'm pretty sure that users starting with rango will really appreciate
that :)

--
Michał Łomnicki

botanicus

unread,
Dec 7, 2009, 10:05:00 AM12/7/09
to Rango Project
Bundler should be a *development* dependency, I know, but the trouble
is when I use development dependencies and then run gem install rango
--development, all the Rango dependencies with be installed include
its development dependencies. Rango depends on Rack and Rack has
Mongrel as its development dependency. As you probably know, Mongrel
doesn't work with Ruby 1.9, so the whole installation will fail.

Since Rack team never reply to my pull requests or mails, I'm not
going to waste my time to try it again so I guess we have to wait till
someone from Rack team will be so nice and remove Mongrel from
development dependencies. Then I put bundler as a development
dependency (as well as simple-templater).

botanicus

unread,
Dec 7, 2009, 10:05:56 AM12/7/09
to Rango Project
Cheers, I'll fix it soon. So does it work for you now, I mean with
JRuby?

Jakub

Michał Łomnicki

unread,
Dec 7, 2009, 11:28:40 AM12/7/09
to rango-...@googlegroups.com
On pon, 2009-12-07 at 07:05 -0800, botanicus wrote:
> Cheers, I'll fix it soon. So does it work for you now, I mean with
> JRuby?
>

I'm not using JRuby at all. My ruby1.9 installation is done via
http://rvm.beginrescueend.com/ which is just a quite popular solution to
use multiple ruby versions.
Anyway I've successfully created the rango project today. Unfortunately
I haven't got time to write and start even simple rango application so I
can't say more. I'm going to try it as soon as I can and will give you a
feedback.

--
Michał Łomnicki

Jakub Šťastný

unread,
Dec 8, 2009, 7:33:49 AM12/8/09
to rango-...@googlegroups.com
I'm using RVM as well, so it should work, hopefully, at least it works for me. However my Ruby 1.9.2 is the first preview and it has RUBY_VERSION => "1.9.1"

BTW don't forget to upgrade Rango before you start to do something, I released 0.1.1 (resp. 0.1.1.1 & 0.1.1.2) with important changes. It changed even generators, so if you haven't use it for generation, you should upgrade and generate it again.

I'm going to write a post about changes in 0.1.1, but I'm not sure when, now I'm working on my slides to Ruby Manor conference in London and I'm going to start a new job.

PS: what do you think about stability of 1.9.2? At least the preview isn't very stable.

Cheers,

Jakub Stastny
http://twitter.com/botanicus


2009/12/7 Michał Łomnicki <michal....@gmail.com>
Reply all
Reply to author
Forward
0 new messages