Skip to content

win32api Paths.py #390

@JattMones

Description

@JattMones

Jupyter core was working fine in my application, but I recently ran into issues getting a SAM user in the Paths.py file.

Error: No mapping between account names and security IDs was done

I tried restarting the computer and running scan commands to clean up files that had been corrupted. Neither worked.

Env info: Windows Server 2016.

Under the "win32_restrict_file_to_user" function (Paths.py file), I changed user, _domain, _type = win32security.LookupAccountName( "", win32api.GetUserNameEx(win32api.NameSamCompatible)
to
user, _domain, _type = win32security.LookupAccountName("", win32api.GetUserName())

This worked

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions