Note that the 5.0.0 release of icat.server ships icatadmin with #!/usr/bin/env python in the first line, which will cause it to be executed with Python 2 by default on most systems. So the issue may go unnoticed in production by now. But as a result of #300, this line has been changed to #!/usr/bin/env python3, so the error becomes apparent in development versions and future releases.
Running the
icatadmin
script to populate the Lucene index with Python 3 fails:Trying the same with Python 2 works:
Note that the 5.0.0 release of
icat.server
shipsicatadmin
with#!/usr/bin/env python
in the first line, which will cause it to be executed with Python 2 by default on most systems. So the issue may go unnoticed in production by now. But as a result of #300, this line has been changed to#!/usr/bin/env python3
, so the error becomes apparent in development versions and future releases.