I stumpeled upon a strange error message when running an upgrade task in magento2.
Even running bin/magento without any argument showed the same behavior.
The solution is simple and stupid somehow. It turned out that I had a copy-paste
error in my module.xml. Note the additional ‘ at the end of the module name
which was the cause for this frightening error in my case.