I built and installed python-emd.
When I try the example in the documentation, the python interpreter just immediately crashes with no errors given. All other examples I try do the same thing.
Below is output from the build and execution.
Platform: Windows 7
$ python
Enthought Python Distribution -- www.enthought.com
Version: 7.1-1 (32-bit)
Python 2.7.2 |EPD 7.1-1 (32-bit)| (default, Jul 3 2011, 15:13:59) [MSC v.1500 32 bit (Intel)] on win32
Type "packages", "demo" or "enthought" for more information.
>>>
$:python .\setup.py install
running install
running build
running build_ext
building 'emd' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\Python27\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c pyemd.c -o build\temp.win32-2.7\R
elease\pyemd.o -g
C:\Python27\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c emd.c -o build\temp.win32-2.7\Rel
ease\emd.o -g
emd.c:837:13: warning: 'printSolution' defined but not used
emd.c: In function 'russel':
emd.c:627:20: warning: 'minI' may be used uninitialized in this function
emd.c:627:26: warning: 'minJ' may be used uninitialized in this function
emd.c:633:12: warning: 'PrevUMinI' may be used uninitialized in this function
emd.c:633:24: warning: 'PrevVMinJ' may be used uninitialized in this function
emd.c: In function 'emd':
emd.c:109:11: warning: 'FlowP' may be used uninitialized in this function
writing build\temp.win32-2.7\Release\emd.def
creating build\lib.win32-2.7
C:\Python27\Scripts\gcc.exe -mno-cygwin -shared -s build\temp.win32-2.7\Release\pyemd.o build\temp.win32-2.7\Release\emd.o build\t
emp.win32-2.7\Release\emd.def -LC:\Python27\libs -LC:\Python27\PCbuild -lpython27 -lmsvcr90 -o build\lib.win32-2.7\emd.pyd
running install_lib
copying build\lib.win32-2.7\emd.pyd -> C:\Python27\Lib\site-packages
running install_egg_info
Removing C:\Python27\Lib\site-packages\emd-0.0.0-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\emd-0.0.0-py2.7.egg-info
$: python
>>> import emd
>>> emd.emd(range(5), range(5), [0, 1, 0, 0, 0], [0, 0, 0, 0, 1])
$:
I built and installed python-emd.
When I try the example in the documentation, the python interpreter just immediately crashes with no errors given. All other examples I try do the same thing.
Below is output from the build and execution.
Platform: Windows 7