examples/py2-project fails to build

Bug #1494825 reported by Federico Gimenez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Daniel Holbach

Bug Description

Using trunk code r157, running snapcraft from the examples/py2-project directory returns this on wily:

[...]
Building spongeshaker
python2 setup.py install --install-layout=deb --prefix=/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/spongeshaker/install/usr
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/test.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/sponge.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/stream_cipher.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/sha3.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/prng.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/spongewrap.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/hashing.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/__init__.py -> build/lib.linux-x86_64-2.7/spongeshaker
copying spongeshaker/util.py -> build/lib.linux-x86_64-2.7/spongeshaker
running build_ext
building 'spongeshaker.keccak' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include/x86_64-linux-gnu -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include/x86_64-linux-gnu -fPIC -I/usr/include/python2.7 -c src/keccak.c -o build/temp.linux-x86_64-2.7/src/keccak.o
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/include/x86_64-linux-gnu -I/home/fgimenez/workspace/snapcraft/build-examples-test/examples/py2-project/parts/python2/install/usr/include/x86_64-linux-gnu -fPIC -I/usr/include/python2.7 -c src/pykeccak.c -o build/temp.linux-x86_64-2.7/src/pykeccak.o
src/pykeccak.c:20:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Failed doing build for spongeshaker!

Thanks!

Tags: first-steps
description: updated
tags: added: first-steps
Revision history for this message
Daniel Holbach (dholbach) wrote :

This seems to be fixed now.

Changed in snapcraft:
status: New → Fix Committed
status: Fix Committed → New
Revision history for this message
Daniel Holbach (dholbach) wrote :

Sorry. Not quite. It seems to fail in a different way now:

daniel@daydream:~/dev/snappy/snapcraft/examples/py2-project$ ../../bin/snapcraft
Pulling python2
Traceback (most recent call last):
  File "../../bin/snapcraft", line 33, in <module>
    snapcraft.main.main()
  File "/home/daniel/dev/snappy/snapcraft/snapcraft/main.py", line 77, in main
    args.func(args)
  File "/home/daniel/dev/snappy/snapcraft/snapcraft/cmds.py", line 94, in assemble
    snap(args)
  File "/home/daniel/dev/snappy/snapcraft/snapcraft/cmds.py", line 76, in snap
    cmd(args)
  File "/home/daniel/dev/snappy/snapcraft/snapcraft/cmds.py", line 282, in cmd
    if not getattr(part, cmd)(force=force):
  File "/home/daniel/dev/snappy/snapcraft/snapcraft/plugin.py", line 192, in pull
    self.code.setup_stage_packages()
  File "/home/daniel/dev/snappy/snapcraft/snapcraft/__init__.py", line 104, in setup_stage_packages
    ubuntu.get(self.PLUGIN_STAGE_PACKAGES + part_stage_packages)
TypeError: can only concatenate list (not "NoneType") to list
daniel@daydream:~/dev/snappy/snapcraft/examples/py2-project$

Revision history for this message
Daniel Holbach (dholbach) wrote :

Fixed in r164.

Changed in snapcraft:
status: New → Fix Committed
assignee: nobody → Daniel Holbach (dholbach)
Changed in snapcraft:
milestone: none → 0.2
Changed in snapcraft:
importance: Undecided → Medium
Changed in snapcraft:
status: Fix Committed → 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.