Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to "import clr" and get an error saying "dynamic module not initialized properly". It works fine in Pyscripter and the regular console (which is actually updated from the PythonNet build), but I can't figure out why it won't work in the ArcMap Python window.

It's a module from PythonNet that I compiled from their source code (which had it's issues, but got it working this far). Where should I be looking next to fix this?


share|improve this question

See my answer here. Basically if you compiled it yourself, you're going to need to patch distutils to not embed a manifest in the DLL.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.