Console crashes on startup with KeyError: 'PATH' for os.environ
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IVLE |
Fix Released
|
Critical
|
David Coles | ||
1.0 |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
IVLE intermitantly crashes when starting up the console. This appears to be an issue with ivle.interpret.
Traceback (most recent call last):
File "/usr/lib/
view.
File "/usr/lib/
outjson = op(req, **opargs)
File "/usr/lib/
working_dir)
File "/usr/lib/
self.restart()
File "/usr/lib/
self.
File "/usr/lib/
'PATH': os.environ['PATH'],
File "/usr/lib/
raise KeyError(key)
KeyError: 'PATH'
Solution is probably to hard code PATH to "/bin:/
This happened locally just before release, but an Apache restart fixed it. It's now happening on informatics7.
We should fix this on two levels:
- We should hardcode PATH.
- We should prevent ivle.interpret from mutating os.environ; subprocess.Popen takes an "env" argument.