[IPython-dev] Fixing silent failures with IPython Notebook / uuid on Cygwin64
Mon Sep 30 13:26:08 CDT 2013
Just a heads up for anybody who is trying to do development in Cygwin64.
First off, you will need to follow the instructions here for getting
If you are trying to run the notebook, you may encounter silent failures
when running IPython Notebook from the command line:
$ ipython notebook
(Simply exits with no messages/errors)
This is coming from a segfault in the Cygwin64 Python uuid module. I tried
to follow the instructions here:
http://bugs.python.org/file20685/issue11063.patch but this didn't fix the
My stop-gap solution is to disable the call to _uuid_generate in uuid4
post-patch. This is reasonably safe, and just uses a different random
number generator instead of the system-provided uuid function.
"""Generate a random UUID."""
# When the system provides a version-4 UUID generator, use it.
+ # AA disabling _uuid_generate
+ uuid_generate_random = None
- uuid_generate_random = _uuid_generate("uuid_generate_random")
The CPython and Cygwin folks appear to be aware of this issue, but since it
took some of my time to debug, I'm hoping this will help others
encountering similar problems in the future.
After switching away from a GitHub release build, I've got IPython Notebook
and the majority of its dependencies building from source using HashDist on
Cygwin64 with a few things coming from the system, such as the broken
Python patched above.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev