Error in installing the PostgreSQL database when creating user
Bug #389355 reported by
Hendrik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openWNS-Application |
Fix Committed
|
Medium
|
Sebastian Max |
Bug Description
When executing the ./createUser.py an error occurs saying:
-------
Traceback (most recent call last):
File "./createUser.py", line 50, in <module>
fullName = pwd.getpwnam(
NameError: name 'userName' is not defined
-------
This can be fixed by either declaring
fullName = 'postgres'
or moving
userName = getpass.getuser()
ahead of hostname = 'localhost'
Changed in openwns-application: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Bug is confirmed, as well as the two proposed fixes by Hendrik. The second proposed solution (moving the userName = getpass.getuser()) higher in the file is of course the preferred solution. I am currently on a conference and will post a bugfix when I am back next week.
Thanks to Hendrik for his help,
Sebastian