-
Notifications
You must be signed in to change notification settings - Fork 90
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
uninitialized constant GeoIP #13
Comments
On 08/06/2011, at 10:04 PM, vitobotta wrote:
That's very strange; something must be wrong with your gem before = Object.constants That will tell you what global constants (if any) were added by Also, where does "gem show geoip" open up? Clifford Heath. |
Thanks a lot for the quick reply :) Earlier I was trying the gem with the IRB console, when I got the error. But now I am using it with the Rails console -after adding the gem to the Gemfile as usual- and it works. Anyway ree-1.8.7-2011.03 :004 > p Object.constants-before 501 [ ~ ] $ gem show geoip but.. 502 [ ~ ] $ gem list geoip *** LOCAL GEMS *** geoip (1.1.1) Everything looks otherwise fine on my system and I don't have any other problem apart this (I am using RVM and have also tried to downgrade RubyGems just in case), so I wouldn't know why this is happening. Thanks! On 8 Jun 2011, at 14:34, cjheath wrote:
|
On 08/06/2011, at 11:41 PM, vitobotta wrote:
.... but no Geoip. Weird. I wonder what Autometal is, it sounds
Oh sorry, I meant "gem open", but "gem list" is also good.
And you're using bundler too? Is the bundle up to date? Clifford Heath. |
Hi Clifford, thanks - yes I do use bundler and it's up to date. I think I found what the problem was: I had tried another gem (I think autometal-geoip) before finding yours, and it seems like it hadn't beed uninstalled cleanly. On a side note, after playing with the gem and seeing some results, I noticed that the GeoCity Lite database by Maxmind is not good enough for the kind of lookups I need to do, which is mostly IP addresses owned by ISPs and alike. So luckily I found another service which seems a good fit for what I am trying to do I don't need frequent lookups nor many of them during a day, so this seems to work ok for me (for now), although it's a remote service. Cheers On 8 Jun 2011, at 22:21, cjheath wrote:
|
I believe this issue could be closed 😸 |
Hi, I am trying to use this gem in an app, but for some reason the GeoIP class cannot be found:
ree-1.8.7-2011.03 :001 > require 'geoip'
=> true
ree-1.8.7-2011.03 :002 > GeoIP
NameError: uninitialized constant GeoIP
from (irb):2
Am I missing something?
Many thanks in advance
Vito
The text was updated successfully, but these errors were encountered: