pyd icon indicating copy to clipboard operation
pyd copied to clipboard

some/all of the runtime not initialised (ldc/OS X)

Open John-Colvin opened this issue 9 years ago • 0 comments

This is in a python extension, explicitly adding python3m to libraries in setup.py in order to work around https://github.com/ariovistus/pyd/issues/18

Any calls to writeln etc. lead to

RuntimeError: D Exception:
object.Exception@/tmp/ldc20151028-10873-14xdg07/ldc-0.16.1-src/runtime/phobos/std/stdio.d(2390): Enforcement failed

which is this line from LockingTextWriter.this(ref File f):

enforce(f._p && f._p.handle);

which means that stdout isn't being initialised, which is what leads me to think there's a problem initialising the runtime.

John-Colvin avatar Jan 14 '16 11:01 John-Colvin