title: Python 3.9.7 script failing to run on ubuntu crontab
body: <p>I am currently attempting to setup a raspberry pi 4 as an intercom system using ubuntu 21.10. I am using functioning python scripts to play mp3s via cron jobs.</p>
  <p>My scripts are almost exactly the same as this except for differing mp3 files:</p>
  <pre><code>#!/usr/bin/env python3
  
  from pygame import mixer
  from pygame import time
  mixer.init(frequency=90000, size=-16, channels=2, buffer=512)
  mixer.music.load(&quot;/home/intercompi/Music/0min-closing.mp3&quot;)
  mixer.music.set_volume(0.7)
  mixer.music.play()
  
  while mixer.music.get_busy():
      time.Clock().tick(10)
  quit()
  </code></pre>
  <p>My crontab is as follows:</p>
  <pre><code>30 20 * * 1-4 /home/intercompi/30min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  45 20 * * 1-4 /home/intercompi/15min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  55 20 * * 1-4 /home/intercompi/5min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  0 21 * * 1-4 /home/intercompi/0min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  30 17 * * 0,5,6 /home/intercompi/30min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  45 17 * * 0,5,6 /home/intercompi/15min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  55 17 * * 0,5,6 /home/intercompi/5min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  0 18 * * 0,5,6 /home/intercompi/0min-closing.py &gt;&gt; IntercomOutput.txt 2&gt;&amp;1
  </code></pre>
  <p>and my logging file outputs this:</p>
  <pre><code>/bin/sh: 1: usr/bin/python3: not found
  /bin/sh: 1: usr/bin/python3: not found
  /bin/sh: 1: usr/bin/python3: not found
  </code></pre>
  <p>I am fairly inexperienced with linux so I apologize if this is sloppy. This is partly a consolidation of my previous attempts at looking into this issue.</p>