Skip to content

os.getlogin() in simlib.py fails and the possible solution #299

@andersonlai

Description

@andersonlai

Running make_simlibs.py leads to the following error:

File "/home/andersonlai/anaconda3/lib/python3.7/site-packages/opsimsummary/simlib.
py", line 111, in get_simlibVars
    user = os.getlogin()
FileNotFoundError: [Errno 2] No such file or directory

change it
getpass.getuser() may work (need to import getpass)

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