<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<blockquote type="cite"
cite="mid:CADRrdKt-uhBxY8THYcSm5w=7zqkFg97JcXWCMGAXsvRjATXrzA@mail.gmail.com">
<div dir="ltr">
<div>However, if I run the full test suite, it fails collecting
alg/fillnodata.py</div>
<div>(I work it around with "pytest
--continue-on-collection-errors")</div>
</div>
</blockquote>
<p>The issue is that pytest 4.6.9 is too old. I've just bumped the
min version to 6.0.0 <br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CADRrdKt-uhBxY8THYcSm5w=7zqkFg97JcXWCMGAXsvRjATXrzA@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div><span style="font-family:monospace">$ pytest<br>
Test session starts (platform: linux, Python 3.8.5, pytest
4.6.9, pytest-sugar 0.9.4)<br>
rootdir: /home/jshaw/work/gdal/autotest, inifile:
pytest.ini, testpaths: ogr, gcore, gdrivers, osr, alg, gnm,
utilities, pyscripts<br>
plugins: sugar-0.9.4, env-0.6.2<br>
collecting ... <br>
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
ERROR collecting alg/fillnodata.py
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――<br>
/usr/lib/python3/dist-packages/pluggy/hooks.py:286: in
__call__<br>
return self._hookexec(self, self.get_hookimpls(),
kwargs)<br>
/usr/lib/python3/dist-packages/pluggy/manager.py:92: in
_hookexec<br>
return self._inner_hookexec(hook, methods, kwargs)<br>
/usr/lib/python3/dist-packages/pluggy/manager.py:83: in
<lambda><br>
self._inner_hookexec = lambda hook, methods, kwargs:
hook.multicall(<br>
/usr/lib/python3/dist-packages/_pytest/python.py:234: in
pytest_pycollect_makeitem<br>
res = list(collector._genfunctions(name, obj))<br>
/usr/lib/python3/dist-packages/_pytest/python.py:410: in
_genfunctions<br>
self.ihook.pytest_generate_tests(metafunc=metafunc)<br>
/usr/lib/python3/dist-packages/pluggy/hooks.py:286: in
__call__<br>
return self._hookexec(self, self.get_hookimpls(),
kwargs)<br>
/usr/lib/python3/dist-packages/pluggy/manager.py:92: in
_hookexec<br>
return self._inner_hookexec(hook, methods, kwargs)<br>
/usr/lib/python3/dist-packages/pluggy/manager.py:83: in
<lambda><br>
self._inner_hookexec = lambda hook, methods, kwargs:
hook.multicall(<br>
/usr/lib/python3/dist-packages/_pytest/python.py:137: in
pytest_generate_tests<br>
metafunc.parametrize(*marker.args, **marker.kwargs)<br>
/usr/lib/python3/dist-packages/_pytest/python.py:1015: in
parametrize<br>
ids = self._resolve_arg_ids(argnames, ids, parameters,
item=self.definition)<br>
/usr/lib/python3/dist-packages/_pytest/python.py:1069: in
_resolve_arg_ids<br>
ids = idmaker(argnames, parameters, idfn, ids,
self.config, item=item)<br>
/usr/lib/python3/dist-packages/_pytest/python.py:1221: in
idmaker<br>
ids = [<br>
/usr/lib/python3/dist-packages/_pytest/python.py:1222: in
<listcomp><br>
_idvalset(valindex, parameterset, argnames, idfn, ids,
config=config, item=item)<br>
/usr/lib/python3/dist-packages/_pytest/python.py:1210: in
_idvalset<br>
if ids is None or (idx >= len(ids) or ids[idx] is
None):<br>
E TypeError: 'dict_keys' object is not subscriptable<br>
<br>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Interrupted: 1 errors during collection
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>
<br>
Results (5.42s):</span></div>
<div><br>
</div>
<div>Cheers<br>
</div>
<div dir="ltr">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.
.___ .. __ . _. . __.. ... .... ._ .__<br>
Entre dos pensamientos racionales <br>
hay infinitos pensamientos irracionales.<br>
<br>
</div>
</div>
<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, 2 Jun 2021 at 17:38,
Even Rouault <<a href="mailto:even.rouault@spatialys.com"
moz-do-not-send="true">even.rouault@spatialys.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<p>Javier,</p>
<p>CONTRIBUTING.md was missing the --with-python configure
switch to build the python bindings. Now fixed</p>
<p>So re-run ./configure --with-python && make -j8
-s , and also source again "<span>.
scripts/setdevenv.sh" so that PYTHONPATH is set
appropriately</span></p>
<p><span>You can check that everything is OK with:<br>
</span></p>
<p><span>python -c "from osgeo import gdal;
print(gdal.__version__)"<br>
</span></p>
<p><span>Even</span></p>
</div>
</blockquote>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>