Public bug reported: I'm testing the qtquick-application template with the Precise Quickly. Creating a new the project with this template doesn't works anymore providing this error:
Traceback (most recent call last): File "/usr/share/quickly/templates/ubuntu-application/create.py", line 126, in <module> subprocess.call(['./' + project_name], cwd='bin/', env=env) NameError: name 'env' is not defined Inspecting the code in ubuntu-application/create.py I've found at line 112 the env definition: schemapath = os.path.abspath("data/glib-2.0/schemas") if os.path.exists(schemapath): subprocess.call(["glib-compile-schemas", schemapath]) env = os.environ.copy() datadir = os.path.abspath("data") if 'XDG_DATA_DIRS' in env: env['XDG_DATA_DIRS'] = "%s:%s" % (datadir, env['XDG_DATA_DIRS']) else: env['XDG_DATA_DIRS'] = datadir So if a template derivated from quickly-application doesn't uses glib and doesn't provide the data/glib-2.0/schemas file the variable env is not defined. The problem is that few lines after in the code we have the env variable used in the subprocess.call subprocess.call(['./' + project_name], cwd='bin/', env=env) This would be fixed just putting the env = os.environ.copy() before the if clause. I'll provide a patch later, thanks in advance ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: quickly 11.12-0ubuntu1 ProcVersionSignature: Ubuntu 3.2.0-17.26-generic-pae 3.2.6 Uname: Linux 3.2.0-17-generic-pae i686 ApportVersion: 1.91-0ubuntu1 Architecture: i386 Date: Sun Feb 19 18:21:16 2012 InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120201.1) PackageArchitecture: all ProcEnviron: PATH=(custom, no user) LANG=it_IT.UTF-8 SHELL=/bin/bash QuicklyDataPath: /usr/share/quickly QuicklyTemplatesDirectories: /home/x/quickly-templates /usr/share/quickly/templates/ SourcePackage: quickly UpgradeStatus: Upgraded to precise on 2012-02-19 (0 days ago) ** Affects: quickly (Ubuntu) Importance: Undecided Assignee: Paolo Sammicheli (xdatap1) Status: New ** Tags: apport-bug i386 precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/936379 Title: definition of env varible in create command wrongly depends on existence of glib2 schema path file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/936379/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs