In the documentation page component, there is no mention to the fact that one have to import the function
from cdb.core.component import get_component
At least I have to do it.