Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require 'id3' LoadError! #6

Open
TomohiroHsu opened this issue Aug 18, 2014 · 4 comments
Open

require 'id3' LoadError! #6

TomohiroHsu opened this issue Aug 18, 2014 · 4 comments

Comments

@TomohiroHsu
Copy link

Thx for this ID3 lib. it's cool
But there is something I think you need to change.
In the "id3.rb" file
   require 'md5'  #It's didn't work at ruby1.9.3 and ruby2.1.2 (as far as I know)
   require 'digest/md5'  #this works


Note: If don't install ftools LoadError too!
$  gem install ftools

@chocolateboy
Copy link

@TomohiroHsu

require 'md5'

It looks like this was fixed in 2011...

@chocolateboy
Copy link

... but the latest gem release is 0.5.0 from 2008 :-(

@tilo
Copy link
Owner

tilo commented Jul 31, 2015

sorry guys, this gem has not gotten a lot of love for a while.

changing 'md5' to 'digest/md5' should be simple.

Regarding maintaining this gem ...

the problem is that with the switch to Ruby 1.9 the semantics and methods of accessing/modifying raw strings changed (e.g. was taken away), because now Ruby tries to always figure out the encoding of the string. If you try to access a sequence of raw bytes as a string, it will puke. :-/

It would have been great if they had provided a backwards-compatible way to access strings the way it was done in versions < 1.9

@ant0nm
Copy link

ant0nm commented Jan 21, 2023

Running into the same issue here: LoadError: cannot load such file -- md5. Is there a stable version of this gem I could use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants