Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function crashes interpreter #1

Open
breisfeld opened this issue Oct 30, 2012 · 2 comments
Open

function crashes interpreter #1

breisfeld opened this issue Oct 30, 2012 · 2 comments

Comments

@breisfeld
Copy link

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])
$:
@andreasjansson
Copy link
Owner

Thanks for letting me know, I never actually tested it on Windows. I'll see if I can get a virtual machine up in the next few days and figure out what's going on.

@breisfeld
Copy link
Author

Thank you. Let me know if I can help.
I am not a C programmer, but can do testing on the Python side of things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants