[Python-modules-team] Bug#871770: python-bcrypt FTBFS: TypeError: putenv() argument 2 must be string without null bytes, not str

Adrian Bunk bunk at debian.org
Fri Aug 11 09:48:34 UTC 2017


Source: python-bcrypt
Version: 3.1.3-1
Severity: serious

Some recent change in unstable makes python-bcrypt FTBFS:

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

...
==================================== ERRORS ====================================
_ ERROR at setup of test_kdf[4-password-�-\xc1+Vb5\xee\xe0L!%\x98\x97\nW\x9ag] _

self = {'CPPFLAGS': '-Wdate-time -D_FORTIFY_SOURCE=2', 'DEB_BUILD_MULTIARCH': 'x86_64-linux-gnu', 'http_proxy': 'http://127.0...-O2 -fstack-protector-strong -Wformat -Werror=format-security', 'DEB_TARGET_ARCH': 'amd64', 'PERL_USE_UNSAFE_INC': '1'}
key = 'PYTEST_CURRENT_TEST'
item = 'tests/test_bcrypt.py::test_kdf[4-password-\x00-\\xc1+Vb5\\xee\\xe0L!%\\x98\\x97\\nW\\x9ag] (setup)'

    def __setitem__(self, key, item):
>       putenv(key, item)
E       TypeError: putenv() argument 2 must be string without null bytes, not str

/usr/lib/python2.7/os.py:473: TypeError
 ERROR at teardown of test_kdf[4-password-�-\xc1+Vb5\xee\xe0L!%\x98\x97\nW\x9ag] 

self = {'CPPFLAGS': '-Wdate-time -D_FORTIFY_SOURCE=2', 'DEB_BUILD_MULTIARCH': 'x86_64-linux-gnu', 'http_proxy': 'http://127.0...-O2 -fstack-protector-strong -Wformat -Werror=format-security', 'DEB_TARGET_ARCH': 'amd64', 'PERL_USE_UNSAFE_INC': '1'}
key = 'PYTEST_CURRENT_TEST'
item = 'tests/test_bcrypt.py::test_kdf[4-password-\x00-\\xc1+Vb5\\xee\\xe0L!%\\x98\\x97\\nW\\x9ag] (teardown)'

    def __setitem__(self, key, item):
>       putenv(key, item)
E       TypeError: putenv() argument 2 must be string without null bytes, not str

/usr/lib/python2.7/os.py:473: TypeError
=============================== warnings summary ===============================
tests/test_bcrypt.py::test_kdf[4-password-salt-[\xbf\x0c\xc2\x93X\x7f\x1c65U\\\'ye\x98\xd4~W\x90q\xbfB~\x9d\x8f\xbe\x84*\xba4\xd9]
  /build/1st/python-bcrypt-3.1.3/.pybuild/pythonX.Y_2.7/build/bcrypt/__init__.py:137: UserWarning: Warning: bcrypt.kdf() called with only 4 round(s). This few is not secure: the parameter is linear, like PBKDF2.
    UserWarning)

-- Docs: http://doc.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 2 failures !!!!!!!!!!!!!!!!!!!!
=============== 120 passed, 1 warnings, 2 error in 0.85 seconds ================
E: pybuild pybuild:283: test: plugin custom failed with: exit code=2: python2.7 -m pytest -v -x
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
debian/rules:10: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25


More information about the Python-modules-team mailing list