cannot load such file -- rest_client

// Expert user has replied.
J Junk Ukie 3 years 7 months ago
7 3 0

Hello,

I'm working on existing project built in RhoMobile Studio 4.1. I installed RhoMobile Studio 5 and opened existing project.

When running the project I get the following error in console

PWD: /Users//Documents/workspace/
CMD: rake token:check
rake aborted!
cannot load such file -- rest_client
/Users//.rvm/gems/ruby-1.9.3-p547/gems/rhodes-5.0.2/lib/build/rhohub.rb:3:in `'
/Users//.rvm/gems/ruby-1.9.3-p547/gems/rhodes-5.0.2/Rakefile:78:in `'
/Users//Documents/workspace//Rakefile:36:in `load'
/Users//Documents/workspace//Rakefile:36:in `'
(See full trace by running task with --trace)

This is how rhohub.rb looks

require "rubygems"
require "json"
require "rest_client"

Please Register or Login to post a reply

3 Replies

J Junk Ukie

Hello and thank you for looking into this. This issue was happening on MacOS. I fixed it by following this blog post

and launching the RhoMobile Studio via "RhoStudio 64 bits" script. When I was launching directly, RhoStudio did not not select ruby properly.

P Pietro Francesco Maggi

Happy to see that my post was useful!

~Pietro

K Kutir Mobility

Hi
I will try to reproduce this bug locally and get back to you.

Thank you
Visnupriya R
Kutir Mobility

CONTACT
Can’t find what you’re looking for?