Discussion:
Installing mahotas
Shachar Lerer
2014-08-27 10:14:14 UTC
Permalink
Hi,

I'm encountering the same problem with the latest version (1.2.1).
Can you please explain what you mean by 'forgot to build it in development
mode'?

I get the same result by installing using 'pip install mahotas' and the
'python setup.py build' & 'python setup.py install' options.

Thanks!
It compiles fine now, but there is a remaining problem with Python not
finding the _bbox module when I try to import mahotas into iPython.
Maybe one of you know's what to fix?
That's probably because you forgot to build it in development mode.
Try 'python setup.py test' (this only works on fairly current master, but
the
most current is yours—which I just merged).
Tx
Luis
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Luis Pedro Coelho
2014-08-27 11:04:23 UTC
Permalink
Hi,

I cannot help you with the specifics of Mac OS X, but is there any
reason why you are using such an old version? (0.6.3 is from February
2011).

Thanks
Luis
--
Luis Pedro Coelho | EMBL | http://luispedro.org
My blog: http://metarabbit.wordpress.com
Hi,
Has anybody installed successfully mahotas (0.6.3) on Mac OSX Snow
using pip ?
It fails with the message (truncated) below.
Thanks,
Carlos Silva.
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:256: error: ‘__c’ was not declared in this scope
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:796: error: ‘btowc’ is not a type
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:813: error: expected ‘;’ before ‘const’
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:828: error: expected `;' before ‘char_type’
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:829: error: ‘btowc’ is not a type
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:846: error: expected ‘;’ before ‘const’
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:865: error: expected `;' before ‘char_type’
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h: In member function ‘char
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:797: error: ‘__c’ was not declared in this scope
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h: In member function ‘char
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:830: error: ‘__c’ was not declared in this scope
In file included from /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/
4.2.1/bits/basic_ios.h:44,
from /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/
4.2.1/ios:50,
from /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/
4.2.1/ostream:44,
from /Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/
4.2.1/iterator:70,
from mahotas/numpypp/array.hpp:9,
from mahotas/_filters.h:6,
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4502: error: function definition does not declare
parameters
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4520: error: function definition does not declare
parameters
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4526: error: function definition does not declare
parameters
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4532: error: function definition does not declare
parameters
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4556: error: function definition does not declare
parameters
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4568: error: function definition does not declare
parameters
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.2.1/bits/
locale_facets.h:4574: error: function definition does not declare
parameters
error: Command "g++ -fno-strict-aliasing -fno-common -dynamic -arch
i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -O3 -arch
i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/Library/Frameworks/
Python.framework/Versions/6.3/include -I/Library/Frameworks/
Python.framework/Versions/6.3/lib/python2.6/site-packages/numpy/core/
include -I/Library/Frameworks/Python.framework/Versions/6.3/include/
python2.6 -c mahotas/_filters.cpp -o build/temp.macosx-10.5-i386-2.6/
mahotas/_filters.o" failed with exit status 1
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Loading...