Pipeline fails after initial setup

Hello,
I just set up a new private project with SonarCloud, using Python and Gitlab.
I followed the guide (creation of the .gitlab-ci.yml & sonar-project.properties files), the pipeline launched but it failed with this error :

$ sonar-scanner
bash: line 124: sonar-scanner: command not found 

Do you know what the issue is?
Best regards,

Hello @Adrien ,

Could you share the pipeline with me? If you don’t feel comfortable doing so publicly feel free to send me a private message.

My guess would be that the wrong image is being used for the analysis. The example pipeline looks like the following:

variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" 
 GIT_DEPTH: "0" 
sonarcloud-check:
 image:
   name: sonarsource/sonar-scanner-cli:latest
   entrypoint: [""]
 cache:
   key: "${CI_JOB_NAME}"
   paths:
     - .sonar/cache
 script:
   - sonar-scanner
 only:
   - merge_requests
   - master