[opensuse-packaging] python3 test a strange failure only during build
I'm finishing the packaging of python3-csvkit. The spec (with test line commented is located here) https://build.opensuse.org/package/show/home:bruno_friedmann:branches:devel:... To make it "perfect as possible" I would like to activate the tests But when run on obs (or locally osc build with chroot or kvm) a part of the tests fail [ 43s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.PyX4X2 [ 43s] + umask 022 [ 43s] + cd /home/abuild/rpmbuild/BUILD [ 43s] + cd csvkit-0.9.1 [ 43s] + export LC_ALL=en_US.UTF-8 [ 43s] + LC_ALL=en_US.UTF-8 [ 43s] ++ pwd [ 43s] + PYTHONPATH=/home/abuild/rpmbuild/BUILD/csvkit-0.9.1: [ 43s] + python3 csvkit/utilities/csvsql.py --table foo examples/testfixed_converted.csv [ 43s] ***************** [ 43s] ** WARNING ** [ 43s] ***************** [ 43s] [ 43s] This instance of Python is configured not to produce random numbers. [ 43s] [ 43s] THAT IS VERY DANGEROUS. [ 43s] [ 43s] Unless you know for sure that this is what you want, make sure [ 43s] that you remove the package `python3-buildservice-tweak`, or the file [ 43s] /usr/lib64/python3.5/site-packages/sitecustomize.py [ 43s] [ 43s] If this message is showing up in the buildservice, don't worry; [ 43s] the purpose of removing randomness is making builds reproducible [ 43s] even in the weird case that they're using random numbers. [ 43s] (also as of python 3.5, gathering randomness through os.urandom [ 43s] will block on buildservice VMs because it requires true entropy. [ 43s] see bsc#949816) [ 43s] [ 43s] ***************** [ 43s] detected call to os.urandom [ 43s] File "csvkit/utilities/csvsql.py", line 5, in <module> [ 43s] from csvkit import sql [ 43s] File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/home/abuild/rpmbuild/BUILD/csvkit-0.9.1/csvkit/sql.py", line 6, in <module> [ 43s] from sqlalchemy import Column, MetaData, Table, create_engine [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 138, in <module> [ 43s] __go(locals()) [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 137, in __go [ 43s] _sa_util.dependencies.resolve_all("sqlalchemy") [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 909, in resolve_all [ 43s] m._resolve() [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 950, in _resolve [ 43s] [self._il_addtl]) [ 43s] File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/default.py", line 17, in <module> [ 43s] import random [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/usr/lib64/python3.4/random.py", line 715, in <module> [ 43s] _inst = Random() [ 43s] File "/usr/lib64/python3.4/random.py", line 90, in __init__ [ 43s] self.seed(x) [ 43s] File "/usr/lib64/python3.4/random.py", line 110, in seed [ 43s] a = int.from_bytes(_urandom(2500), 'big') [ 43s] File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch [ 43s] traceback.print_stack() [ 43s] [ 43s] error: Bad exit status from /var/tmp/rpm-tmp.PyX4X2 (%check) [ 43s] [ 43s] [ 43s] RPM build errors: [ 43s] Bad exit status from /var/tmp/rpm-tmp.PyX4X2 (%check) [ 46s] [ 36.363711] sysrq: SysRq : Power Off [ 46s] [ 36.512086] reboot: Power down If I go to the build chroot as abuild user I can run the test without failure cat /var/tmp/rpm-tmp.PyX4X2 #!/bin/sh RPM_SOURCE_DIR="/home/abuild/rpmbuild/SOURCES" RPM_BUILD_DIR="/home/abuild/rpmbuild/BUILD" RPM_OPT_FLAGS="-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g" RPM_ARCH="x86_64" RPM_OS="linux" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR="/usr/share/doc/packages" export RPM_DOC_DIR RPM_PACKAGE_NAME="python3-csvkit" RPM_PACKAGE_VERSION="0.9.1" RPM_PACKAGE_RELEASE="0" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C export LANG unset CDPATH DISPLAY ||: RPM_BUILD_ROOT="/home/abuild/rpmbuild/BUILDROOT/python3-csvkit-0.9.1-0.x86_64" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH set -x umask 022 cd "/home/abuild/rpmbuild/BUILD" cd 'csvkit-0.9.1' # Impossible to run on obs :-o export LC_ALL=en_US.UTF-8; PYTHONPATH=`pwd`:$PYTHONPATH python3 csvkit/utilities/csvsql.py --table foo examples/testfixed_converted.csv # LC is mandatory to have codec using utf-8.py and not ascii export LC_ALL=en_US.UTF-8; nosetests-3.4 tests -v exit 0abuild@c-3po.labaroche.ioda.net:/home/abuild> env | grep DISPLAY abuild@c-3po.labaroche.ioda.net:/home/abuild> bash /var/tmp/rpm-tmp.PyX4X2 + umask 022 + cd /home/abuild/rpmbuild/BUILD + cd csvkit-0.9.1 + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 ++ pwd + PYTHONPATH=/home/abuild/rpmbuild/BUILD/csvkit-0.9.1: + python3 csvkit/utilities/csvsql.py --table foo examples/testfixed_converted.csv ***************** ** WARNING ** ***************** This instance of Python is configured not to produce random numbers. THAT IS VERY DANGEROUS. Unless you know for sure that this is what you want, make sure that you remove the package `python3-buildservice-tweak`, or the file /usr/lib64/python3.5/site-packages/sitecustomize.py If this message is showing up in the buildservice, don't worry; the purpose of removing randomness is making builds reproducible even in the weird case that they're using random numbers. (also as of python 3.5, gathering randomness through os.urandom will block on buildservice VMs because it requires true entropy. see bsc#949816) ***************** detected call to os.urandom File "csvkit/utilities/csvsql.py", line 5, in <module> from csvkit import sql File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/home/abuild/rpmbuild/BUILD/csvkit-0.9.1/csvkit/sql.py", line 6, in <module> from sqlalchemy import Column, MetaData, Table, create_engine File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 138, in <module> __go(locals()) File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 137, in __go _sa_util.dependencies.resolve_all("sqlalchemy") File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 909, in resolve_all m._resolve() File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 950, in _resolve [self._il_addtl]) File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/default.py", line 17, in <module> import random File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/random.py", line 715, in <module> _inst = Random() File "/usr/lib64/python3.4/random.py", line 90, in __init__ self.seed(x) File "/usr/lib64/python3.4/random.py", line 110, in seed a = int.from_bytes(_urandom(2500), 'big') File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch traceback.print_stack() CREATE TABLE foo ( text VARCHAR(17) NOT NULL, date DATE, integer INTEGER, boolean BOOLEAN, float FLOAT, time TIME, datetime DATETIME, empty_column VARCHAR(32), CHECK (boolean IN (0, 1)) ); + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 + nosetests-3.4 tests -v ***************** ** WARNING ** ***************** This instance of Python is configured not to produce random numbers. THAT IS VERY DANGEROUS. Unless you know for sure that this is what you want, make sure that you remove the package `python3-buildservice-tweak`, or the file /usr/lib64/python3.5/site-packages/sitecustomize.py If this message is showing up in the buildservice, don't worry; the purpose of removing randomness is making builds reproducible even in the weird case that they're using random numbers. (also as of python 3.5, gathering randomness through os.urandom will block on buildservice VMs because it requires true entropy. see bsc#949816) ***************** detected call to os.urandom File "/usr/bin/nosetests-3.4", line 5, in <module> from pkg_resources import load_entry_point File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 37, in <module> import email.parser File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/parser.py", line 12, in <module> from email.feedparser import FeedParser, BytesFeedParser File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/feedparser.py", line 27, in <module> from email import message File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/message.py", line 15, in <module> from email import utils File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/utils.py", line 28, in <module> import random File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/random.py", line 715, in <module> _inst = Random() File "/usr/lib64/python3.4/random.py", line 90, in __init__ self.seed(x) File "/usr/lib64/python3.4/random.py", line 110, in seed a = int.from_bytes(_urandom(2500), 'big') File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch traceback.print_stack() detected call to os.urandom File "/usr/bin/nosetests-3.4", line 9, in <module> load_entry_point('nose==1.3.7', 'console_scripts', 'nosetests-3.4')() File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2704, in load_entry_point return ep.load() File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2377, in load return self.resolve() File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2383, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/__init__.py", line 1, in <module> from nose.core import collector, main, run, run_exit, runmodule File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/core.py", line 11, in <module> from nose.config import Config, all_config_files File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/config.py", line 9, in <module> from nose.plugins.manager import NoPlugins File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/plugins/__init__.py", line 186, in <module> from nose.plugins.plugintest import PluginTester File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/plugins/plugintest.py", line 174, in <module> from multiprocessing import Manager File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/multiprocessing/__init__.py", line 16, in <module> from . import context File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/multiprocessing/context.py", line 5, in <module> from . import process File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/multiprocessing/process.py", line 316, in <module> _current_process = _MainProcess() File "/usr/lib64/python3.4/multiprocessing/process.py", line 303, in __init__ self._config = {'authkey': AuthenticationString(os.urandom(32)), File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch traceback.print_stack() test_extract_joinable_row_errors (tests.test_cleanup.TestCleanup) ... ok test_extract_joinable_row_errors_2 (tests.test_cleanup.TestCleanup) ... ok test_extract_joinable_row_errors_3 (tests.test_cleanup.TestCleanup) ... ok test_extract_joinable_row_errors_4 (tests.test_cleanup.TestCleanup) ... ok test_fix_length_errors_basic (tests.test_cleanup.TestCleanup) ... ok Test to ensure that row merging yields correct results ... ok test_real_world_join_fail (tests.test_cleanup.TestCleanup) ... ok test_match_column_identifier_numeric (tests.test_cli.TestCli) ... ok test_match_column_identifier_string (tests.test_cli.TestCli) ... ok test_match_column_which_could_be_integer_name_is_treated_as_positional_id (tests.test_cli.TestCli) ... ok test_parse_column_identifiers (tests.test_cli.TestCli) ... ok test_range_notation (tests.test_cli.TestCli) ... ok test_range_notation_open_ended (tests.test_cli.TestCli) ... ok test_guess_csv (tests.test_convert.test_convert.TestConvert) ... ok test_guess_dbf (tests.test_convert.test_convert.TestConvert) ... ok test_guess_fixed (tests.test_convert.test_convert.TestConvert) ... ok test_guess_json (tests.test_convert.test_convert.TestConvert) ... ok test_guess_xls (tests.test_convert.test_convert.TestConvert) ... ok test_guess_xls_uppercase (tests.test_convert.test_convert.TestConvert) ... ok test_guess_xlsx (tests.test_convert.test_convert.TestConvert) ... ok test_invalid_format (tests.test_convert.test_convert.TestConvert) ... ok test_no_file (tests.test_convert.test_convert.TestConvert) ... ok test_no_format (tests.test_convert.test_convert.TestConvert) ... ok test_valid_file (tests.test_convert.test_convert.TestConvert) ... ok test_csv_itself (tests.test_convert.test_csvitself.TestCSVItself) ... ok test_dbf (tests.test_convert.test_dbf.TestDBF) ... SKIP: Only supported in Python 2. test_fixed (tests.test_convert.test_fixed.TestFixed) ... ok test_fixed_streaming (tests.test_convert.test_fixed.TestFixed) ... ok test_one_based_row_decoder (tests.test_convert.test_fixed.TestFixed) ... ok test_schema_decoder_in_action (tests.test_convert.test_fixed.TestFixed) ... ok test_schema_decoder_init (tests.test_convert.test_fixed.TestFixed) ... ok test_schematic_line_parser (tests.test_convert.test_fixed.TestFixed) ... ok test_geojson (tests.test_convert.test_geojson.TestGeoJSON) ... ok test_dates_column_dates (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_dates_and_times (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_datetimes (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_times (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_times_and_datetimes (tests.test_convert.test_xls.TestXLS) ... ok test_determine_column_type_empty (tests.test_convert.test_xls.TestXLS) ... ok test_determine_column_type_multiple (tests.test_convert.test_xls.TestXLS) ... ok test_determine_column_type_single (tests.test_convert.test_xls.TestXLS) ... ok test_empty_column (tests.test_convert.test_xls.TestXLS) ... ok test_numbers_column_float (tests.test_convert.test_xls.TestXLS) ... ok test_numbers_column_integral (tests.test_convert.test_xls.TestXLS) ... ok test_text_column (tests.test_convert.test_xls.TestXLS) ... ok test_xls (tests.test_convert.test_xls.TestXLS) ... ok test_xls_with_sheet (tests.test_convert.test_xls.TestXLS) ... ok tests_dates_column_dates_and_datetimes (tests.test_convert.test_xls.TestXLS) ... ok test_normalize_datetime (tests.test_convert.test_xlsx.TestXLSX) ... ok test_xlsx (tests.test_convert.test_xlsx.TestXLSX) ... /usr/lib/python3.4/site-packages/openpyxl/workbook/workbook.py:102: UserWarning: Call to deprecated function or class get_active_sheet (Use the .active property). def get_active_sheet(self): ok test_xlsx_with_sheet (tests.test_convert.test_xlsx.TestXLSX) ... ok test_column_names_in_patterns (tests.test_grep.TestGrep) ... ok test_duplicate_column_ids_in_patterns (tests.test_grep.TestGrep) ... ok test_inverse (tests.test_grep.TestGrep) ... ok test_mixed_indices_and_column_names_in_patterns (tests.test_grep.TestGrep) ... ok test_no_header (tests.test_grep.TestGrep) ... ok test_pattern (tests.test_grep.TestGrep) ... ok test_regex (tests.test_grep.TestGrep) ... ok test_full_outer_join (tests.test_join.TestJoin) ... ok test_get_mapped_keys (tests.test_join.TestJoin) ... ok test_get_ordered_keys (tests.test_join.TestJoin) ... ok test_inner_join (tests.test_join.TestJoin) ... ok test_left_outer_join (tests.test_join.TestJoin) ... ok test_right_outer_join (tests.test_join.TestJoin) ... ok test_sequential_join (tests.test_join.TestJoin) ... ok test_reader (tests.test_py3.TestCSVKitDictReader) ... ok test_reader_alias (tests.test_py3.TestCSVKitDictReader) ... ok test_writer (tests.test_py3.TestCSVKitDictWriter) ... ok test_writer_alias (tests.test_py3.TestCSVKitDictWriter) ... ok test_reader_alias (tests.test_py3.TestCSVKitReader) ... ok test_utf8 (tests.test_py3.TestCSVKitReader) ... ok test_utf8 (tests.test_py3.TestCSVKitWriter) ... ok test_writer_alias (tests.test_py3.TestCSVKitWriter) ... ok test_column_has_nulls (tests.test_sql.TestSQL) ... ok test_column_no_nulls (tests.test_sql.TestSQL) ... ok test_make_column_big_int (tests.test_sql.TestSQL) ... ok test_make_column_bool (tests.test_sql.TestSQL) ... ok test_make_column_date (tests.test_sql.TestSQL) ... ok test_make_column_datetime (tests.test_sql.TestSQL) ... ok test_make_column_float (tests.test_sql.TestSQL) ... ok test_make_column_int (tests.test_sql.TestSQL) ... ok test_make_column_name (tests.test_sql.TestSQL) ... ok test_make_column_null (tests.test_sql.TestSQL) ... ok test_make_column_string (tests.test_sql.TestSQL) ... ok test_make_column_string_length (tests.test_sql.TestSQL) ... ok test_make_column_time (tests.test_sql.TestSQL) ... ok test_make_create_table_statement (tests.test_sql.TestSQL) ... ok test_make_create_table_statement_no_constraints (tests.test_sql.TestSQL) ... ok test_make_create_table_statement_with_schema (tests.test_sql.TestSQL) ... ok test_access (tests.test_table.TestColumn) ... ok test_create_column (tests.test_table.TestColumn) ... ok test_has_nulls (tests.test_table.TestColumn) ... ok test_max_length (tests.test_table.TestColumn) ... ok test_no_null (tests.test_table.TestColumn) ... ok test_out_of_bounds (tests.test_table.TestColumn) ... ok test_slice (tests.test_table.TestColumn) ... ok test_extra_header (tests.test_table.TestTable) ... ok test_from_csv (tests.test_table.TestTable) ... ok test_from_csv_no_inference (tests.test_table.TestTable) ... ok test_table_append (tests.test_table.TestTable) ... ok test_table_append_duplicate_name (tests.test_table.TestTable) ... ok test_table_count_rows (tests.test_table.TestTable) ... ok test_table_extend (tests.test_table.TestTable) ... ok test_table_insert (tests.test_table.TestTable) ... ok test_table_remove (tests.test_table.TestTable) ... ok test_table_reverse (tests.test_table.TestTable) ... ok test_table_row (tests.test_table.TestTable) ... ok test_table_row_out_of_bounds (tests.test_table.TestTable) ... ok test_table_sort (tests.test_table.TestTable) ... ok test_table_uneven_columns (tests.test_table.TestTable) ... ok test_to_csv (tests.test_table.TestTable) ... ok test_booleans (tests.test_typeinference.TestNormalizeType) ... ok test_booleans_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_booleans_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_comma_floats (tests.test_typeinference.TestNormalizeType) ... ok test_comma_ints (tests.test_typeinference.TestNormalizeType) ... ok test_dates (tests.test_typeinference.TestNormalizeType) ... ok test_dates_and_times (tests.test_typeinference.TestNormalizeType) ... ok test_dates_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_dates_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_and_dates (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_and_dates_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_and_times (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_floats (tests.test_typeinference.TestNormalizeType) ... ok test_floats_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_floats_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_ints (tests.test_typeinference.TestNormalizeType) ... ok test_ints_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_ints_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_ints_floats (tests.test_typeinference.TestNormalizeType) ... ok This obscure test named after Jeremy Singer-Vine, who discovered it. ... ok test_mixed (tests.test_typeinference.TestNormalizeType) ... ok test_normalize_table (tests.test_typeinference.TestNormalizeType) ... ok test_normalize_table_known_types (tests.test_typeinference.TestNormalizeType) ... ok test_normalize_table_known_types_invalid (tests.test_typeinference.TestNormalizeType) ... ok test_nulls (tests.test_typeinference.TestNormalizeType) ... ok test_nulls_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_nulls_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_padded_ints (tests.test_typeinference.TestNormalizeType) ... ok test_padded_ints_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_padded_ints_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_strings (tests.test_typeinference.TestNormalizeType) ... ok test_strings_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_strings_with_blanks (tests.test_typeinference.TestNormalizeType) ... ok test_strings_with_nulls (tests.test_typeinference.TestNormalizeType) ... ok test_times (tests.test_typeinference.TestNormalizeType) ... ok test_times_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_times_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_maxfieldsize (tests.test_unicsv.TestMaxFieldSize) ... SKIP: Not supported in Python 3. test_latin1 (tests.test_unicsv.TestUnicodeCSVDictReader) ... SKIP: Not supported in Python 3. test_reader (tests.test_unicsv.TestUnicodeCSVDictReader) ... SKIP: Not supported in Python 3. test_writer (tests.test_unicsv.TestUnicodeCSVDictWriter) ... SKIP: Not supported in Python 3. test_latin1 (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_utf16_big (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_utf16_little (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_utf8 (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_latin1 (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_utf16_big (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_utf16_little (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_utf8 (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_dry_run (tests.test_utilities.test_csvclean.TestCSVClean) ... ok test_simple (tests.test_utilities.test_csvclean.TestCSVClean) ... ok test_exclude (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_include_and_exclude (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_invalid_column (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_invalid_options (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_names (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_no_header_row (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_simple (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_unicode (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_with_bzip2 (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_with_gzip (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_delimiter (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_escapechar (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_lineterminator (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_quoting (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_tab_delimiter (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_invalid_column (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_invert_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_no_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_re_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_string_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_inner (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_left (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_left_short_columns (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_outer (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_right (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_sequential (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_duplicate_keys (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_geojson (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_geojson_with_crs (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_geojson_with_id (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_indentation (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_json_streaming (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_keying (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_simple (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_no_header (tests.test_utilities.test_csvlook.TestCSVLook) ... ok test_simple (tests.test_utilities.test_csvlook.TestCSVLook) ... ok test_unicode (tests.test_utilities.test_csvlook.TestCSVLook) ... ok test_invalid_column (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_invalid_options (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_no_header_row (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_no_inference (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_sort_date (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_sort_ints_and_nulls (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_sort_string_reverse (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_create_table (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_no_header_row (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_no_inference (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_query (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_stdin (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_stdin_and_filename (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_explicit_grouping (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_filenames_grouping (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_no_grouping (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_no_header_row (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_count_only (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_encoding (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_no_header_row (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_runs (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_convert_json (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_ndjson (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_specific_xls_sheet (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_xls (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_xlsx (tests.test_utilities.test_in2csv.TestIn2CSV) ... /usr/lib/python3.4/site-packages/openpyxl/workbook/workbook.py:102: UserWarning: Call to deprecated function or class get_active_sheet (Use the .active property). def get_active_sheet(self): ok test_csv_no_headers (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_linenumbers (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_no_header_row (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_query (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_stdin (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_stdin_with_query (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_unicode (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok ---------------------------------------------------------------------- Ran 236 tests in 0.401s OK (SKIP=13) + exit 0 I would like to thanks anyone who has an idea. ps: I've discuss with a co-worker who made fedora package and he has the same kind of trouble on koji/copr ... -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
hello, On 28.11.2015 21:14, Bruno Friedmann wrote:
I'm finishing the packaging of python3-csvkit.
figured it out. The problem is that the csvsql script insists on adding stdin if it's not a tty; that decision is questionable at best, and causes a failure in buildservice because stdin is redirected to some sort of empty input, which trips the script up. (i presume the same happens in koji) Indeed you can reproduce the same failure by adding "< /dev/null" to the csvsql command. The attached patch simply reverses this decision and ignores stdin; note that it causes one of the tests fail because it is checking that stdin is in the list of inputs (apparently this decision is deliberate and checked for). Ultimately it's up to you how to fix the problem; i presume you could ask upstream, or supply some other sort of input other than the redirected-stdin. Also please note that the "random warning" and the subsequent backtrace is completely unrelated and you can safely ignore it. I'll try to do something about the backtrace at least; the tweak package is still experimental. regards m.
The spec (with test line commented is located here) https://build.opensuse.org/package/show/home:bruno_friedmann:branches:devel:...
To make it "perfect as possible" I would like to activate the tests
But when run on obs (or locally osc build with chroot or kvm) a part of the tests fail
[ 43s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.PyX4X2 [ 43s] + umask 022 [ 43s] + cd /home/abuild/rpmbuild/BUILD [ 43s] + cd csvkit-0.9.1 [ 43s] + export LC_ALL=en_US.UTF-8 [ 43s] + LC_ALL=en_US.UTF-8 [ 43s] ++ pwd [ 43s] + PYTHONPATH=/home/abuild/rpmbuild/BUILD/csvkit-0.9.1: [ 43s] + python3 csvkit/utilities/csvsql.py --table foo examples/testfixed_converted.csv [ 43s] ***************** [ 43s] ** WARNING ** [ 43s] ***************** [ 43s] [ 43s] This instance of Python is configured not to produce random numbers. [ 43s] [ 43s] THAT IS VERY DANGEROUS. [ 43s] [ 43s] Unless you know for sure that this is what you want, make sure [ 43s] that you remove the package `python3-buildservice-tweak`, or the file [ 43s] /usr/lib64/python3.5/site-packages/sitecustomize.py [ 43s] [ 43s] If this message is showing up in the buildservice, don't worry; [ 43s] the purpose of removing randomness is making builds reproducible [ 43s] even in the weird case that they're using random numbers. [ 43s] (also as of python 3.5, gathering randomness through os.urandom [ 43s] will block on buildservice VMs because it requires true entropy. [ 43s] see bsc#949816) [ 43s] [ 43s] ***************** [ 43s] detected call to os.urandom [ 43s] File "csvkit/utilities/csvsql.py", line 5, in <module> [ 43s] from csvkit import sql [ 43s] File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/home/abuild/rpmbuild/BUILD/csvkit-0.9.1/csvkit/sql.py", line 6, in <module> [ 43s] from sqlalchemy import Column, MetaData, Table, create_engine [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 138, in <module> [ 43s] __go(locals()) [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 137, in __go [ 43s] _sa_util.dependencies.resolve_all("sqlalchemy") [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 909, in resolve_all [ 43s] m._resolve() [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 950, in _resolve [ 43s] [self._il_addtl]) [ 43s] File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/default.py", line 17, in <module> [ 43s] import random [ 43s] File "<frozen importlib._bootstrap>", line 2237, in _find_and_load [ 43s] File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked [ 43s] File "<frozen importlib._bootstrap>", line 1129, in _exec [ 43s] File "<frozen importlib._bootstrap>", line 1471, in exec_module [ 43s] File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed [ 43s] File "/usr/lib64/python3.4/random.py", line 715, in <module> [ 43s] _inst = Random() [ 43s] File "/usr/lib64/python3.4/random.py", line 90, in __init__ [ 43s] self.seed(x) [ 43s] File "/usr/lib64/python3.4/random.py", line 110, in seed [ 43s] a = int.from_bytes(_urandom(2500), 'big') [ 43s] File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch [ 43s] traceback.print_stack() [ 43s] [ 43s] error: Bad exit status from /var/tmp/rpm-tmp.PyX4X2 (%check) [ 43s] [ 43s] [ 43s] RPM build errors: [ 43s] Bad exit status from /var/tmp/rpm-tmp.PyX4X2 (%check) [ 46s] [ 36.363711] sysrq: SysRq : Power Off [ 46s] [ 36.512086] reboot: Power down
If I go to the build chroot as abuild user I can run the test without failure
cat /var/tmp/rpm-tmp.PyX4X2 #!/bin/sh
RPM_SOURCE_DIR="/home/abuild/rpmbuild/SOURCES" RPM_BUILD_DIR="/home/abuild/rpmbuild/BUILD" RPM_OPT_FLAGS="-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g" RPM_ARCH="x86_64" RPM_OS="linux" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR="/usr/share/doc/packages" export RPM_DOC_DIR RPM_PACKAGE_NAME="python3-csvkit" RPM_PACKAGE_VERSION="0.9.1" RPM_PACKAGE_RELEASE="0" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C export LANG unset CDPATH DISPLAY ||: RPM_BUILD_ROOT="/home/abuild/rpmbuild/BUILDROOT/python3-csvkit-0.9.1-0.x86_64" export RPM_BUILD_ROOT
PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH
set -x umask 022 cd "/home/abuild/rpmbuild/BUILD" cd 'csvkit-0.9.1' # Impossible to run on obs :-o export LC_ALL=en_US.UTF-8; PYTHONPATH=`pwd`:$PYTHONPATH python3 csvkit/utilities/csvsql.py --table foo examples/testfixed_converted.csv # LC is mandatory to have codec using utf-8.py and not ascii export LC_ALL=en_US.UTF-8; nosetests-3.4 tests -v
exit 0abuild@c-3po.labaroche.ioda.net:/home/abuild> env | grep DISPLAY abuild@c-3po.labaroche.ioda.net:/home/abuild> bash /var/tmp/rpm-tmp.PyX4X2 + umask 022 + cd /home/abuild/rpmbuild/BUILD + cd csvkit-0.9.1 + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 ++ pwd + PYTHONPATH=/home/abuild/rpmbuild/BUILD/csvkit-0.9.1: + python3 csvkit/utilities/csvsql.py --table foo examples/testfixed_converted.csv ***************** ** WARNING ** *****************
This instance of Python is configured not to produce random numbers.
THAT IS VERY DANGEROUS.
Unless you know for sure that this is what you want, make sure that you remove the package `python3-buildservice-tweak`, or the file /usr/lib64/python3.5/site-packages/sitecustomize.py
If this message is showing up in the buildservice, don't worry; the purpose of removing randomness is making builds reproducible even in the weird case that they're using random numbers. (also as of python 3.5, gathering randomness through os.urandom will block on buildservice VMs because it requires true entropy. see bsc#949816)
***************** detected call to os.urandom File "csvkit/utilities/csvsql.py", line 5, in <module> from csvkit import sql File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/home/abuild/rpmbuild/BUILD/csvkit-0.9.1/csvkit/sql.py", line 6, in <module> from sqlalchemy import Column, MetaData, Table, create_engine File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 138, in <module> __go(locals()) File "/usr/lib64/python3.4/site-packages/sqlalchemy/__init__.py", line 137, in __go _sa_util.dependencies.resolve_all("sqlalchemy") File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 909, in resolve_all m._resolve() File "/usr/lib64/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 950, in _resolve [self._il_addtl]) File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/site-packages/sqlalchemy/engine/default.py", line 17, in <module> import random File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/random.py", line 715, in <module> _inst = Random() File "/usr/lib64/python3.4/random.py", line 90, in __init__ self.seed(x) File "/usr/lib64/python3.4/random.py", line 110, in seed a = int.from_bytes(_urandom(2500), 'big') File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch traceback.print_stack() CREATE TABLE foo ( text VARCHAR(17) NOT NULL, date DATE, integer INTEGER, boolean BOOLEAN, float FLOAT, time TIME, datetime DATETIME, empty_column VARCHAR(32), CHECK (boolean IN (0, 1)) ); + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 + nosetests-3.4 tests -v ***************** ** WARNING ** *****************
This instance of Python is configured not to produce random numbers.
THAT IS VERY DANGEROUS.
Unless you know for sure that this is what you want, make sure that you remove the package `python3-buildservice-tweak`, or the file /usr/lib64/python3.5/site-packages/sitecustomize.py
If this message is showing up in the buildservice, don't worry; the purpose of removing randomness is making builds reproducible even in the weird case that they're using random numbers. (also as of python 3.5, gathering randomness through os.urandom will block on buildservice VMs because it requires true entropy. see bsc#949816)
***************** detected call to os.urandom File "/usr/bin/nosetests-3.4", line 5, in <module> from pkg_resources import load_entry_point File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 37, in <module> import email.parser File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/parser.py", line 12, in <module> from email.feedparser import FeedParser, BytesFeedParser File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/feedparser.py", line 27, in <module> from email import message File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/message.py", line 15, in <module> from email import utils File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/email/utils.py", line 28, in <module> import random File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/random.py", line 715, in <module> _inst = Random() File "/usr/lib64/python3.4/random.py", line 90, in __init__ self.seed(x) File "/usr/lib64/python3.4/random.py", line 110, in seed a = int.from_bytes(_urandom(2500), 'big') File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch traceback.print_stack() detected call to os.urandom File "/usr/bin/nosetests-3.4", line 9, in <module> load_entry_point('nose==1.3.7', 'console_scripts', 'nosetests-3.4')() File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2704, in load_entry_point return ep.load() File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2377, in load return self.resolve() File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2383, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/__init__.py", line 1, in <module> from nose.core import collector, main, run, run_exit, runmodule File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/core.py", line 11, in <module> from nose.config import Config, all_config_files File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/config.py", line 9, in <module> from nose.plugins.manager import NoPlugins File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/plugins/__init__.py", line 186, in <module> from nose.plugins.plugintest import PluginTester File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib/python3.4/site-packages/nose/plugins/plugintest.py", line 174, in <module> from multiprocessing import Manager File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/multiprocessing/__init__.py", line 16, in <module> from . import context File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/multiprocessing/context.py", line 5, in <module> from . import process File "<frozen importlib._bootstrap>", line 2284, in _handle_fromlist File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/usr/lib64/python3.4/multiprocessing/process.py", line 316, in <module> _current_process = _MainProcess() File "/usr/lib64/python3.4/multiprocessing/process.py", line 303, in __init__ self._config = {'authkey': AuthenticationString(os.urandom(32)), File "/usr/lib64/python3.4/site-packages/sitecustomize.py", line 33, in os_urandom_patch traceback.print_stack() test_extract_joinable_row_errors (tests.test_cleanup.TestCleanup) ... ok test_extract_joinable_row_errors_2 (tests.test_cleanup.TestCleanup) ... ok test_extract_joinable_row_errors_3 (tests.test_cleanup.TestCleanup) ... ok test_extract_joinable_row_errors_4 (tests.test_cleanup.TestCleanup) ... ok test_fix_length_errors_basic (tests.test_cleanup.TestCleanup) ... ok Test to ensure that row merging yields correct results ... ok test_real_world_join_fail (tests.test_cleanup.TestCleanup) ... ok test_match_column_identifier_numeric (tests.test_cli.TestCli) ... ok test_match_column_identifier_string (tests.test_cli.TestCli) ... ok test_match_column_which_could_be_integer_name_is_treated_as_positional_id (tests.test_cli.TestCli) ... ok test_parse_column_identifiers (tests.test_cli.TestCli) ... ok test_range_notation (tests.test_cli.TestCli) ... ok test_range_notation_open_ended (tests.test_cli.TestCli) ... ok test_guess_csv (tests.test_convert.test_convert.TestConvert) ... ok test_guess_dbf (tests.test_convert.test_convert.TestConvert) ... ok test_guess_fixed (tests.test_convert.test_convert.TestConvert) ... ok test_guess_json (tests.test_convert.test_convert.TestConvert) ... ok test_guess_xls (tests.test_convert.test_convert.TestConvert) ... ok test_guess_xls_uppercase (tests.test_convert.test_convert.TestConvert) ... ok test_guess_xlsx (tests.test_convert.test_convert.TestConvert) ... ok test_invalid_format (tests.test_convert.test_convert.TestConvert) ... ok test_no_file (tests.test_convert.test_convert.TestConvert) ... ok test_no_format (tests.test_convert.test_convert.TestConvert) ... ok test_valid_file (tests.test_convert.test_convert.TestConvert) ... ok test_csv_itself (tests.test_convert.test_csvitself.TestCSVItself) ... ok test_dbf (tests.test_convert.test_dbf.TestDBF) ... SKIP: Only supported in Python 2. test_fixed (tests.test_convert.test_fixed.TestFixed) ... ok test_fixed_streaming (tests.test_convert.test_fixed.TestFixed) ... ok test_one_based_row_decoder (tests.test_convert.test_fixed.TestFixed) ... ok test_schema_decoder_in_action (tests.test_convert.test_fixed.TestFixed) ... ok test_schema_decoder_init (tests.test_convert.test_fixed.TestFixed) ... ok test_schematic_line_parser (tests.test_convert.test_fixed.TestFixed) ... ok test_geojson (tests.test_convert.test_geojson.TestGeoJSON) ... ok test_dates_column_dates (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_dates_and_times (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_datetimes (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_times (tests.test_convert.test_xls.TestXLS) ... ok test_dates_column_times_and_datetimes (tests.test_convert.test_xls.TestXLS) ... ok test_determine_column_type_empty (tests.test_convert.test_xls.TestXLS) ... ok test_determine_column_type_multiple (tests.test_convert.test_xls.TestXLS) ... ok test_determine_column_type_single (tests.test_convert.test_xls.TestXLS) ... ok test_empty_column (tests.test_convert.test_xls.TestXLS) ... ok test_numbers_column_float (tests.test_convert.test_xls.TestXLS) ... ok test_numbers_column_integral (tests.test_convert.test_xls.TestXLS) ... ok test_text_column (tests.test_convert.test_xls.TestXLS) ... ok test_xls (tests.test_convert.test_xls.TestXLS) ... ok test_xls_with_sheet (tests.test_convert.test_xls.TestXLS) ... ok tests_dates_column_dates_and_datetimes (tests.test_convert.test_xls.TestXLS) ... ok test_normalize_datetime (tests.test_convert.test_xlsx.TestXLSX) ... ok test_xlsx (tests.test_convert.test_xlsx.TestXLSX) ... /usr/lib/python3.4/site-packages/openpyxl/workbook/workbook.py:102: UserWarning: Call to deprecated function or class get_active_sheet (Use the .active property). def get_active_sheet(self): ok test_xlsx_with_sheet (tests.test_convert.test_xlsx.TestXLSX) ... ok test_column_names_in_patterns (tests.test_grep.TestGrep) ... ok test_duplicate_column_ids_in_patterns (tests.test_grep.TestGrep) ... ok test_inverse (tests.test_grep.TestGrep) ... ok test_mixed_indices_and_column_names_in_patterns (tests.test_grep.TestGrep) ... ok test_no_header (tests.test_grep.TestGrep) ... ok test_pattern (tests.test_grep.TestGrep) ... ok test_regex (tests.test_grep.TestGrep) ... ok test_full_outer_join (tests.test_join.TestJoin) ... ok test_get_mapped_keys (tests.test_join.TestJoin) ... ok test_get_ordered_keys (tests.test_join.TestJoin) ... ok test_inner_join (tests.test_join.TestJoin) ... ok test_left_outer_join (tests.test_join.TestJoin) ... ok test_right_outer_join (tests.test_join.TestJoin) ... ok test_sequential_join (tests.test_join.TestJoin) ... ok test_reader (tests.test_py3.TestCSVKitDictReader) ... ok test_reader_alias (tests.test_py3.TestCSVKitDictReader) ... ok test_writer (tests.test_py3.TestCSVKitDictWriter) ... ok test_writer_alias (tests.test_py3.TestCSVKitDictWriter) ... ok test_reader_alias (tests.test_py3.TestCSVKitReader) ... ok test_utf8 (tests.test_py3.TestCSVKitReader) ... ok test_utf8 (tests.test_py3.TestCSVKitWriter) ... ok test_writer_alias (tests.test_py3.TestCSVKitWriter) ... ok test_column_has_nulls (tests.test_sql.TestSQL) ... ok test_column_no_nulls (tests.test_sql.TestSQL) ... ok test_make_column_big_int (tests.test_sql.TestSQL) ... ok test_make_column_bool (tests.test_sql.TestSQL) ... ok test_make_column_date (tests.test_sql.TestSQL) ... ok test_make_column_datetime (tests.test_sql.TestSQL) ... ok test_make_column_float (tests.test_sql.TestSQL) ... ok test_make_column_int (tests.test_sql.TestSQL) ... ok test_make_column_name (tests.test_sql.TestSQL) ... ok test_make_column_null (tests.test_sql.TestSQL) ... ok test_make_column_string (tests.test_sql.TestSQL) ... ok test_make_column_string_length (tests.test_sql.TestSQL) ... ok test_make_column_time (tests.test_sql.TestSQL) ... ok test_make_create_table_statement (tests.test_sql.TestSQL) ... ok test_make_create_table_statement_no_constraints (tests.test_sql.TestSQL) ... ok test_make_create_table_statement_with_schema (tests.test_sql.TestSQL) ... ok test_access (tests.test_table.TestColumn) ... ok test_create_column (tests.test_table.TestColumn) ... ok test_has_nulls (tests.test_table.TestColumn) ... ok test_max_length (tests.test_table.TestColumn) ... ok test_no_null (tests.test_table.TestColumn) ... ok test_out_of_bounds (tests.test_table.TestColumn) ... ok test_slice (tests.test_table.TestColumn) ... ok test_extra_header (tests.test_table.TestTable) ... ok test_from_csv (tests.test_table.TestTable) ... ok test_from_csv_no_inference (tests.test_table.TestTable) ... ok test_table_append (tests.test_table.TestTable) ... ok test_table_append_duplicate_name (tests.test_table.TestTable) ... ok test_table_count_rows (tests.test_table.TestTable) ... ok test_table_extend (tests.test_table.TestTable) ... ok test_table_insert (tests.test_table.TestTable) ... ok test_table_remove (tests.test_table.TestTable) ... ok test_table_reverse (tests.test_table.TestTable) ... ok test_table_row (tests.test_table.TestTable) ... ok test_table_row_out_of_bounds (tests.test_table.TestTable) ... ok test_table_sort (tests.test_table.TestTable) ... ok test_table_uneven_columns (tests.test_table.TestTable) ... ok test_to_csv (tests.test_table.TestTable) ... ok test_booleans (tests.test_typeinference.TestNormalizeType) ... ok test_booleans_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_booleans_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_comma_floats (tests.test_typeinference.TestNormalizeType) ... ok test_comma_ints (tests.test_typeinference.TestNormalizeType) ... ok test_dates (tests.test_typeinference.TestNormalizeType) ... ok test_dates_and_times (tests.test_typeinference.TestNormalizeType) ... ok test_dates_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_dates_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_and_dates (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_and_dates_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_and_times (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_datetimes_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_floats (tests.test_typeinference.TestNormalizeType) ... ok test_floats_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_floats_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_ints (tests.test_typeinference.TestNormalizeType) ... ok test_ints_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_ints_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_ints_floats (tests.test_typeinference.TestNormalizeType) ... ok This obscure test named after Jeremy Singer-Vine, who discovered it. ... ok test_mixed (tests.test_typeinference.TestNormalizeType) ... ok test_normalize_table (tests.test_typeinference.TestNormalizeType) ... ok test_normalize_table_known_types (tests.test_typeinference.TestNormalizeType) ... ok test_normalize_table_known_types_invalid (tests.test_typeinference.TestNormalizeType) ... ok test_nulls (tests.test_typeinference.TestNormalizeType) ... ok test_nulls_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_nulls_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_padded_ints (tests.test_typeinference.TestNormalizeType) ... ok test_padded_ints_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_padded_ints_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_strings (tests.test_typeinference.TestNormalizeType) ... ok test_strings_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_strings_with_blanks (tests.test_typeinference.TestNormalizeType) ... ok test_strings_with_nulls (tests.test_typeinference.TestNormalizeType) ... ok test_times (tests.test_typeinference.TestNormalizeType) ... ok test_times_coerce (tests.test_typeinference.TestNormalizeType) ... ok test_times_coerce_fail (tests.test_typeinference.TestNormalizeType) ... ok test_maxfieldsize (tests.test_unicsv.TestMaxFieldSize) ... SKIP: Not supported in Python 3. test_latin1 (tests.test_unicsv.TestUnicodeCSVDictReader) ... SKIP: Not supported in Python 3. test_reader (tests.test_unicsv.TestUnicodeCSVDictReader) ... SKIP: Not supported in Python 3. test_writer (tests.test_unicsv.TestUnicodeCSVDictWriter) ... SKIP: Not supported in Python 3. test_latin1 (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_utf16_big (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_utf16_little (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_utf8 (tests.test_unicsv.TestUnicodeCSVReader) ... SKIP: Not supported in Python 3. test_latin1 (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_utf16_big (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_utf16_little (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_utf8 (tests.test_unicsv.TestUnicodeCSVWriter) ... SKIP: Not supported in Python 3. test_dry_run (tests.test_utilities.test_csvclean.TestCSVClean) ... ok test_simple (tests.test_utilities.test_csvclean.TestCSVClean) ... ok test_exclude (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_include_and_exclude (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_invalid_column (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_invalid_options (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_names (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_no_header_row (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_simple (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_unicode (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_with_bzip2 (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_with_gzip (tests.test_utilities.test_csvcut.TestCSVCut) ... ok test_delimiter (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_escapechar (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_lineterminator (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_quoting (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_tab_delimiter (tests.test_utilities.test_csvformat.TestCSVFormat) ... ok test_invalid_column (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_invert_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_no_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_re_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_string_match (tests.test_utilities.test_csvgrep.TestCSVGrep) ... ok test_inner (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_left (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_left_short_columns (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_outer (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_right (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_sequential (tests.test_utilities.test_csvjoin.TestCSVJoin) ... ok test_duplicate_keys (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_geojson (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_geojson_with_crs (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_geojson_with_id (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_indentation (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_json_streaming (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_keying (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_simple (tests.test_utilities.test_csvjson.TestCSVJSON) ... ok test_no_header (tests.test_utilities.test_csvlook.TestCSVLook) ... ok test_simple (tests.test_utilities.test_csvlook.TestCSVLook) ... ok test_unicode (tests.test_utilities.test_csvlook.TestCSVLook) ... ok test_invalid_column (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_invalid_options (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_no_header_row (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_no_inference (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_sort_date (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_sort_ints_and_nulls (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_sort_string_reverse (tests.test_utilities.test_csvsort.TestCSVSort) ... ok test_create_table (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_no_header_row (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_no_inference (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_query (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_stdin (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_stdin_and_filename (tests.test_utilities.test_csvsql.TestCSVSQL) ... ok test_explicit_grouping (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_filenames_grouping (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_no_grouping (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_no_header_row (tests.test_utilities.test_csvstack.TestCSVStack) ... ok test_count_only (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_encoding (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_no_header_row (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_runs (tests.test_utilities.test_csvstat.TestCSVStat) ... ok test_convert_json (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_ndjson (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_specific_xls_sheet (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_xls (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_convert_xlsx (tests.test_utilities.test_in2csv.TestIn2CSV) ... /usr/lib/python3.4/site-packages/openpyxl/workbook/workbook.py:102: UserWarning: Call to deprecated function or class get_active_sheet (Use the .active property). def get_active_sheet(self): ok test_csv_no_headers (tests.test_utilities.test_in2csv.TestIn2CSV) ... ok test_linenumbers (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_no_header_row (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_query (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_stdin (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_stdin_with_query (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok test_unicode (tests.test_utilities.test_sql2csv.TestSQL2CSV) ... ok
---------------------------------------------------------------------- Ran 236 tests in 0.401s
OK (SKIP=13) + exit 0
I would like to thanks anyone who has an idea.
ps: I've discuss with a co-worker who made fedora package and he has the same kind of trouble on koji/copr ...
On Monday 30 November 2015 15.52:41 jan matejek wrote:
hello,
On 28.11.2015 21:14, Bruno Friedmann wrote:
I'm finishing the packaging of python3-csvkit.
figured it out. The problem is that the csvsql script insists on adding stdin if it's not a tty; that decision is questionable at best, and causes a failure in buildservice because stdin is redirected to some sort of empty input, which trips the script up. (i presume the same happens in koji)
Exactly, was my suspicion but didn't find a way to fix that. I'm still learning :-)
Indeed you can reproduce the same failure by adding "< /dev/null" to the csvsql command.
The attached patch simply reverses this decision and ignores stdin; note that it causes one of the tests fail because it is checking that stdin is in the list of inputs (apparently this decision is deliberate and checked for).
Ok thanks so much for the patch. I've improve it by also commented out the assert that was failing.
Ultimately it's up to you how to fix the problem; i presume you could ask upstream, or supply some other sort of input other than the redirected-stdin. Now we have good failing and a patch I will open that issue upstream and see what's their thought about it.
Also please note that the "random warning" and the subsequent backtrace is completely unrelated and you can safely ignore it. I'll try to do something about the backtrace at least; the tweak package is still experimental.
Nice to heard you will fix it, actually it does its jobs, but the output is kinda spam on every python build :-))
regards m.
Again thanks a lot, I'm no able to push the package further.
The spec (with test line commented is located here) https://build.opensuse.org/package/show/home:bruno_friedmann:branches:devel:...
-- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Board, fsfe fellowship GPG KEY : D5C9B751C4653227 irc: tigerfoot
participants (2)
-
Bruno Friedmann
-
jan matejek