Fatal error on executing quickly create ubuntu-project: No such file or directory

Bug #460355 reported by Gionn
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Critical
Unassigned
python-distutils-extra (Ubuntu)
Won't Fix
Undecided
Unassigned
quickly (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Binary package hint: quickly

scorp@antani:~/Scrivania$ quickly create ubuntu-project jotty
Creating project directory jotty
Directory jotty created

WARNING: No .quickly file found. Initiating a new one.
Creating project directory data
Directory data created

Creating project directory jotty
Directory jotty created

Creating project directory bin
Directory bin created

Creating data/ui/JottyWindow.ui
data/ui/JottyWindow.ui created

Creating data/ui/jotty_window.xml
data/ui/jotty_window.xml created

Creating data/ui/AboutJottyDialog.ui
data/ui/AboutJottyDialog.ui created

Creating data/ui/about_jotty_dialog.xml
data/ui/about_jotty_dialog.xml created

Creating data/ui/PreferencesJottyDialog.ui
data/ui/PreferencesJottyDialog.ui created

Creating data/ui/preferences_jotty_dialog.xml
data/ui/preferences_jotty_dialog.xml created

Creating jotty/AboutJottyDialog.py
jotty/AboutJottyDialog.py created

Creating jotty/PreferencesJottyDialog.py
jotty/PreferencesJottyDialog.py created

Creating jotty/jottyconfig.py
jotty/jottyconfig.py created

Creating ./setup.py
./setup.py created

Creating jotty/__init__.py
jotty/__init__.py created

Creating ./jotty.desktop.in
Traceback (most recent call last):
  File "/usr/share/quickly/templates/ubuntu-project/create.py", line 129, in <module>
    quicklyutils.file_from_template(abs_path ,"project_root/project_name.desktop.in",".", substitutions)
  File "/usr/share/quickly/templates/ubuntu-project/internal/quicklyutils.py", line 48, in file_from_template
    fin = open(template_dir + template_file,'r')
IOError: [Errno 2] No such file or directory: '/usr/share/quickly/templates/ubuntu-project/project_root/project_name.desktop.in'
ERROR: create command failed
Aborting

ProblemType: Bug
Architecture: amd64
Date: Sun Oct 25 12:21:30 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: wl nvidia
Package: quickly-ubuntu-template 0.2.5
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=it_IT.UTF-8
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: quickly
Uname: Linux 2.6.31-14-generic x86_64

Related branches

Revision history for this message
Gionn (giovanni.toraldo) wrote :
Gionn (giovanni.toraldo)
tags: added: i386
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

This is related to last python-distutils-extra version which moves all desktop.in in data/ directory.

This need to be fixed ASAP.

Changed in quickly (Ubuntu):
status: New → Triaged
Changed in python-distutils-extra (Ubuntu):
status: New → Triaged
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
Changed in quickly:
status: New → Triaged
importance: Undecided → Critical
Changed in quickly (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 460355] Re: Fatal error on executing quickly create ubuntu-project: No such file or directory

If there's a fix for quickly that's available soon, we can still get it in.

Revision history for this message
Martin Pitt (pitti) wrote :

Since having .desktop.in files in data/ is a very common layout of software projects, I want to keep the current behaviour, since it's much more common than the special case of shipping .desktop.in files verbatim.

Please just add it to data_files[], then it should work.

Changed in python-distutils-extra (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Rémi Rérolle (remi.rerolle) wrote :

Updated python-distutils-extra to 2.12, still get the exact same problem.

From the backtrace, it does seem quickly is explicitely looking for /usr/share/quickly/templates/ubuntu-project/project_root/project_name.desktop.in which doesn't exist.

Shall the .desktop.in template not be present in the quickly-ubuntu-template package ?

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

@Remi as previously stated, new python-distutils-extra changed his behavior and move now .desktop.in in data/ dir when building the package. That's the reason why this desktop file is no more present in quickly-ubuntu-template package.

Ok, I fixed it:
quickly (0.2.6) karmic; urgency=low

  * New release:
   + ubuntu-project Template:
     - Fix desktop.in file not installed due to new python-distutils-extra
     policy (LP: #460355)
   + common:
     - Remove outdated information in README

Changed in quickly:
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package quickly - 0.2.6

---------------
quickly (0.2.6) karmic; urgency=low

  * New release:
   + ubuntu-project Template:
     - Fix desktop.in file not installed due to new python-distutils-extra
     policy (LP: #460355)
   + common:
     - Remove outdated information in README

 -- Didier Roche <email address hidden> Mon, 26 Oct 2009 16:40:13 +0100

Changed in quickly (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.