alan-turing-institute / AIrsenal

Machine learning Fantasy Premier League team
MIT License
259 stars 83 forks source link

Error running pipeline #602

Open sahildaswani opened 11 months ago

sahildaswani commented 11 months ago

I followed the steps in the readme and after running docker run -it --rm -v airsenal_data:/tmp/ -e "FPL_TEAM_ID=1234567" -e "AIRSENAL_HOME=/tmp" airsenal airsenal_run_pipeline on my M2 machine, it gives me this error:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "airsenal_run_pipeline": executable file not found in $PATH: unknown.

jack89roberts commented 11 months ago

Hi @sahildaswani , did you build with --platform linux/amd64 set? If not could you try running

docker build --platform linux/amd64 --no-cache -t airsenal .

and you may need to add --platform linux/amd64 to the docker run commands as well. Alternatively, this Stack Overflow thread suggests you can set the environment variable DOCKER_DEFAULT_PLATFORM=linux/amd64 instead.