[IronPython] Importing on another Thread

Dan Eloff dan.eloff at gmail.com
Wed Jul 2 20:57:15 CEST 2008

> I mean why are you using '__import__'?
> Does your background importer code work when run on the main thread? Can you
> show the actual failure message rather than just printing that they failed
> to import?

I was using __import__ because it was easier to write the repro with,
I've changed it to import, it has the same issue.

It works on the main thread (it's what I use on the main thread too)
but the error message is useless. It's just ImportError, could not
import x, and gives no stack trace. Possibly fiddling things to get a
CLR stacktrace might be more useful.

Anyway here's the full code.



More information about the Ironpython-users mailing list