Comments (9)
What version are you trying to install? We stopped passing -Werror to the compiler in 0.2.1.
from maxmind-db-reader-python.
latest from https://pypi.python.org/pypi/maxminddb
from maxmind-db-reader-python.
# 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.
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.
So that no good idea. Add this rules to make file.
from maxmind-db-reader-python.
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.
Maybe you can add instruction for OS X to README?
from maxmind-db-reader-python.
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.
+1. But who can do it and when?:)
from maxmind-db-reader-python.
Related Issues (20)
- Reading Multiple MMDB Files HOT 1
- Type annotations with `RecordDict` not satisfying mypy HOT 3
- Python `whl` releases HOT 1
- Iterating over the whole database is broken HOT 3
- TypeError: 'Reader' object is not iterable HOT 1
- PyPI sdist tarball no longer contains tests/data folder HOT 2
- Python aarch64/arm64 whl releases HOT 6
- setuptools is (incorrectly?) listed as a production dependency in pyproject.toml HOT 1
- Linux aarch64/arm64 whl releases HOT 2
- Allow accessing the network field in the ASN mmdb file HOT 4
- Null pointer dereference with corrupt database file in MODE_MMAP_EXT HOT 2
- PyPI tarball - some test data missing HOT 3
- "MODE_MMAP_EXT requires the maxminddb.extension module to be available" though libmaxminddb is installed HOT 8
- The GH releases have no test db HOT 3
- ValueError: Unsupported open mode: MODE_MMAP_EXT HOT 1
- Performance variance between python versions HOT 1
- New version is breaking Python 2 installs - missing setup.py python_requires update HOT 3
- Use ipv4 and ipv6 geographic libraries to generate mmdb files HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Running in an environment without mmap? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maxmind-db-reader-python.