Skip to content

Instantly share code, notes, and snippets.

View Kamforka's full-sized avatar

Kamforka

  • Switzerland
View GitHub Profile
@nicoddemus
nicoddemus / cx_freeze_and_distutils.md
Created May 19, 2015 17:45
Problem trying to freeze an executable which imports distutils modules (directly or indirectly)

cxFreeze and distutils

Problem

When trying to freeze a script which imports any distutils module (for example, distutils.dist), the script fails at runtime with an exception like this:

>   from distutils import dist, sysconfig
E   ImportError: cannot import name dist