-
Notifications
You must be signed in to change notification settings - Fork 10
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
cubetl/geoip uses incf.countryutils that doesn't support python 3 #6
Comments
FYI, if using the new package could fix this, you could change requirements.txt as follows:
However, I think geoip has other issues as well. I'm going to use this issue to write notes. |
GeoIP requires libGeoIP. See maxmind/geoip-api-python#20. Here are some instructions to install that (in the docker image I started):
See also https://github.com/maxmind/geoip-api-c#on-ubuntu-using-ppa. However, note geoip is deprecated, and they now recommend geoip2. :/ |
Note even after installing libGeoIP and GeoIP, the
I don't know what's up here. |
The documentation of
Since I had already copied a working countryutils copy from that repository, try removing the offending package from your environment:
I have removed this dependency from the I wouldn't like to make the project depend on geoip. These dependencies shall be installed by users if they need them, that's why you have to install GeoIP manually (as per the docs). This should perhaps be discovered by the cubetl.geoip module and provide a meaningful error. |
I have pushed the corrections to the master branch, the loganalyzer example now works for me given the above works. |
I am using python 3.7.4.
To reproduce:
That package was last updated in 2009. There is a more recently updated version. It looks to not have the same error:
The text was updated successfully, but these errors were encountered: