MULTI_JSON 1.7.3 ISSUE

162 views
Skip to first unread message

Eachus Lonny

unread,
May 15, 2013, 12:56:06 AM5/15/13
to watir-...@googlegroups.com

I had an issue with Ruby 1.9.3 and the latest watir-webdriver.

Apparently watir-webdriver lists multi-json as a dependency, but without a version number, resulting in the installation of the latest multi_json version which at this time is 1.7.3.

(An alternative explanation is that watir-webdriver explicitly requires version 1.7.3, but I doubt that.)

With multi_json 1.7.3 and Ruby 1.9.3 (p374), the application bombs and I get the following error message:


You are using an old or stdlib version of json gem
Please upgrade to the recent version by adding this to your Gemfile:

gem 'json', '~> 1.7.7'

But there are problems with this, because (A) a standalone script does not normally have a Gemfile, and (B) I tried running the app using Bundler and a Gemfile with json 1.7.7, and got the same error anyway.

After visiting the multi_json site on github, it appears that this is supposed to be a "strong warning", but in fact it is an error that crashes your application.

The solution to this problem is to uninstall multi_json 1.7.3 and install version 1.7.2 instead. After that, my application ran with no issues.

I am not explicitly making use of the multi_json gem anywhere; perhaps watir-webdriver is (really) dependent on it somehow. If so, someone should check into this issue, because the multi_json folks say it is an indication of a real problem with the json 1.7.7 gem.


Lonny Eachus
============






Chuck van der Linden

unread,
May 15, 2013, 5:45:50 PM5/15/13
to watir-...@googlegroups.com
Just as an FYI I don't think we require the latest multi-json  I'm running ruby 1.9.3p125  and the following gems are shown by gem list

json (1.7.7, 1.7.6, 1.5.4)
multi_json (1.7.2, 1.6.1, 1.5.0)

So simply downgrading the multi-json as you did should be just fine



Reply all
Reply to author
Forward
0 new messages