log_file.txt

download

ERROR /usr/bin/touch /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/share/cubicweb/cubes/__init__.py actionid=py34-migractions
msg=runtests
cmdargs=['/usr/bin/touch', '/tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/share/cubicweb/cubes/__init__.py']
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-migractions', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/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'}
<br/>ERROR /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py actionid=py34-migractions
msg=runtests
cmdargs=[&#39;/tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/bin/python&#39;, &#39;-m&#39;, &#39;pytest&#39;, &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;]
env={&#39;LANG&#39;: &#39;en_US.UTF-8&#39;, &#39;APYCOT_ROOT&#39;: &#39;/tmp/tmpVFdEsp&#39;, &#39;LANGUAGE&#39;: &#39;en_US:en&#39;, &#39;PYTHONPATH&#39;: &#39;/usr/share/narval:/usr/share/narval&#39;, &#39;HGRCPATH&#39;: &#39;/dev/null&#39;, &#39;LINES&#39;: &#39;24&#39;, &#39;VIRTUAL_ENV&#39;: &#39;/tmp/tmpVFdEsp/src/345579/.tox/py34-migractions&#39;, &#39;PYTHONHASHSEED&#39;: &#39;3827751083&#39;, &#39;PATH&#39;: &#39;/tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&#39;, &#39;HOME&#39;: &#39;/var/lib/narval&#39;, &#39;LC_ALL&#39;: &#39;fr_FR.UTF-8&#39;, &#39;COLUMNS&#39;: &#39;80&#39;}
============================= 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 47 items

cubicweb/server/test/unittest_migractions.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

==================================== ERRORS ====================================
________ ERROR at setup of MigrationCommandsTC.test_add_attribute_bool _________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_attribute_int _________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_attribute_unique ________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_attribute_varchar _______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_cube_with_custom_final_type __

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_datetime_with_default_value_attribute

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_drop_cube_and_deps _______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_drop_cube_no_deps _______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_drop_entity_type ________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_drop_relation_type _______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_entity_type __________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_relation_definition_nortype __

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_add_symmetric_relation_type ____

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_change_attribute_type _______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_change_relation_props_final ____

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_change_relation_props_non_final __

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_chosen_constraints_ctxmanager _

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_dep_cube ___________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_inlined_rdef_delete_data ___

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_relation_definition_existant_rtype

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_relation_definition_with_specialization

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_required_ctxmanager ______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_drop_required_inlined_relation ___

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_introduce_base_class ________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_rename_attribute __________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_rename_entity_type _________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_rename_relation __________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_set_size_constraint ________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_storage_changed __________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_sync_schema_props_perms ______

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_sync_schema_props_perms_rqlconstraints

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsTC.test_workflow_actions __________

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_add_attribute

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_add_relation_type

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_drop_attribute

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_drop_relation_definition

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_drop_type

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_sync_schema_props_perms_rdef

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_attribute_sync_schema_props_perms_rtype

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_add_relation_definition

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_add_relation_type

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_drop_relation_definition

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_drop_relation_type

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_rename_relation_type

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_sync_schema_props_perms

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_sync_schema_props_perms_on_rdef

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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 MigrationCommandsComputedTC.test_computed_relation_sync_schema_props_perms_security

def setUpModule():
&gt; startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = &#39;/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py&#39;

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

except OSError as err:
if err.errno == errno.ENOENT:
&gt; raise OSError(&#39;&quot;initdb&quot; could not be found. &#39;
&#39;You should add the postgresql bin folder to your PATH &#39;
&#39;(/usr/lib/postgresql/9.1/bin for example).&#39;)
E OSError: &quot;initdb&quot; 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
=========================== 47 error in 2.28 seconds ===========================
<br/>

log from execution