old-djangae-scaffold icon indicating copy to clipboard operation
old-djangae-scaffold copied to clipboard

ImportError: No module named msvcrt

Open normmcgarry opened this issue 8 years ago • 2 comments

This is a bug that may not be relevant, but I am getting ImportError: No module named msvcrt when running djangae scaffold locally on Windows 10.

I've found this url that seems related, but their solution seems hacky. Maybe someone else has a suggestion of how this is run on Windows? Something that could be added to the docs?

normmcgarry avatar Apr 05 '16 19:04 normmcgarry

This is still a problem (Windows 10) however having run through the instructions I don't have an appengine_config.py file. I don't know whether something failed during the setup or whether this file is no longer used. Anyway, that means the hack workaround that @normmcgarry mentions won't work.

trickidicki avatar Aug 26 '17 06:08 trickidicki

Looks like this is a Django issue: it expects msvcrt to be present if os.name == 'nt' is true. (Edit: here)

Using the workaround, how do things like os.path.join behave? I.e. can you still use open on the paths it produces?

moggers87 avatar Aug 26 '17 12:08 moggers87