[Python-modules-team] Bug#867631: python-nanomsg: missing build dependency on python3-all-dev

Adrian Bunk bunk at debian.org
Sat Jul 8 00:26:23 UTC 2017


Source: python-nanomsg
Version: 1.0-1
Severity: serious
Tags: buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-nanomsg.html

...
I: pybuild base:184: python3.6 setup.py test 
running test
running egg_info
writing nanomsg.egg-info/PKG-INFO
writing dependency_links to nanomsg.egg-info/dependency_links.txt
writing top-level names to nanomsg.egg-info/top_level.txt
reading manifest file 'nanomsg.egg-info/SOURCES.txt'
writing manifest file 'nanomsg.egg-info/SOURCES.txt'
running build_ext
building '_nanomsg_cpy' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c _nanomsg_cpy/wrapper.c -o build/temp.linux-amd64-3.6/_nanomsg_cpy/wrapper.o
_nanomsg_cpy/wrapper.c:1:20: fatal error: Python.h: No such file or directory
 #include <Python.h>
                    ^
compilation terminated.
test_pubsub (unittest.loader._FailedTest) ... ERROR
test_pair (unittest.loader._FailedTest) ... ERROR
test_general_socket_methods (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: test_pubsub (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_pubsub
Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/build/1st/python-nanomsg-1.0/tests/test_pubsub.py", line 8, in <module>
    from nanomsg import (
  File "/build/1st/python-nanomsg-1.0/nanomsg/__init__.py", line 7, in <module>
    from . import wrapper
  File "/build/1st/python-nanomsg-1.0/nanomsg/wrapper.py", line 4, in <module>
    _wrapper = _load_wrapper()
  File "/build/1st/python-nanomsg-1.0/nanomsg_wrappers/__init__.py", line 16, in load_wrapper
    return importlib.import_module('_nanomsg_' + _choice)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /build/1st/python-nanomsg-1.0/_nanomsg_cpy.so: undefined symbol: PyString_FromStringAndSize


======================================================================
ERROR: test_pair (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_pair
Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/build/1st/python-nanomsg-1.0/tests/test_pair.py", line 8, in <module>
    from nanomsg import (
  File "/build/1st/python-nanomsg-1.0/nanomsg/__init__.py", line 7, in <module>
    from . import wrapper
  File "/build/1st/python-nanomsg-1.0/nanomsg/wrapper.py", line 4, in <module>
    _wrapper = _load_wrapper()
  File "/build/1st/python-nanomsg-1.0/nanomsg_wrappers/__init__.py", line 16, in load_wrapper
    return importlib.import_module('_nanomsg_' + _choice)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /build/1st/python-nanomsg-1.0/_nanomsg_cpy.so: undefined symbol: PyString_FromStringAndSize


======================================================================
ERROR: test_general_socket_methods (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_general_socket_methods
Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/loader.py", line 153, in loadTestsFromName
    module = __import__(module_name)
  File "/build/1st/python-nanomsg-1.0/tests/test_general_socket_methods.py", line 8, in <module>
    from nanomsg import (
  File "/build/1st/python-nanomsg-1.0/nanomsg/__init__.py", line 7, in <module>
    from . import wrapper
  File "/build/1st/python-nanomsg-1.0/nanomsg/wrapper.py", line 4, in <module>
    _wrapper = _load_wrapper()
  File "/build/1st/python-nanomsg-1.0/nanomsg_wrappers/__init__.py", line 16, in load_wrapper
    return importlib.import_module('_nanomsg_' + _choice)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /build/1st/python-nanomsg-1.0/_nanomsg_cpy.so: undefined symbol: PyString_FromStringAndSize


----------------------------------------------------------------------
Ran 3 tests in 0.001s

FAILED (errors=3)
Test failed: <unittest.runner.TextTestResult run=3 errors=3 failures=0>

===============================================================================
WARNING : CPython API extension could not be built.

Exception was : CompileError(DistutilsExecError("command 'x86_64-linux-gnu-gcc' failed with exit status 1",),)

If you need the extensions (they may be faster than alternative on some
 platforms) check you have a compiler configured with all the necessary
 headers and libraries.
===============================================================================

error: Test failed: <unittest.runner.TextTestResult run=3 errors=3 failures=0>
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: python3.6 setup.py test 
dh_auto_test: pybuild --test -i python{version} -p 3.6 3.5 returned exit code 13
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 25



More information about the Python-modules-team mailing list