RhoMobile V2.2 IDE (Mac) -> RhoHub Connectivity

Larrs - Pietro has asked me to put this in the RhoConnect forum rather than the RhoMobile forum.  It relates to RhoMobile -> Rhohub connectivity.

When trying to perform a Rhohub Build via RhoMobile IDE (Menu: RhoMobile, Rhohub Build).  I get a Connect Error and the attached two pop-up messages ("Rhohub Error.tiff" then "Rhohub Error 2.tiff").  I've added ssh keys, the api token etc.

RhoMobile V2.2

Mac OS 10.8

64bit

Anyone offer some indication about how to fix this?  Or at least what to take a look at?

Lars Burgess
Hi, Are you sure you're not

Hi,

Are you sure you're not connected behing an HTTP proxy?  It looks like RhoStudio is not able to make an HTTP connection to rhohub.com.  The HTTP proxy configuration is in the preferences menu where you added your RhoHub api key.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
I have Win7 VM with RhoMobile

I have Win7 VM with RhoMobile installed and all works fine.  The Mac version doesn't connect though.

I'll try the command line (mac terminal) connection to Rhohub and see if that works ok then report back to you.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
The folowing on my Win7 VM

The folowing on my Win7 VM works ok...

$ irb -rrubygems -rrhohub

> Rhohub.token = 'your-token-here'

> Rhohub.url = 'https://api.rhohub.com/api/v1/'

> Rhohub::App.list

On my Mac terminal I get ...

Rhohub.token = 'my token'

NameError: uninitialized constant Rhohub

So something is wrong with my Mac environment.  Not sure what though.    Mr Google was no help.  Any thoughts?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
A missing Gem apparently. 

A missing Gem apparently.  Heaven knows which though.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Pietro Francesc...
Hi David,can you share the

Hi David,

can you share the list of gem you've installed locally?

gem query --local

do you've rvm installed on you OSX machine? are you testing this from the right enviroment?

what is result of ruby --version?

thanks

Pietro

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
Hi Pietroruby -versionruby 1

Hi Pietro

ruby -version

ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]

rvm --version

rvm 1.20.12 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

gem query --local

*** LOCAL GEMS ***

activesupport (3.2.12, 2.3.17)

async-rack (0.5.1)

bigdecimal (1.1.0)

bundler (1.3.5, 1.3.4)

connection_pool (1.0.0, 0.9.2)

daemons (1.1.9)

dbd-mysql (0.4.4)

dbi (0.4.5)

deprecated (2.0.1)

diff-lcs (1.2.1, 1.1.3)

eventmachine (1.0.3)

extlib (0.9.16)

highline (1.6.19, 1.6.16)

i18n (0.6.4, 0.6.1)

io-console (0.3)

json (1.8.0, 1.7.7, 1.6.8)

macaddr (1.6.1)

mime-types (1.23, 1.21)

minitest (2.5.1)

mono_logger (1.1.0, 1.0.0)

multi_json (1.7.5, 1.7.4, 1.7.0)

mysql (2.9.1)

nokogiri (1.5.6)

rack (1.5.2)

rack-fiber_pool (0.9.3)

rack-protection (1.5.0)

rack-test (0.6.2)

rake (10.0.4, 10.0.3, 0.9.2.2)

rdoc (3.9.5)

redis (3.0.4, 3.0.3)

redis-namespace (1.3.0, 1.2.1)

resque (1.24.1, 1.23.1)

rest-client (1.6.7)

rhoconnect (3.4.2)

rhoconnect-adapters (1.0.5)

rhodes (3.5.1.13)

rhodes-translator (0.0.4)

rhoelements (2.2.1.13)

rhohub (1.0)

rhomobile-debug (1.0.6)

rspec (2.10.0)

rspec-core (2.10.1)

rspec-expectations (2.10.0)

rspec-mocks (2.10.1)

rubygems-bundler (1.1.1)

rubyzip (0.9.9)

rvm (1.11.3.7, 1.11.3.6)

sinatra (1.4.2, 1.4.1)

systemu (2.5.2)

templater (1.0.0)

thin (1.5.1)

thor (0.15.4)

tilt (1.4.1, 1.3.6)

uuid (2.3.7)

uuidtools (2.1.4, 2.1.3)

vegas (0.1.11)

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Pietro Francesc...
Hi David,I've tested on my

Hi David,

I've tested on my mac and it worked, just be sure to use "Rhohub" and not "rhohub".

This is what I've done:

Pietros-Mac:~ pmaggi$ irb

1.9.3p385 :001 > require 'rhohub'

=> true

1.9.3p385 :002 > Rhohub.token = 'this is my little precious key'

=> "same little precious key"

1.9.3p385 :003 > Rhohub.url = 'https://api.rhohub.com/api/v1/'

=> "https://api.rhohub.com/api/v1/"

1.9.3p385 :004 > Rhohub::App.list

=> "

Follow JSON wall of text.

~Pietro

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
Hi PietroIt looks like I have

Hi Pietro

It looks like I have the wrong version of json gem?

require 'rhohub'...

Gem::LoadError: Could not find json (~> 1.5.4) amongst [activesupport-3.2.12, activesupport-2.3.17, async-rack-0.5.1, bigdecimal-1.1.0, bundler-1.3.5, bundler-1.3.4, connection_pool-1.0.0, connection_pool-0.9.2, daemons-1.1.9, dbd-mysql-0.4.4, dbi-0.4.5, deprecated-2.0.1, diff-lcs-1.2.1, diff-lcs-1.1.3, eventmachine-1.0.3, extlib-0.9.16, highline-1.6.19, highline-1.6.16, i18n-0.6.4, i18n-0.6.1, io-console-0.3, json-1.8.0, json-1.7.7, json-1.6.8, macaddr-1.6.1, mime-types-1.23, mime-types-1.21, minitest-2.5.1, mono_logger-1.1.0, mono_logger-1.0.0, multi_json-1.7.5, multi_json-1.7.4, multi_json-1.7.0, mysql-2.9.1, nokogiri-1.5.6, rack-1.5.2, rack-fiber_pool-0.9.3, rack-protection-1.5.0, rack-test-0.6.2, rake-10.0.4, rake-10.0.3, rake-0.9.2.2, rdoc-3.9.5, redis-3.0.4, redis-3.0.3, redis-namespace-1.3.0, redis-namespace-1.2.1, resque-1.24.1, resque-1.23.1, rest-client-1.6.7, rhoconnect-3.4.2, rhoconnect-adapters-1.0.5, rhodes-3.5.1.13, rhodes-translator-0.0.4, rhoelements-2.2.1.13, rhohub-1.0, rhomobile-debug-1.0.6, rspec-2.10.0, rspec-core-2.10.1, rspec-expectations-2.10.0, rspec-mocks-2.10.1, rubygems-bundler-1.1.1, rubyzip-0.9.9, rvm-1.11.3.7, rvm-1.11.3.6, sinatra-1.4.2, sinatra-1.4.1, systemu-2.5.2, templater-1.0.0, thin-1.5.1, thor-0.15.4, tilt-1.4.1, tilt-1.3.6, uuid-2.3.7, uuidtools-2.1.4, uuidtools-2.1.3, vegas-0.1.11]

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:778:in `block in activate_dependencies'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:767:in `each'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:767:in `activate_dependencies'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:751:in `activate'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems.rb:212:in `rescue in try_activate'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `try_activate'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'

    from (irb):2

    from /Users/david/.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in `<main>'

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Pietro Francesc...
David,I've JSON gem 1.6.8

David,

I've JSON gem 1.6.8

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
Same here.  Not that problem

Same here.  Not that problem then.  Looks to be trying to user 1.5.4.  How do I force it to use 1.6.8?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Pietro Francesc...
David,try to use the command

David,

try to use the command "bundle update" from inside the rhohub gem directory. on my OSX VM is:

/Users/pmaggi/.rvm/gems/ruby-1.9.3-p385/gems/rhohub-1.0

~Pietro

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


David Miller
Top answer!I tried a bundle

Top answer!

I tried a bundle update previously but but when it failed, for some idiotic reason didn't try sudo bundle update!

I needed to install various other gems separately but eventually the sudo bundle update worked and now I can connect to Rhohub from within RhoMobile Suite on Mac.

Thank you, thank you, thank you (again!)

PS.  We need a check_install.sh I think

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments