Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andersonlai opened this issue Aug 20, 2019 · 2 comments
Open

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

andersonlai opened this issue Aug 20, 2019 · 2 comments

Comments

@andersonlai
Copy link

andersonlai commented Aug 20, 2019

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)

@rbiswas4
Copy link
Member

@andersonlai Can you also point out exactly what system this was run under? Thanks!

@andersonlai
Copy link
Author

It is running with anaconda 2019.03 base environment on Debian 9.0, Windows subsystem on Linux

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

No branches or pull requests

2 participants