csv2json icon indicating copy to clipboard operation
csv2json copied to clipboard

Missing orderedhash dependency

Open Aldaviva opened this issue 10 years ago • 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>'

Aldaviva avatar Aug 07 '14 03:08 Aldaviva

A workaround is to do:

gem install orderedhash

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

boutell avatar Aug 13 '14 18:08 boutell

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

Zeikko avatar Sep 10 '14 09:09 Zeikko

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

raid5 avatar Sep 11 '14 02:09 raid5

Would be great if this could be fixed for us non-rubyists

http://stackoverflow.com/questions/24102991/cvs2json-cannot-load-such-file-orderedhash

fergiemcdowall avatar Feb 19 '15 12:02 fergiemcdowall

+1

IcanDivideBy0 avatar Jun 18 '15 16:06 IcanDivideBy0

+1

bramj avatar Aug 26 '15 08:08 bramj