quickly package fails on new Karmic installation - debchange missing

Bug #464137 reported by Kim on 2009-10-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-distutils-extra
Undecided
Didier Roche
python-distutils-extra (Ubuntu)
High
Unassigned

Bug Description

Binary package hint: quickly

Tried a basic test using the instructions in the wiki:

kadil@kadil-kvm:~/kasp$ quickly package
running install_egg_info
Writing /tmp/tmpAk3Kk1/kasp-0.1.egg-info
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  Copyright
  debian/changelog
  debian/compat
  debian/control
  debian/copyright
  debian/rules
  kasp.desktop.in
Searching packages which provide required Python modules:
   desktopcouch.records.record ... python-desktopcouch-records
   desktopcouch.records.server ... python-desktopcouch-records
   gtk ... python-gtk2
Traceback (most recent call last):
  File "/usr/bin/python-mkdebian", line 271, in <module>
    make_debian(egg)
  File "/usr/bin/python-mkdebian", line 72, in make_debian
    make_changelog(egg)
  File "/usr/bin/python-mkdebian", line 213, in make_changelog
    'New release.'], stderr=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 470, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
An error has occurred
ERROR: can't create or update ubuntu package
ERROR: package command failed
Aborting

I don't think I made any mistakes, but cannot package locally.

Regards,
Kim

Didier Roche (didrocks) wrote :

Thanks for testing and using quickly.

Right, python-gtk2 is not installed in Kubuntu (an ubuntu-project is a project using GTK used by GNOME/XFCE/... and QT is the library used by KDE).

So, we'll add a dependency on python-gtk2 in next release.

As a workaround, you can install python-gtk2 and then spawning quickly package again.

Changed in quickly (Ubuntu):
status: New → Triaged
importance: Undecided → High

But this is Ubuntu (not Kubuntu) and python-gtk is installed, but "quickly package" fails with the response above.

Didier Roche (didrocks) wrote :

I don't know why you don't have python-gtk2 installed so.

BTW, the workaround it the same, install python-gtk2 on your system.

But I DO have python-gtk2 installed!!! and always have

Didier Roche (didrocks) wrote :

Ok, so, if you have it and it seems to don't detect it (we have the corresponding module gtk ... python-gtk2, but we get an OSError: [Errno 2] No such file or directory), this is a distutils-extra package bug. I add the corresponding task to this package as pitti should have a clearer view.

Didier Roche (didrocks) wrote :

I guess I got it, can you please try to install devscripts on your system, please?

Changed in quickly (Ubuntu):
status: Triaged → Incomplete

Didier Roche wrote:
> I guess I got it, can you please try to install devscripts on your
> system, please?
>
> ** Changed in: quickly (Ubuntu)
> Status: Triaged => Incomplete
>
>
That certainly overcame the original problem, now there is this problem
(quite possibly my fault for editing changelog):

kadil@karmic:~/kasp$ quickly package
running install_egg_info
Writing /tmp/tmpe4V6cD/kasp-0.1.egg-info
WARNING: the following files are not recognized by DistUtilsExtra.auto:
  Copyright
  Copyright~
  debian/changelog
  debian/changelog~
  debian/compat
  debian/control
  debian/copyright
  debian/rules
  kasp.desktop.in
  setup.py~
Searching packages which provide required Python modules:
   desktopcouch.records.record ... python-desktopcouch-records
   desktopcouch.records.server ... python-desktopcouch-records
   gtk ... python-gtk2
Ubuntu packaging created in debian/
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
parsechangelog/debian: warning: debian/changelog(l3): found eof
where expected first heading
dpkg-buildpackage: error: unable to determine source package
An error has occurred during package building
ERROR: package command failed
Aborting

yeah, you apparently edited the changelog manually.

Try to remove all debian/ directory and run quickly package again.

Didier Roche wrote:
> yeah, you apparently edited the changelog manually.
>
> Try to remove all debian/ directory and run quickly package again.
>
>
Success!!! worked perfectly. Thank you.

Kim

Yeah \o/

Ok, the only issue was on devscript not being there so. I guess we must enhance distutils-extra to print a better error message about installing devscript.

Thanks for using Quickly. Do not hesitate to give any other inputs :)

Changed in python-distutils-extra:
assignee: nobody → Didier Roche (didrocks)
status: New → In Progress
Didier Roche (didrocks) on 2009-11-04
Changed in python-distutils-extra:
status: In Progress → Confirmed
Martin Pitt (pitti) wrote :

Thanks Elliot, merged your branch into trunk (r160).

summary: - quickly package fails on new Karmic installation
+ quickly package fails on new Karmic installation - debchange missing
affects: quickly (Ubuntu) → python-distutils-extra (Ubuntu)
Changed in python-distutils-extra (Ubuntu):
status: Incomplete → Fix Committed
Changed in python-distutils-extra:
status: Confirmed → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-distutils-extra - 2.17

---------------
python-distutils-extra (2.17) unstable; urgency=low

  [ Didier Roche ]
  * python-mkdebian:
    - Use OptionParser for argv processing.
    - Add --changelog option to specify changelog message (can be used more
      than once for different tasks)
    - Add --dependency option to add a manual debian package dependency
      (can be used more than once for each package)

  [ Elliot Murphy ]
  * python-mkdebian:
    - Change from python-central to python-support for consistency with
      debian python packaging team preference.
    - Update to Standards-Version: 3.8.3
    - Fix a typo that caused additional_dependencies defaulting to None
      instead of [].
    - If debchange is not available, give a more friendly error message.
      (LP: #464137)

  [ Martin Pitt ]
  * auto.py: Document handling of icons.
 -- Martin Pitt <email address hidden> Tue, 09 Mar 2010 16:28:04 +0100

Changed in python-distutils-extra (Ubuntu):
status: Fix Committed → Fix Released
KillerKiwi (killerkiwi2005) wrote :

apt-get install devscripts fixed this for me on karmic
irony

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers