run.py crashed with NameError in __main__: name 'env' is not defined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quickly (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I just upgraded to Precise. When trying "quickly run" with a project of mine, I get this information:
$ quickly run
WARNING: Your project is out of date. Newly created projects use
GTK+ 3, PyGI, and GSettings. See https:/
porting information and when you have finished porting your code, run
'quickly upgrade' to get rid of this message.
Traceback (most recent call last):
File "/usr/share/
subprocess.
NameError: name 'env' is not defined
FEHLER: Befehl run fehlgeschlagen
Wird abgebrochen
I understand the upgrade warning, but I’d still expect "quickly run" to succeed.
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: quickly-
ProcVersionSign
Uname: Linux 3.2.0-10-generic i686
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Sun Jan 22 22:07:45 2012
ExecutablePath: /usr/share/
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110803.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitec
ProcCmdline: /usr/bin/python /usr/share/
PythonArgs: ['/usr/
QuicklyDataPath: /usr/share/quickly
QuicklyTemplates:
/usr/share/
/usr/share/
/usr/share/
/usr/share/
QuicklyTemplate
SourcePackage: quickly
Title: run.py crashed with NameError in __main__: name 'env' is not defined
Traceback:
Traceback (most recent call last):
File "/usr/share/
subprocess
NameError: name 'env' is not defined
UpgradeStatus: Upgraded to precise on 2012-01-22 (0 days ago)
UserGroups: adm admin cdrom dialout games lpadmin plugdev sambashare
tags: | removed: need-duplicate-check |
Okay, found it. "quickly run" seems to fail on projects that don’t have GSettings schemas, which will almost always be the case for pre-GTK3 projects. "env" is only defined in the if-branch which handles schema compilation, thus it is not defined when no schema is present.
I attached a tiny patch that should fix this, by ensuring env is always defined.