log_file.txt

download

ERROR /tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test actionid=py34-dataimport
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test']
env={'LANG': 'en_US.UTF-8', 'APYCOT_ROOT': '/tmp/tmpVFdEsp', 'LANGUAGE': 'en_US:en', 'PYTHONPATH': '/usr/share/narval:/usr/share/narval', 'HGRCPATH': '/dev/null', 'LINES': '24', 'VIRTUAL_ENV': '/tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HOME': '/var/lib/narval', 'LC_ALL': 'fr_FR.UTF-8', 'COLUMNS': '80'}
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 55 items

cubicweb/dataimport/test/test_csv.py ..
cubicweb/dataimport/test/test_massive_store.py EEEEEEEEEEEEEEEEE
cubicweb/dataimport/test/test_pgstore.py .........
cubicweb/dataimport/test/test_sqlgenstore.py EEE
cubicweb/dataimport/test/test_stores.py .........
cubicweb/dataimport/test/unittest_importer.py ...............

==================================== ERRORS ====================================
_____ ERROR at setup of MassiveObjectStoreWithCustomMDGenStoreTC.test_base _____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_________ ERROR at setup of MassImportSimpleTC.test_autoflush_metadata _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_____________ ERROR at setup of MassImportSimpleTC.test_drop_index _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MassImportSimpleTC.test_drop_index_recreation ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_____________ ERROR at setup of MassImportSimpleTC.test_eid_entity _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
____________ ERROR at setup of MassImportSimpleTC.test_eid_entity_2 ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
___________ ERROR at setup of MassImportSimpleTC.test_eids_seq_range ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__________ ERROR at setup of MassImportSimpleTC.test_identical_schema __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
___________ ERROR at setup of MassImportSimpleTC.test_index_building ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_____ ERROR at setup of MassImportSimpleTC.test_massimport_etype_metadata ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__________ ERROR at setup of MassImportSimpleTC.test_multiple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
______ ERROR at setup of MassImportSimpleTC.test_multiple_insert_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_________ ERROR at setup of MassImportSimpleTC.test_on_commit_callback _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
________ ERROR at setup of MassImportSimpleTC.test_on_rollback_callback ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
___________ ERROR at setup of MassImportSimpleTC.test_simple_insert ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
________ ERROR at setup of MassImportSimpleTC.test_slave_mode_exception ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_________ ERROR at setup of MassImportSimpleTC.test_slave_mode_indexes _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
________ ERROR at setup of SQLGenImportSimpleTC.test_autoflush_metadata ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__________ ERROR at setup of SQLGenImportSimpleTC.test_simple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
____ ERROR at setup of SQLGenImportSimpleTC.test_sqlgenstore_etype_metadata ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
===================== 35 passed, 20 error in 6.69 seconds ======================
<br/>

log from execution