Skip to content
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

Binary incompatibility warning (migrated from Trac #2103) #3649

Closed
thouis opened this issue Sep 27, 2012 · 5 comments
Closed

Binary incompatibility warning (migrated from Trac #2103) #3649

thouis opened this issue Sep 27, 2012 · 5 comments

Comments

@thouis
Copy link
Owner

thouis commented Sep 27, 2012

Original ticket http://projects.scipy.org/numpy/ticket/2103
Reported 2012-04-12 by atmention:fonnesbeck, assigned to unknown.

I have built numpy from the master branch source today (I make new builds every couple of weeks), and am seeing a new warning that I have not seen before:
In [1]: import numpy
/Library/Python/2.7/site-packages/numpy-1.7.0.dev_0c5f480_20120412-py2.7-macosx-10.7-x86_64.egg/numpy/random/init.py:91: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility
from mtrand import *
I am using the same build script as I always do. I am on OS X 10.7.3, and am using the following env variables:

export MACOSX_DEPLOYMENT_TARGET=10.7
export CFLAGS="-arch x86_64"
export ARCHFLAGS="-arch x86_64"
export FFLAGS="-static -ff2c"
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch x86_64"
export PYTHONPATH="/Library/Python/2.7/site-packages/"
export CC=gcc-4.2
export CXX=g++-4.2

Again, nothing has changed here since last I built the package, which did not have this message last time.

@thouis
Copy link
Owner Author

thouis commented Sep 27, 2012

Comment in Trac by atmention:charris, 2012-04-12

Not a problem, it is a Cython artifact resulting from Numpy deprecating direct access to ndarray internals. See the Cython thread at [http://mail.python.org/pipermail/cython-devel/2012-January/001848.html]

@thouis
Copy link
Owner Author

thouis commented Sep 27, 2012

Comment in Trac by atmention:rgommers, 2012-04-14

It's strange though that you get this warning when importing numpy itself. It should come from another package compiled against older numpy, that then sees a change in numpy.

@thouis
Copy link
Owner Author

thouis commented Sep 27, 2012

Comment in Trac by atmention:charris, 2012-04-14

It is issued when importing the mtrand module.

@thouis
Copy link
Owner Author

thouis commented Sep 27, 2012

Comment in Trac by atmention:rgommers, 2012-04-15

Okay, I see it now. We should filter it though, this warning is annoying. Especially because it's the exact same warning that signals ABI issues like the one that caused the removal of datetime in 1.4.1.

I sent a PR: numpy/numpy#252

@thouis
Copy link
Owner Author

thouis commented Sep 27, 2012

Comment in Trac by atmention:rgommers, 2012-04-15

PR merged in commit:9dfda59

@thouis thouis closed this as completed Sep 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant