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

NoMethodError: undefined method `bytes' for "ved":String #8

Closed
philister opened this issue Jan 29, 2011 · 1 comment
Closed

NoMethodError: undefined method `bytes' for "ved":String #8

philister opened this issue Jan 29, 2011 · 1 comment

Comments

@philister
Copy link

Hi,

on both win and debian systems and two GeoIP.dat's I get this error:
geo = GeoIP.new("/usr/share/GeoIP/GeoIP.dat")
NoMethodError: undefined method bytes' for "ved":String from /usr/lib/ruby/gems/1.8/gems/geoip-0.8.9/lib/geoip.rb:672:ininitialize'

Any ideas or hints?

Thanks and regards, Ph.

@cjheath
Copy link
Owner

cjheath commented Jan 30, 2011

You need to upgrade your Ruby from 1.8.6 to at least 1.8.7, or define your own version of String#bytes (which returns an Enumerable#Enumerator).

This issue was closed.
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

2 participants