Menu

#749 Unable to import modules

v1.0 (example)
closed-invalid
nobody
None
3
2017-03-31
2017-03-30
No

I've successfully installed everything for PyWin32 (minus the .exe creating shortcuts) but when I import win32security, I cannot use any of the functions inside. win32security.GetFileSecurity returns: error: (2, 'GetFileSecurity', 'The system cannot find the file specified.')

If I open the help for the module, it lists GetFileSecurity under win32security as "GetFileSecurity(...)" with no other details at all. I'm not sure if this is the proper way to install or if I missed a step here but I'm simply unable to use the module. Any ideas?

2 Attachments

Discussion

  • Mark Hammond

    Mark Hammond - 2017-03-31
    • status: open --> closed-invalid
     
  • Mark Hammond

    Mark Hammond - 2017-03-31

    This is GetFileSecurity failing based on the input you give it. There is a help file (pywin32.chm) in the distribution that will give more details than help(), but MSDN is still the canonical documentation for this function.

    You might like to resend your issue, including all your code, to the python-win32 mailing list. You need to be subscribed to the list before you can post to it - see http://mail.python.org/mailman/listinfo/python-win32 for subscription options.