Git Product home page Git Product logo

Comments (9)

oschwald avatar oschwald commented on June 13, 2024

What version are you trying to install? We stopped passing -Werror to the compiler in 0.2.1.

from maxmind-db-reader-python.

gotlium avatar gotlium commented on June 13, 2024

latest from https://pypi.python.org/pypi/maxminddb

from maxmind-db-reader-python.

gotlium avatar gotlium commented on June 13, 2024
# pip install maxminddb==0.3.1
Downloading/unpacking maxminddb==0.3.1
  Downloading maxminddb-0.3.1.tar.gz (1.2MB): 1.2MB downloaded
  Storing download in cache at /Users/user/Library/Caches/pip-downloads/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fm%2Fmaxminddb%2Fmaxminddb-0.3.1.tar.gz
  Running setup.py egg_info for package maxminddb
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)

    warning: no files found matching 'requirements.txt'
Downloading/unpacking ipaddr (from maxminddb==0.3.1)
  Downloading ipaddr-2.1.11.tar.gz
  Storing download in cache at /Users/user/Library/Caches/pip-downloads/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fi%2Fipaddr%2Fipaddr-2.1.11.tar.gz
  Running setup.py egg_info for package ipaddr

Installing collected packages: maxminddb, ipaddr
  Running setup.py install for maxminddb
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)

    warning: no files found matching 'requirements.txt'
    building 'maxminddb.extension' extension
    cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c maxminddb/extension/maxminddb.c -o build/temp.macosx-10.9-intel-2.7/maxminddb/extension/maxminddb.o -Wall -Wextra
    clang: warning: argument unused during compilation: '-mno-fused-madd'
    In file included from maxminddb/extension/maxminddb.c:2:
    /usr/local/include/maxminddb.h:57:18: error: __int128 is not supported on this target
    typedef unsigned __int128 mmdb_uint128_t;
                     ^
    1 error generated.
    ***************************************************************************
    command 'cc' failed with exit status 1
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Failure information, if any, is above.
    Retrying the build without the C extension now.
    ***************************************************************************

    warning: no files found matching 'requirements.txt'
    ***************************************************************************
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Plain-Python build succeeded.
    ***************************************************************************
  Running setup.py install for ipaddr

Successfully installed maxminddb ipaddr
Cleaning up...

from maxmind-db-reader-python.

oschwald avatar oschwald commented on June 13, 2024

That is a completely different error message than your first one. Here, the module installed fine but without the C extension.

If you want the C extension, the problem may be that your C compiler is trying to make a multiarch binary. Try ARCHFLAGS="-arch x86_64" pip install maxminddb==0.3.1 --force-reinstall.

from maxmind-db-reader-python.

gotlium avatar gotlium commented on June 13, 2024

So that no good idea. Add this rules to make file.

from maxmind-db-reader-python.

oschwald avatar oschwald commented on June 13, 2024

We provide the pure Python reader to make it easier for people who have problems installing the C library and extension.

from maxmind-db-reader-python.

gotlium avatar gotlium commented on June 13, 2024

Maybe you can add instruction for OS X to README?

from maxmind-db-reader-python.

oschwald avatar oschwald commented on June 13, 2024

As far as I can tell, it depends on how your Python was built, which Xcode version you are using, and how you built your libmaxminddb library. Using the defaults on Mavericks with the latest Xcode works fine for me, for instance; both libmaxminddb and the Python module get built as x86_64-only.

Ideally, someone would just create a Homebrew package that did a proper multi-arch build.

from maxmind-db-reader-python.

gotlium avatar gotlium commented on June 13, 2024

+1. But who can do it and when?:)

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.