Am 16.10.2012 19:10, schrieb Legault, Alain: > Hello François, > > Thanks for the pointer. The explicit import solved one problem. > > Unfortunately, Py2exe had more surprises in store for us. > > Py2exe will compile the following source > > from sklearn.utils import weight_vector > from sklearn.decomposition import PCA > Pass > > But the exe will crash with > > Traceback (most recent call last): > File "exe.py", line 3, in <module> > File "zipextimporter.pyo", line 82, in load_module > File "sklearn\decomposition\__init__.pyo", line 8, in <module> > File "zipextimporter.pyo", line 82, in load_module > File "sklearn\decomposition\pca.pyo", line 302, in <module> > File "sklearn\decomposition\pca.pyo", line 304, in ProbabilisticPCA > TypeError: unsupported operand type(s) for +=: 'NoneType' and 'NoneType' > > So the offendinbg lines (to py2exe) in PCA are > > > 302 class ProbabilisticPCA(PCA): > 303 """Additional layer on top of PCA that adds a probabilistic > evaluation""" > 304 __doc__ += PCA.__doc__ > > Seems py2exe can't stomach line 304. Not sure where to report that bug... Probably Py2exe? That is a pretty weird one, though.
------------------------------------------------------------------------------ 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
