import _winreg does not work. How do I fix?

Miki Tebeka mikit at zoran.co.il
Mon Nov 24 02:35:31 EST 2003


Hello John,

>  >>> from _winreg import *
> Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
> ImportError: No module named _winreg
>  >>>
There is no _winreg on cygwin, only on "true" win32 python.
If you must use cygwin you can either patch _winreg to work for you or
use cygwin's regtool (try regtool --help)

HTH.
Miki




More information about the Python-list mailing list