Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-22 Thread Andrew Godbehere
Am I right in assuming that modules in sklearn extend functionality in scipy? If that is the case, it seems there is an explicit link to a version of scipy with atlas within the decomposition module. Rather than linking to atlas in the build of sklearn, switching to the atlas version of scipy r

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-18 Thread Vlad Niculae
On Oct 18, 2012, at 16:58 , Gael Varoquaux wrote: > On Thu, Oct 18, 2012 at 05:56:23PM +0200, Olivier Grisel wrote: >> Even though it's not officially supported by Apple, the "bug" seems to >> have been fixed in 10.8. > > Awesome, that's good news! It's not completely true: the minimal reprod

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-18 Thread Gael Varoquaux
On Thu, Oct 18, 2012 at 05:56:23PM +0200, Olivier Grisel wrote: > Even though it's not officially supported by Apple, the "bug" seems to > have been fixed in 10.8. Awesome, that's good news! Gael -- Everyone hates slow w

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-18 Thread Olivier Grisel
2012/10/18 Gael Varoquaux : > On Thu, Oct 18, 2012 at 07:02:41AM +0100, Andreas Mueller wrote: >> In principle I think it should be possible to run with the standard numpy as >> well. > > One thing to keep in mind is that accelerate leads to crashes after doing > a fork. Thus if you want to do mult

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-18 Thread Gael Varoquaux
On Thu, Oct 18, 2012 at 07:02:41AM +0100, Andreas Mueller wrote: > In principle I think it should be possible to run with the standard numpy as > well. One thing to keep in mind is that accelerate leads to crashes after doing a fork. Thus if you want to do multiprocessing/joblib-based parallel com

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-17 Thread Andreas Mueller
Glad you sorted it out! In principle I think it should be possible to run with the standard numpy as well. At least you are up and running now, which is the most important thing :) Andy On 10/18/2012 12:23 AM, Andrew Godbehere wrote: Problem solved. Brief: sklearn depends on builds of numpy a

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-17 Thread Andrew Godbehere
Problem solved. Brief: sklearn depends on builds of numpy and scipy that link to atlas. On MacOSX, default builds of numpy and scipy through macports link to the Accelerate framework, and not to atlas. After forcing the atlas variants of numpy and scipy, sklearn works fine. Action: The implic

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-17 Thread Andrew Godbehere
How exactly would I link this manually? My sense is that I'd need to edit the setup.py script. Is there another way? Thanks, Andrew On Oct 17, 2012, at 2:01 PM, [email protected] wrote: > can you try linking against libatlas manually? that should do it. then i'll > to fix the setup.py

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-17 Thread amueller
can you try linking against libatlas manually? that should do it. then i'll to fix the setup.py Andrew Godbehere schrieb: >Hi Andy, > >I found _ATL_drotg defined in /opt/local/lib/libatlas.a. >_ATL_drotg is listed as an undefined reference in libcblas.a, >libf77blas.a, and libptcblas.a. > >T

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-17 Thread Andrew Godbehere
Hi Andy, I found _ATL_drotg defined in /opt/local/lib/libatlas.a. _ATL_drotg is listed as an undefined reference in libcblas.a, libf77blas.a, and libptcblas.a. That said, I'm mystified as to why these symbols cannot be located. Does this hint at a potential problem in linking? Thanks again, A

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-17 Thread Gael Varoquaux
On Tue, Oct 16, 2012 at 03:26:57PM -0700, Andrew Godbehere wrote: > Also, for some reason, scikit-learn tries to build for posix on my system, > rather than mac osx. Isn't mac osX posix? G PS: clueless so far on the other aspects of the discussion, but my brain is working slow motion lately ---

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andrew Godbehere
Also, for some reason, scikit-learn tries to build for posix on my system, rather than mac osx. On Oct 16, 2012, at 3:07 PM, Andrew Godbehere wrote: > Hi Andy, > > I was suspicious of clang, I'd rather this build with gcc. I'll look into > changing that. > > > Here's the output from distut

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andrew Godbehere
Hi Andy, I was suspicious of clang, I'd rather this build with gcc. I'll look into changing that. Here's the output from distutils on blas_opt: {'extra_link_args': ['-Wl,-framework', '-Wl,Accelerate'], 'extra_compile_args': ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers'],

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andreas Mueller
Hi Andrew. Let's see if we can get to the bottom of this. I'm really no expert here. On 10/16/2012 09:01 PM, Andrew Godbehere wrote: otools (as opposed to ldd) on arrayfuncs.so yields: (1) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) (2) /System/Library/Fram

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andrew Godbehere
otools (as opposed to ldd) on arrayfuncs.so yields: (1) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) (2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0) I'm hoping thi

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andreas Mueller
Also ldd arrayfuncs.so might be helpful. -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python,

Re: [Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andreas Mueller
Hi Andrew. Unfortunately the atlas support across platforms often makes problems. Could you please provide the linker flags that arrayfuncs.so was build against? You should be able to get that using |make 2>/dev/null | grep arrayfuncs |||in the source directory. Thanks, Andy || On 10/16/2012 08:

[Scikit-learn-general] Atlas configuration error OSX

2012-10-16 Thread Andrew Godbehere
Hello sklearn community, I've just encountered a frustrating problem, and I'm wondering if anyone has encountered the same. The following fails: > from sklearn import decomposition Specific error: "Symbol not found: _ATL_drotg Referenced from: sklearn/utils/arrayfuncs.so Expected in: flat