[python-win32] Problems with _winreg On WinCE

Isr Gish isrgish at fusemail.com
Mon Feb 9 23:23:00 EST 2004


I'm running python on a Pocket PC.
I have tried posting to the PythonCE group. But I got no answer.

I tried using the _winreg module but couldn't get anything to work there also I couldn't understand the error messages.
    Here is what I tried and the results:
    
    >>> k = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, None)
    
    worked fine
    
    >>> testkey = _winreg.OpenKey(k, "Test")
    Traceback (most recent call last):
      File "\Program Files\Python\pcceshell\interact.py", line 58, in Interact
        exec codeOb in locals
    WindowsError: [Errno 2] T
    
    There is a subkey named Test but I cant figure ootswhat the problem is and the error message doesn't help much. See below
    
    >>> newkey = _winreg.CreateKey(k, "Test")
    
    This seemed to work but when I looked in the registry I found a key with for boxes (????).
    
    >>> enumkeys = _winreg.EnumKey(k, 0)
    Traceback (most recent call last):
      File "\Program Files\Python\pcceshell\interact.py", line 58, in Interact
        exec codeOb in locals
    WindowsError: [Errno 87] T
    >>> enumkeys = _winreg.EnumKey(k, 1)
    Traceback (most recent call last):
      File "\Program Files\Python\pcceshell\interact.py", line 58, in Interact
        exec codeOb in locals
    WindowsError: [Errno 87] T
    
   I cant figure out from the error what is wrong.
    
    Please help, any and all help wold be greatly appreciated.
    
    All the best,
    Isr Gish




More information about the Python-win32 mailing list