Magento data migration

I have been following this excelent tutorial on migrating from M1 to M2 (in my case to 2.2.5)

I got stuck on Migrate Settings Using Magento 2 Data Migration Tool step.

I get this error:
There are no commands defined in the “migrate” namespace.

Can anyone help on understand what might be causing this?