Skip to content

OSError: [Errno 6] No such device or address #3

@Mespith

Description

@Mespith

I'm trying to go through the ImportPythonModel.ipynb notebook in the examples. I do, however, get an error which I think needs to be solved in the package itself.
image

I made a local copy of the package files and I changed line 150 in writeJSONFiles.py to
modeler = getpass.getuser()
Someone recommended getpass.getuser() to me since it checks the environment variables LOGNAME or USERNAME to find out who the user is, and falls back to pwd.getpwuid(os.getuid())[0] to get the login name of the current real user id.

I tested it in my environment and it works like a charm. Maybe it would be an option in the pzmm package as well?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions