Git Product home page Git Product logo

Comments (6)

oschwald avatar oschwald commented on June 13, 2024

Thanks for raising this. We have not seen this warning. Would it be possible for you to provide steps to reproduce it, including Python version, etc? Thanks!

from maxmind-db-reader-python.

davidszotten avatar davidszotten commented on June 13, 2024

hm, so i think this was caused by pytest and pytest-warnings. and it turns out it's fixed in a newer version. apologies for the noise

from maxmind-db-reader-python.

craigds avatar craigds commented on June 13, 2024
System check identified no issues (4 silenced).
October 29, 2018 - 02:03:08
Django version 1.11.16, using settings 'myapp.settings'
Starting development server at http://127.0.0.1:<port>/
Quit the server with CONTROL-C.
/kx/app/venv/local/lib/python2.7/site-packages/maxminddb/__init__.py:7: ImportWarning: Not importing directory '/kx/app/venv/local/lib/python2.7/site-packages/maxminddb/extension': missing __init__.py
  import maxminddb.extension

Not sure what version @davidszotten had, but we have 1.4.1 (the latest) and this is still present.

from maxmind-db-reader-python.

craigds avatar craigds commented on June 13, 2024

(python 2.7.6, if that helps.)

from maxmind-db-reader-python.

oschwald avatar oschwald commented on June 13, 2024

@craigds, I am still not able to reproduce this on 2.7.15:

$ pip instal maxminddb --verbose
...
   ***************************************************************************
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Plain-Python build succeeded.
    ***************************************************************************
done
  Removing source in /tmp/pip-build-v7sKjb/maxminddb
Successfully installed maxminddb-1.4.1
Cleaning up...
$ python
Python 2.7.15 (default, Sep 21 2018, 10:32:37) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import maxminddb
>>> db = maxminddb.open_database('/usr/local/share/GeoIP/GeoIP2-City.mmdb')
>>> db.get('1.1.1.1')
...

from maxmind-db-reader-python.

oschwald avatar oschwald commented on June 13, 2024

Never mind. I was able to reproduce this with -Wdefault.

from maxmind-db-reader-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.