Hello,

i recently have this kind of problem using pyinstaller (another
packaging tool.. but things should not be so different). They call
this hidden imports problem and I fixed this by adding explicit
imports in the main file :

# pyinstaller hidden imports
from sklearn.utils import weight_vector
from sklearn.decomposition import PCA, FastICA
from sklearn.pls import PLSRegression

With those lines, i succeeded in making a stand-alone app that uses
sklearn (and more).


Many modules have some hidden imports problems (hidden means 'my
packaging tool do not see it'). To solve this in pyinstaller they use
'hook files' for standard modules. One day i may try to make one... I
think that sklearn deserves to get one !

Hope it helps.



2012/10/11 Olivier Grisel <[email protected]>:
> Apparently this is a known issue of py2exe with cython modules:
>
> http://www.digipedia.pl/usenet/thread/15906/9309/
>
> Try adding the missing cython modules explicitly in your includes to
> see if make it possible to workaround the py2exe dependency detection
> limitations.
>
> --
> Olivier
>
> ------------------------------------------------------------------------------
> 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, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general



-- 

François Deheeger

------------------------------------------------------------------------------
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, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to