bash: /usr/lib/python2.7/dist-packages/diskimage_builder/lib/disk-image-create: No such file or directory

Bug #1672304 reported by George Shuklin
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Unassigned

Bug Description

I've tried to build diskimage-builder version 2.0.0 as debian package and found that it break itself at run with following message:

/usr/bin/disk-image-create
bash: /usr/lib/python2.7/dist-packages/diskimage_builder/lib/disk-image-create: No such file or directory

Version 1.9.0 and lower are not affected.

I believe this happens because version 2.0.0 add some clever tricks to work with venv, and that code is not adopted to run as normal system package. Older version uses normal shell (not a python), which worked fine in any mode (venv or system package).

Revision history for this message
Ian Wienand (iwienand) wrote :

I'd say the problem is actually that the package hasn't picked up and installed the binary

  bash: /usr/lib/python2.7/dist-packages/diskimage_builder/lib/disk-image-create: No such file or directory

/usr/bin/disk-image-create is an entry-point script provided by setuptools. this calls diskimage_builder.disk_image_create.py:main() which then execs() that script.

I'm not very familiar with the debian packaging of this, but i am familiar with debian packaging in general. If you want to give some details on what rules you're building with maybe we can get to the bottom of this

Revision history for this message
George Shuklin (george-shuklin) wrote :

There is a problem: current git for 2.0.0 does not contains any bash-scripts with name 'disk-image-create'. Only python script (through entry points), which, in turn, calls actual program which tries to run non-existing bash-script.

I think it's not a 'debian packaging' issue. It's impossible to package file which is not runtime-generated or is present in the git.

Revision history for this message
Ian Wienand (iwienand) wrote :

setup.py creates the "disk-image-create" script; this is the way just about every other project works.

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.