darwin/csv2json

Missing orderedhash dependency

Aldaviva opened this issue · 6 comments

sudo gem install csv2json -v 0.3.0
csv2json input.csv
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- orderedhash (LoadError)
        from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /var/lib/gems/2.1.0/gems/csv2json-0.3.0/lib/csv2json.rb:4:in `<top (required)>'
        from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /var/lib/gems/2.1.0/gems/csv2json-0.3.0/bin/csv2json:6:in `<top (required)>'
        from /usr/local/bin/csv2json:23:in `load'
        from /usr/local/bin/csv2json:23:in `<main>'

A workaround is to do:

gem install orderedhash

But yes, this dependency should be specified in the gem.

I encountered this same problem. gem install orderedhash fixed it for me.

Glad I wasn't the only one. Thanks for the workaround!

bramj commented

+1