Skip to content

Mac Keychain Error #181

@BraeWebb

Description

@BraeWebb

There is an error with MyPyTutor on Macs when the password is to be stored in the python keyring module.

The error the is show is

NameError: name 'api' is not defined

I believe the cause of this issue is that a requirement of the keyring module for mac is the six module. This module for some reason seems to have been installed with previous python versions but does not come with python 3.6.

In the file where the error occurs there is this code block which will cause api to be undefined if there is an error importing another file.

try:
    from . import _OS_X_API as api
except Exception:
    pass

Removing the try/except provides a more helpful error message

ModuleNotFoundError: No module named 'six'

The solution to this error is possibly to install the module six before installing the keyring module as the keyring module does not do this automatically and manually installing the six module does resolve the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions