Skip to content

win32api Paths.py #390

Open
Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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